
tarot-card-data
io.github.TaroSchenker/tarot-card-data
All 78 tarot cards: lookup, search, draws with reversals, daily card, public-domain 1909 images.
Documentation
Tarot card data: all 78 cards (JSON and CSV)
Free, structured data for the 78 tarot cards: names, numbers, suits, ranks, keywords, upright and reversed meanings, yes or no answers, element and astrology, with a public-domain image of each card from the 1909 Rider-Waite-Smith deck.
Made by Taro's Tarot. The page with downloads, field notes and an embeddable daily card: https://tarostarot.com/tarot-card-data
Files
| File | What it is |
|---|---|
tarot-cards.json | All 78 cards, one object each, with licence details at the top |
tarot-cards.csv | The same data, one row per card (keywords separated by ; ) |
images/ | 78 card images, WebP, 300 x 527 px (also as one ZIP) |
Always-current copies: https://tarostarot.com/tarot-card-data/tarot-cards.json and https://tarostarot.com/tarot-card-data/tarot-cards.csv. Both send Access-Control-Allow-Origin: *, so browser code on any site can fetch them. There is no key and no rate limit: fetch the file once and keep it.
API
For one card, a filtered list or a random draw, without loading the whole file. GET requests, JSON answers, no key, Access-Control-Allow-Origin: *. Described in openapi.yaml.
| Endpoint | What it returns |
|---|---|
GET https://tarostarot.com/api/tarot-card-data/cards | All 78 cards, or only the ones that match arcana (major, minor), suit (wands, cups, swords, pentacles), element (fire, water, air, earth) and yes_no (yes, no, maybe; the upright answer). Filters combine. |
GET https://tarostarot.com/api/tarot-card-data/cards/{id} | One card by its id, such as the-fool or ace-of-cups |
GET https://tarostarot.com/api/tarot-card-data/random | One card drawn at random, upright or reversed, with the meaning for that orientation. reversed=true or reversed=false fixes the orientation. |
curl "https://tarostarot.com/api/tarot-card-data/cards?suit=cups&yes_no=yes"
curl "https://tarostarot.com/api/tarot-card-data/cards/the-fool"
curl "https://tarostarot.com/api/tarot-card-data/random?reversed=false"
Every answer carries the licence and the credit line. A parameter or value the API does not know gets a 400 that names the allowed values; an unknown id gets a 404. Lists and single cards are cached for a day.
MCP Server (Remote HTTP or Offline Stdio)
Connect Claude, Cursor, VS Code, or any Model Context Protocol client with no API key:
- Remote Streamable HTTP endpoint:
https://tarostarot.com/api/tarot-card-data/mcp - Offline local stdio server (Node 18+, zero dependencies):
node mcp/server.mjs
Tools exposed: get_tarot_card (slug or fuzzy name), search_tarot_cards (arcana/suit/element/yes_no/query), draw_tarot_cards (1–10 unique cards with upright/reversed meanings), and get_daily_tarot_card (deterministic UTC Card of the Day).
{
"mcpServers": {
"taros-tarot": {
"url": "https://tarostarot.com/api/tarot-card-data/mcp"
}
}
}
Starter Templates
- Discord daily-card webhook bot (Node 18+, zero dependencies)
- Obsidian Daily Note Templater snippet
- Zero-build HTML daily widget + 3-card draw demo
- Migrating from the retired Heroku
rws-cards-api
Companion Open Research
- What People Ask the Tarot (2026 study + CSV, CC BY 4.0) — aggregate question categories, love themes, and spread shares across 34,212 saved readings.
Install
npm install tarot-card-data
const { cards } = require('tarot-card-data');
pip install tarot-card-data
import tarot_card_data
fool = tarot_card_data.get("the-fool")
Other copies
- Zenodo archive, to cite: doi.org/10.5281/zenodo.24281832 (this DOI always points at the newest version)
- Hugging Face dataset: huggingface.co/datasets/tarostarot/tarot-card-data
- npm: npmjs.com/package/tarot-card-data, PyPI: pypi.org/project/tarot-card-data
- OpenAPI description of the API and the two files: openapi.yaml
Fields
| Field | Example | Notes |
|---|---|---|
id | the-fool | URL slug, unique |
name | The Fool | |
number | 0 | Major Arcana 0-21; minor cards 1-14 (ace 1, page 11, knight 12, queen 13, king 14) |
arcana | major | major or minor |
suit | null | wands, cups, swords, pentacles; null for the Major Arcana |
rank | null | ace ... ten, page, knight, queen, king; null for the Major Arcana |
keywords | ["new beginnings", ...] | 8 per card |
upright | one sentence | The upright meaning in one line |
reversed | one sentence | The reversed meaning in one line |
yes_no.upright / yes_no.reversed | yes | yes, no or maybe |
yes_no.summary | one line | Why, in under 100 characters |
element | air | fire, water, air, earth |
astrology.planet / astrology.sign | Uranus / Aquarius | Major Arcana and numbered minor cards (2-10) |
astrology.decan | 1 | Numbered minor cards 2-10: which third of the sign (1, 2 or 3) |
astrology.dates | March 21-30 | Where the card has a zodiac date range |
astrology.elemental_dignity | Air of Earth | Court cards only |
image | URL | The card image on cdn.tarostarot.com (same files as images/) |
url | URL | The card's full meaning page on tarostarot.com |
Aces carry no astrology. Court cards carry their elemental dignity and no zodiac range.
Example record
{
"id": "the-fool",
"name": "The Fool",
"number": 0,
"arcana": "major",
"suit": null,
"rank": null,
"keywords": [
"new beginnings",
"innocence",
"spontaneity",
"free spirit",
"adventure",
"faith",
"potential",
"risk"
],
"upright": "New beginnings, unlimited potential, and a leap of faith into the unknown.",
"reversed": "Recklessness, poor judgment, or fear of taking necessary risks.",
"yes_no": {
"upright": "yes",
"reversed": "no",
"summary": "A yes for the leap itself; the landing is not shown yet"
},
"element": "air",
"astrology": {
"planet": "Uranus",
"sign": "Aquarius",
"decan": null,
"dates": null,
"elemental_dignity": null
},
"image": "https://cdn.tarostarot.com/cards/00-TheFool.webp",
"url": "https://tarostarot.com/tarot-cards/the-fool"
}
Use it
const res = await fetch('https://tarostarot.com/tarot-card-data/tarot-cards.json');
const { cards } = await res.json();
const card = cards[Math.floor(Math.random() * cards.length)];
console.log(card.name, card.upright);
import csv
with open("tarot-cards.csv", newline="", encoding="utf-8") as f:
cards = list(csv.DictReader(f))
print(cards[0]["name"], cards[0]["yes_no_upright"])
Daily card for your site
Paste this where the card should appear. One cached script, no cookies, no tracking; the card changes at midnight UTC. Add data-theme="dark" to the div for a dark card.
<div data-taros-tarot-daily-card><a href="https://tarostarot.com/tarot-card-of-the-day">Daily card by Taro's Tarot</a></div>
<script src="https://tarostarot.com/embed/daily-card.js" async></script>
Licence
-
Card data (all text in
tarot-cards.jsonandtarot-cards.csv): Creative Commons Attribution 4.0. Use it for anything, including commercial projects, and credit it with a link:Tarot card data by <a href="https://tarostarot.com/tarot-card-data">Taro's Tarot</a> (CC BY 4.0) -
Card images: public domain. See LICENSE for where the scans come from.
Data version 1.0.2 (2026-11-20). Exported from https://tarostarot.com; the page above always has the current version.
No installation packages available.