Deck of Cards
Shuffle and draw virtual decks
Models a physical deck with persistent deck IDs. Perfect for card-game prototypes.
GET https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1
{
"success": true,
"deck_id": "5h0rwuhdaf73",
"remaining": 52,
"shuffled": true
}curl "https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1"const res = await fetch("https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1")
print(res.json())/deck/new/shuffle/?deck_count=1PROBEDShuffle and draw virtual decks
/deckDeck — documented GET route.
/deck/1Deck details by ID (example: 1).
/deck?limit=10Deck — documented GET route.
/deck/search?q=testSearch by query parameters.
/deck/new/shuffle/?limit=5Shuffle — documented GET route.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
Deck of Cards: common questions
Is Deck of Cards free to use?
Yes — Deck of Cards is a free games API. Free tier: Free — limits not published. Whether the free tier allows commercial use is unclear — check the provider docs.
Does Deck of Cards need an API key?
No — Deck of Cards needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).
Can I call Deck of Cards from the browser?
Yes — Deck of Cards returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is Deck of Cards up right now?
As of our last scheduled check, Deck of Cards is healthy with 99.02% uptime over 90 days and a 401 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.