Repository avatar
AI Tools
v1.0.0
active

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)

DOI

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

FileWhat it is
tarot-cards.jsonAll 78 cards, one object each, with licence details at the top
tarot-cards.csvThe 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.

EndpointWhat it returns
GET https://tarostarot.com/api/tarot-card-data/cardsAll 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/randomOne 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

Companion Open Research

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

Fields

FieldExampleNotes
idthe-foolURL slug, unique
nameThe Fool
number0Major Arcana 0-21; minor cards 1-14 (ace 1, page 11, knight 12, queen 13, king 14)
arcanamajormajor or minor
suitnullwands, cups, swords, pentacles; null for the Major Arcana
ranknullace ... ten, page, knight, queen, king; null for the Major Arcana
keywords["new beginnings", ...]8 per card
uprightone sentenceThe upright meaning in one line
reversedone sentenceThe reversed meaning in one line
yes_no.upright / yes_no.reversedyesyes, no or maybe
yes_no.summaryone lineWhy, in under 100 characters
elementairfire, water, air, earth
astrology.planet / astrology.signUranus / AquariusMajor Arcana and numbered minor cards (2-10)
astrology.decan1Numbered minor cards 2-10: which third of the sign (1, 2 or 3)
astrology.datesMarch 21-30Where the card has a zodiac date range
astrology.elemental_dignityAir of EarthCourt cards only
imageURLThe card image on cdn.tarostarot.com (same files as images/)
urlURLThe 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.json and tarot-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.