# sets

> The sets endpoints of the Pokémon TCG API — List sets, Get a set, Cards in a set — each with its parameters, credit cost, minimum plan and a real response.

Source: https://pokemontcgapi.com/docs/api/sets

No key yet? One call gets you one: `POST /v1/accounts/free` with an `Idempotency-Key` header and your email address returns a working key in the response. Keep the original Idempotency-Key and body for response replay for up to 24 hours, under the conditions in the quickstart. The trial is 800 credits over 30 days once the address is confirmed, no card; paid plans start at 29 € a month. See the [quickstart](https://pokemontcgapi.com/docs/quickstart) and the [pricing](https://pokemontcgapi.com/pricing).

`3` operations under `https://api.pokemontcgapi.com/v1`.

## Operations

| Operation | Endpoint | Cost | Plan |
| --- | --- | --- | --- |
| [List sets](https://pokemontcgapi.com/docs/api/sets/list) | `GET /v1/sets` | 1 credit | free |
| [Get a set](https://pokemontcgapi.com/docs/api/sets/get) | `GET /v1/sets/{code}` | 1 credit | free |
| [Cards in a set](https://pokemontcgapi.com/docs/api/sets/cards) | `GET /v1/sets/{code}/cards` | 1 credit per 50 cards requested (the limit), rounded up; include=index costs the same; with include=prices, 4 credits per 25 | free |

**[List sets](https://pokemontcgapi.com/docs/api/sets/list)** — Every set with release date, totals, print region and series. An empty first-page name search retries exact market aliases, then order-independent words.

**[Get a set](https://pokemontcgapi.com/docs/api/sets/get)** — One set by code, slug or alternate id.

**[Cards in a set](https://pokemontcgapi.com/docs/api/sets/cards)** — Every card in a set, in collection order, with correct paging past 250 rows.
