Deck of Cards
Deck of Cards - an API for playing cards Endpoints taken from the examples in the [documentation](https://deckofcardsapi.com/) and checked on 2026-11-18 by…
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Deck of Cards - an API for playing cards
Endpoints taken from the examples in the documentation and checked on 2026-11-18 by calling each one without a key.
Endpoints 2
- GETGet new shuffle
/api/deck/new/shuffle/ - GETGet deck new
/api/deck/new/
API details
- Base URL
https://deckofcardsapi.com- Authentication
- None declared in the description
- Operations
- 2 operations on 2 pathsGET 2
- Response formats
application/json- Description format
- OpenAPI 3.0.3, API version
2026-11-18 - Links
- Documentation · OpenAPI document
How to test the Deck of Cards in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Deck of Cards collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Get new shuffle” (GET /api/deck/new/shuffle/), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Deck of Cards?
Deck of Cards - an API for playing cards Endpoints taken from the examples in the [documentation](https://deckofcardsapi.com/) and checked on 2026-11-18 by… It is listed under Media & content and has 2 endpoints.
Who publishes the Deck of Cards?
It is listed from Deckofcardsapi's public API description (an OpenAPI document), not published by Deckofcardsapi on Swastik Codes. Anyone who controls deckofcardsapi.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Deck of Cards?
Requests go to https://deckofcardsapi.com. Endpoint paths are added to this base URL.
How do I authenticate with the Deck of Cards?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the Deck of Cards have?
2 operations on 2 paths (2 GET).
Is forking the Deck of Cards free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.