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.
Slug: deckofcardsapi
Key:
Base URL:
Auth: none
Endpoints: 8
Reachable: unknown
CORS: unknown
Tier: verified
Key:
deckofcardsapi.com:deck-of-cardsBase URL:
https://deckofcardsapi.com/apiAuth: none
Endpoints: 8
Reachable: unknown
CORS: unknown
Tier: verified
Links
Topics
Tutorials
- Getting Started with Deck of Cards API — I can simulate a shuffled 52-card deck — dealing hands, tracking draws, managing named player piles — via deckofcardsapi.com, with no auth required and server-side state keyed to a deck ID.
Skills
- Manage card deck — I can simulate a shuffled 52-card deck — deal hands, draw cards, track player piles — via deckofcardsapi.com with server-side state keyed to a deck ID and no auth required.
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 |
— |