Card of the Day
Returns a deterministic daily tarot card. The same card is returned for all requests on the same date — seeded by SHA-256 hash of the date string. Optionally provide a date (YYYY-MM-DD) to get the card for any day. Defaults to today.
Endpoint
GET /v1/tarot/card-of-the-day
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
| date | string | null | No | Date in YYYY-MM-DD format. Defaults to today. |
| allow_reversed | boolean | No | If true, the card may appear reversed (also deterministic by date). |
Example request
- curl
- Python
- TypeScript
curl -X GET "https://api.asterwise.com/v1/tarot/card-of-the-day?date=2026-01-01&allow_reversed=True" \
-H "Authorization: Bearer YOUR_API_KEY"
import asterwise
from asterwise.api.tarot_api import TarotApi
configuration = asterwise.Configuration(
host="https://api.asterwise.com",
access_token="YOUR_API_KEY",
)
with asterwise.ApiClient(configuration) as client:
api = TarotApi(client)
result = api.tarot_card_of_the_day(date="2026-01-01",
allow_reversed=True)
print(result)
import { createClient, createConfig, tarotCardOfTheDay } from 'asterwise';
const client = createClient(createConfig({
baseUrl: 'https://api.asterwise.com',
headers: { Authorization: 'Bearer YOUR_API_KEY' },
}));
const result = await tarotCardOfTheDay({
client,
query: {
"date": "2026-01-01",
"allow_reversed": true
},
});
console.log(result.data);
Example response
Response fields
| Field | Type | Description |
|---|---|---|
| success | boolean | True if the request succeeded |
| message | string | Human-readable status message |
| data | object | |
| data.date | string | Date for this card in YYYY-MM-DD format |
| data.card | object | |
| data.card.id | string | Unique slug identifier e.g. 'the-fool' |
| data.card.name | string | Full card name e.g. 'The Fool' |
| data.card.arcana_type | string | 'major' or 'minor' |
| data.card.suit | string | null | Suit for minor arcana: wands, cups, swords, pentacles. Null for major arcana. |
| data.card.number | integer | Card number. Major arcana: 0-21. Minor arcana: 1=Ace, 11=Page, 12=Knight, 13=Queen, 14=King. |
| data.card.element | string | Elemental correspondence: fire, water, air, earth, spirit |
| data.card.astrology_correspondence | string | Astrological planet or sign correspondence |
| data.card.keywords_upright | array[string] | Upright keywords |
| data.card.keywords_reversed | array[string] | Reversed keywords |
| data.card.upright_meaning | string | Full upright interpretation |
| data.card.reversed_meaning | string | Full reversed interpretation |
| data.card.yes_no | string | Yes/No polarity: 'yes', 'no', or 'maybe' |
| data.card.description | string | Visual description of the card imagery |
| data.is_reversed | boolean | |
| data.active_meaning | string | |
| data.active_keywords | array[string] |
Errors
| Code | Description | Reference |
|---|---|---|
| authentication_failed | Missing or invalid API key. | authentication_failed |
| ephemeris_unavailable | Upstream ephemeris service error. | ephemeris_unavailable |
| insufficient_tier | API key tier does not include this endpoint. | insufficient_tier |
| internal_error | Unexpected server error. | internal_error |
| ip_rate_limit_exceeded | Too many requests in a short window. | ip_rate_limit_exceeded |
| payload_too_large | Request body exceeds the size limit. | payload_too_large |
| resource_not_found | Referenced resource was not found. | resource_not_found |
| validation_error | Request body failed schema validation. | validation_error |