API · /cards-api

Deck of Cards API

healthy 3,203 Subscribers

A playing-card deck engine as an API. Create a freshly shuffled deck (one or many decks, with or without jokers), draw cards from it, and reshuffle — with full deck state tracked by a deck id so you can deal hands across multiple calls. Each card comes with its code (e.g. AS, 0H), value, suit and a PNG and SVG image URL, so you can render real cards. Draw cards statelessly from a brand-new deck for quick random picks, or keep a deck_id to build a full game. Ideal for card games and game prototypes, Discord bots, teaching and probability demos, and any app that needs a standard 52-card deck. Built on the Deck of Cards service.

api.oanor.com/cards-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/cards-api/openapi.json
/api/cards-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
220 ms
Server probes · 24h
Subscribers
3,203
active
Total calls
60
last 7 days
status Full status page → · 60 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 5,000 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 5,000 calls/month
  • 2 req/sec
  • Deck + draw + shuffle
  • No credit card
Sign in to subscribe

Starter

€2.95 /month

  • 75,000 calls / month
  • 10 requests / second
  • Hard cap (429 above quota, no overage)
  • 75k calls/month
  • 10 req/sec
  • Multi-deck + jokers
  • Email support
Sign in to subscribe

Pro

€8.95 /month

  • 400,000 calls / month
  • 25 requests / second
  • Hard cap (429 above quota, no overage)
  • 400k calls/month
  • 25 req/sec
  • Game backends / bots
  • Priority support
Sign in to subscribe

Mega

€23.95 /month

  • 2,000,000 calls / month
  • 60 requests / second
  • Hard cap (429 above quota, no overage)
  • 2M calls/month
  • 60 req/sec
  • High-volume game platform
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

Tarot API

The complete 78-card tarot deck as an API — 22 Major Arcana and 56 Minor Arcana across the four suits (Wands, Cups, Swords and Pentacles). Look up any card by id or name (e.g. The Fool, The Lovers, Ace of Cups) for its upright and reversed meanings and the classic Rider-Waite description, search the whole deck by keyword or theme (e.g. love), browse a single minor suit, or draw a spread of random cards for an instant reading. Each card carries its arcana type, suit, numeric value and both interpretations. Ideal for tarot and astrology apps, daily-card widgets, divination and journaling tools, games and content sites.

api.oanor.com/tarot-api

MTG API

The complete Magic: The Gathering card database as an API — every card ever printed, backed by Scryfall. Look up a card by name (exact, with automatic fuzzy fallback, e.g. "Black Lotus" → mana cost {0}, type, oracle text, rarity, set, format legalities and current market prices), search the entire pool with Scryfall's powerful query syntax (e.g. q=goblin, q=c:red type:creature cmc<=3, ordered by name/cmc/usd/rarity), pull a random card with an optional filter, browse all 1,000+ sets, and list every mana/cost symbol with its glyph. Each card carries colors, color identity, keywords, power/toughness/loyalty, collector number, artist, release date, high-resolution image and prices in USD/EUR/TIX. Ideal for deckbuilders, collection trackers, price-checkers, Discord bots, judges and MTG content tools.

api.oanor.com/mtg-api

Merchant Category Codes API

ISO 18245 Merchant Category Codes (MCC) as an API — the 981 four-digit codes that Visa, Mastercard and other card networks use to classify a merchant's line of business. Look up any code (e.g. 5812 → Eating places and Restaurants, 5411 → Grocery Stores/Supermarkets, 3000 → United Airlines), search by description (e.g. "hotel", "airline", "pharmacy"), filter by IRS-reportable status, or list them all. Each record carries the network/edited description, USDA and IRS descriptions and whether the category is IRS 1099-reportable. Ideal for payments, fintech, expense management, fraud analysis and transaction enrichment.

api.oanor.com/mcc-api

Poker API

A complete Texas Hold’em toolkit in one fast, fully-local API. Calculate win, tie and equity probabilities for your hole cards against any number of opponents (1–9) on any board — pre-flop, flop, turn or river — using a Monte Carlo simulation with adjustable accuracy. Evaluate the best five-card hand from any five to seven cards and get its rank and tiebreakers, or describe a hand in plain language. Cards use the familiar notation (As, Td, 9h, 2c) and every endpoint works by GET or JSON POST. Pure server-side compute with no third-party upstream, so responses are instant and the service is always available. Ideal for poker trainers and study tools, game developers, hand-history trackers and odds widgets.

api.oanor.com/poker-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for Deck of Cards API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call Deck of Cards API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for Deck of Cards API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does Deck of Cards API cost?
Deck of Cards API has a free tier with 100 calls / month. Paid plans start at €2.95 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is Deck of Cards API GDPR-compliant?
All requests to Deck of Cards API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/cards-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/cards-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/cards-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/cards-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.