Docs
API reference
Every route, its parameters and what it costs.
Base URL: https://api.alltcgapi.com. Every data route is a GET and returns JSON.
| Route | Credits | Parameters | Returns |
|---|---|---|---|
| GET /v1/games | 1 | — | The games in the catalogue, with set, card and sealed counts. |
| GET /v1/sets | 1 | game, region, limit, cursor | Sets, newest first. |
| GET /v1/sets/{id} | 1 | — | One set by id or by code, with its names per language. |
| GET /v1/sets/{id}/cards | 1 per 50 rows | limit, cursor | The cards of a set, in collector-number order. |
| GET /v1/cards | 1 per 50 rows | game, set, name, number, limit, cursor | Cards across the catalogue. |
| GET /v1/cards/{id} | 1 | — | One card, with its names per language. |
| GET /v1/sealed | 1 per 50 rows | game, set, kind, limit, cursor | Sealed products. |
| GET /v1/sealed/{id} | 1 | — | One sealed product. |
| GET /v1/cards/{id}/prices | 2 | source, language, variant | The current quotes of a card. |
| GET /v1/cards/{id}/prices/history | 5 | from, to, bucket, source, language, variant | The price history of a card: one point per series per day. |
| GET /v1/sealed/{id}/prices | 2 | source, language, variant | The current quotes of a sealed product. |
| GET /v1/sealed/{id}/prices/history | 5 | from, to, bucket, source, language, variant | The price history of a sealed product. |
| GET /v1/prices/current | 4 | ids, source, language, variant | The current quotes of up to 25 cards and sealed products in one request. |
| GET /v1/prices/sources | public | — | The price sources the API serves, with the delay of each. |
| GET /v1/prices/coverage | public | — | Per game and source: how many items have a quote. |
| GET /v1/me | 0 | — | Your plan, scopes and remaining credits. |
| GET /v1/billing/plans | public | — | The price list. |
| GET /v1/reference | public | — | The closed vocabularies in one call. |
| GET /v1/status | public | — | When the catalogue and the prices were last refreshed. |
| GET /v1/health | public | — | Process and database health. |
Account and billing
These routes take and return JSON and cost no credits. The ones that change the account need the account:write scope, which the key issued at signup has. The account page on this site uses the same routes.
| Route | Credits | Body | Returns |
|---|---|---|---|
| POST /v1/accounts/register | public | email, password, label | An account with its first key. The key is shown once, in this response. |
| POST /v1/accounts/free | public | A trial key for an email address, without a password. | |
| POST /v1/accounts/verify | public | token | Confirms the email address with the token from the verification link. |
| POST /v1/accounts/recover | public | Sends a recovery link. The answer is the same whether or not the account exists. | |
| POST /v1/accounts/recover/confirm | public | token, password, label | A new key for the account, and a new password if you send one. |
| GET /v1/me/usage | 0 | days | Requests and credits per day. |
| GET /v1/me/keys | 0 | — | The keys of the account, masked. |
| POST /v1/me/keys | 0 | label | A new key. Send an Idempotency-Key header. |
| POST /v1/me/keys/{id}/rotate | 0 | — | A new secret for a key. The old one keeps working for a grace period. |
| DELETE /v1/me/keys/{id} | 0 | — | Revokes a key at once. |
| POST /v1/me/verification/resend | 0 | — | Sends a new verification link. |
| POST /v1/billing/checkout | 0 | plan, interval, success_to, cancel_to | A Stripe Checkout address for a paid plan. |
| POST /v1/billing/portal | 0 | return_to | A Stripe billing portal address: card, plan, cancellation. |
| GET /v1/billing/invoices | 0 | — | The invoices of the account. |
Parameters
| Parameter | On | Meaning |
|---|---|---|
| game | sets, cards, sealed | A game id from /v1/games. An unknown value is a 400. |
| region | sets | WEST or EAST: the print line of the set. |
| set | cards, sealed | A set id or code. |
| name | cards | Matches the start of the card name. |
| number | cards | The collector number, exactly as printed. |
| kind | sealed | A product kind, such as BOOSTER_BOX. |
| source | prices | CARDMARKET or TCGPLAYER. |
| language | prices | A language code, such as en or ja. |
| variant | prices | A variant, such as MARKET or LOWEST_NEAR_MINT. |
| ids | prices/current | Up to 25 card or sealed product ids, separated by commas. |
| from, to | price history | Days as YYYY-MM-DD, in UTC. Default: the last 90 days. |
| bucket | price history | day, week or month. Default day. |
| limit | lists | 1 to 250. Default 50. |
| cursor | lists | From links.next. Never built by hand. |
A card
{
"data": {
"id": "01d3a5f3-18df-4520-ac0b-4449c077f179",
"game": "onepiece",
"set": { "id": "95435c34-…", "code": "OP11", "name": "A Fist of Divine Speed" },
"number": "OP11-095",
"name": "Monkey.D.Garp",
"rarity": "SUPER RARE",
"supertype": null,
"attributes": { "types": ["Black"] },
"image_url": "https://media.alltcgapi.com/cards/…/OP11-095-normal.webp?e=…&s=…",
"languages": ["en"],
"external_ids": { "cardmarket": 827230, "tcgplayer": … },
"version": 1,
"updated_at": "2026-11-18T22:21:15.182Z"
}
}Images
image_url on cards, sets and sealed products is a signed URL on media.alltcgapi.com: e is its expiry, s its signature. It needs no API key and costs no credits, so it can go straight into an img tag. A signed URL stays the same for a whole week and is valid for at least 7 days. Store the object id, not the URL, and read the object again when you need the image: an expired or altered URL answers 403 IMAGE_URL_INVALID. A few image_url still point to the original host of the image and are served from there as they are.
Stability
- An id never changes and is never reused.
- version moves only when the data of the object changes.
- New fields may be added to an object. Fields are not renamed or removed within /v1.