Public API

Free, public endpoints for integrating Mystic Cards into your projects. No authentication required.

Card of the Day

Returns a deterministic card of the day for a given deck. All users see the same card on a given day for a given deck. The card changes daily at midnight UTC.

GET/api/card-of-the-day

Query Parameters

ParameterTypeDescription
deckIdstring (optional)The ID of a published deck. If omitted, the default free deck is used.

Example Request

curl https://getmystic.cards/api/card-of-the-day

Example Response

{
  "date": "2026-02-16",
  "card": {
    "id": "abc123",
    "name": "The Star",
    "displayName": "The Star",
    "arcana": "major",
    "suit": null,
    "number": 17,
    "imageUrl": "/cards/star.jpg",
    "reversedImageUrl": "/api/card-of-the-day/image",
    "reversed": false,
    "uprightMeaning": "Hope, inspiration, generosity...",
    "reversedMeaning": "Lack of faith, despair...",
    "keywords": "hope,faith,renewal"
  },
  "deck": {
    "id": "deck-1",
    "name": "Rider-Waite-Smith"
  },
  "interpretation": "Today The Star illuminates your path..."
}

Response Fields

FieldDescription
dateThe date for this card selection (YYYY-MM-DD in UTC).
cardThe selected card with meanings, image URL, and reversal status.
card.imageUrlThe upright card image URL. Always points to the original image regardless of reversal status.
card.reversedImageUrlEndpoint that serves the card image rotated 180° when reversed. Use this for a pre-rotated reversed image.
card.reversedWhether the card appears reversed today.
card.displayNameThe card name, with any deck-specific aliases applied.
deckThe deck ID and name used for the selection.
interpretationAn AI-generated daily interpretation for collective guidance.

Hexagram of the Day

Returns a deterministic I Ching hexagram of the day. All users see the same hexagram on a given day. The hexagram changes daily at midnight UTC.

GET/api/hexagram-of-the-day

Example Request

curl https://getmystic.cards/api/hexagram-of-the-day

Example Response

{
  "date": "2026-03-05",
  "hexagram": {
    "number": 11,
    "name": "Peace",
    "chineseName": "Tai",
    "upperTrigram": "Earth",
    "lowerTrigram": "Heaven",
    "judgment": "Peace. The small departs, the great approaches...",
    "image": "Heaven and Earth unite: the image of Peace..."
  },
  "imageUrl": "/hexagrams/11.svg",
  "interpretation": "Today Hexagram 11 invites harmony and balance..."
}

Response Fields

FieldDescription
dateThe date for this card selection (YYYY-MM-DD in UTC).
hexagram.numberThe hexagram number (1-64).
hexagram.nameThe English name of the hexagram.
hexagram.chineseNameThe traditional Chinese name of the hexagram.
hexagram.upperTrigramThe upper trigram name (e.g. Heaven, Earth, Water).
hexagram.lowerTrigramThe lower trigram name (e.g. Heaven, Earth, Water).
hexagram.judgmentKing Wen's judgment text for the hexagram.
hexagram.imageThe Duke of Zhou's image text for the hexagram.
imageUrlPath to the hexagram's SVG line diagram.
interpretationAn AI-generated daily interpretation for collective guidance.

Weekly Horoscope

Returns AI-generated weekly horoscopes for all 12 zodiac signs. Updated every Sunday at 6 AM UTC. If the current week's horoscope is not yet available, the most recent one is returned.

GET/api/astrology/weekly

Example Request

curl https://getmystic.cards/api/astrology/weekly

Example Response

{
  "weekOf": "2026-03-09",
  "signs": [
    {
      "sign": "Aries",
      "element": "Fire",
      "reading": "This week brings a surge of creative energy...",
      "transits": "Mars in Gemini squares Neptune...",
      "keyTheme": "Creative Breakthroughs",
      "compatibility": "Leo"
    },
    ...
  ]
}

Response Fields

FieldDescription
weekOfThe Monday date (YYYY-MM-DD) representing the start of the horoscope week.
signsArray of 12 horoscope readings, one per zodiac sign.
signs[].signThe zodiac sign name (e.g. Aries, Taurus).
signs[].elementThe sign's element (Fire, Earth, Air, or Water).
signs[].readingThe full weekly horoscope reading for this sign.
signs[].transitsNotable planetary transits affecting this sign during the week.
signs[].keyThemeA short phrase summarizing the week's main theme for this sign.
signs[].compatibilityThe most compatible zodiac sign for the week.

Errors

All errors return a JSON object with an error field.

StatusMeaning
404Deck not found or not published. Hexagram not found. No weekly horoscope data available yet.
500Internal server error.

Caching

Responses include a Cache-Control: public, max-age=3600 header. The card of the day is deterministic for a given date and deck, so responses are safe to cache.