Deck of Cards

REST API for simulating standard decks of playing cards, supporting deck creation, shuffling, card drawing, and organizing drawn cards into named piles. Returns JSON responses for all operations without requiring authentication.

Claim this API

Are you the operator of Deck of Cards? Submit a claim to establish contact with us.

Report an Issue

Found something wrong with Deck of Cards? Let us know about broken links, changed auth, deprecated endpoints, or other issues.

Slug: deckofcardsapi
Key: deckofcardsapi.com:deck-of-cards
Base URL: https://deckofcardsapi.com/api
Auth: none
Endpoints: 8
Reachable: unknown
CORS: unknown
Tier: verified

Links

Homepage: https://deckofcardsapi.com/
API Base: https://deckofcardsapi.com/api

Topics

ENTERTAINMENT

Tutorials

Skills

Endpoints (8)

Path Summary Response Auth
deck/new/ Create a new deck text/plain
deck/new/shuffle/ Create and shuffle a new deck text/plain
deck/{deck_id}/draw/ Draw cards from deck application/json
deck/{deck_id}/pile/{pile_name}/add/ Add cards to a pile application/json
deck/{deck_id}/pile/{pile_name}/draw/ Draw cards from a pile application/json
deck/{deck_id}/pile/{pile_name}/list/ List cards in a pile application/json
deck/{deck_id}/pile/{pile_name}/shuffle/ Shuffle a pile application/json
deck/{deck_id}/shuffle/ Reshuffle existing deck application/json