Deck of Cards API

The Deck of Cards API allows developers to simulate a deck of standard playing cards. You can shuffle decks, draw cards, reshuffle, and create multiple decks for game development or card-based apps. The API is free to use without authentication, providing a simple way to add card functionality to your projects.

1

Endpoints

0

Views

Jul 20, 2025

Last Checked

Unlimited

Rate Limit

API Endpoints

Draws a specified number of cards from the deck.

Full URL

https://deckofcardsapi.com/api/deck/deck/{deck_id}/draw/

Code Examples

curl -X GET 'https://deckofcardsapi.com/api/deck/deck/{deck_id}/draw/'

Parameters

{
  "count": "integer (optional) - Number of cards to draw, default is 1",
  "deck_id": "string (required) - The unique deck identifier"
}

Example Response

{
  "cards": [
    {
      "code": "AS",
      "suit": "SPADES",
      "image": "https://deckofcardsapi.com/static/img/AS.png",
      "value": "ACE"
    }
  ],
  "success": true,
  "remaining": 51
}

Version

v1
Tags
cardsentertainmentgaming
Technical Details
Authentication
None
Response Formats
JSON
Availability
global
Status
Published
Rate Limits

unlimited

Supported Languages
JavaScriptPython
Use Cases
game development
simulations
https://deckofcardsapi.com/

Related APIs

Discover similar APIs that might interest you

APIopen source

PokeAPI

PokeAPI is a free, open-source API that ...

Category
Gaming
Endpoints
1
entertainmentgamingpokemon
APIopen source

Dungeons & Dragons API

The Dungeons & Dragons API delivers comp...

Category
Gaming
Endpoints
2
gamesrpg
Deck of Cards API – Shuffle & Draw Cards Free API | Free API Hub