# API reference

Every endpoint, parameter and field.

## API reference

The MasterSet API is organised around REST. It has predictable resource URLs, returns JSON, and uses standard HTTP status codes, authentication and caching headers.

It is read-only: every endpoint is a `GET`. It describes Pokémon TCG master sets, which cards belong to each, the role every card plays in a set, and how variants are grouped. It does not return prices or market values, card images or purchase links (they are planned; see `GET /meta`).

You can try it before you sign up. Five sample master sets answer without a key, and a 30-day free trial starts when you create your first key.

Base URL:

```text
https://masterset.io/api/v1
```

## Authentication

Authenticate with an API key, sent as a Bearer token in the `Authorization` header. Create and revoke keys in [the dashboard](https://masterset.io/developers/dashboard). A key is shown once, when it is created, and is stored only as a hash.

Keys carry your whole quota, so keep them on your server. Never put one in browser code, a mobile app or a public repository, and never in a URL: a key sent as a query parameter is refused.

The sample endpoints and `GET /meta` need no key and are not counted.

Authenticated request:

```bash
curl https://masterset.io/api/v1/mastersets/charizard \
  -H "Authorization: Bearer ms_live_4eC39HqLyjWDarjtT1zdp7dc"
```

## Errors

MasterSet uses conventional HTTP status codes. `2xx` means success, `4xx` means the request was wrong or not allowed (a bad parameter, a missing key, a used-up quota), and `5xx` means something failed on our side.

Every error has the same JSON shape. `type` is stable and safe to switch on; `message` is written for a person; `request_id` identifies the request if you write to us about it.

| HTTP status codes |  |
| --- | --- |
| 200 | OK. Everything worked. |
| 301 | Moved. The id or slug changed; follow `Location`. |
| 304 | Not Modified. Your cached copy is current. |
| 400 | `invalid_parameter`. The message says which. |
| 401 | `missing_key`, `invalid_key`. |
| 402 | `trial_expired`, `subscription_inactive`. |
| 403 | `no_trial`. Create a key first. |
| 404 | `not_found`. No such set, card or Pokémon. |
| 429 | `rate_limited`, `quota_exceeded`. |
| 503 | `busy`. Retry after a second, with backoff. |

## The error object

Returned with every `4xx` and `5xx` response.

- `type` (string): one of the types in the table above.
- `message` (string): what went wrong, in plain words.
- `docs_url` (string): the part of the docs that covers it.
- `request_id` (string): also sent as the `X-Request-Id` header.

Error response:

```json
{
  "error": {
    "type": "quota_exceeded",
    "message": "Your plan's 10,000 requests for this period are used. Resets 2026-12-23T00:00:00.000Z.",
    "docs_url": "https://masterset.io/developers/docs/errors#quota_exceeded",
    "request_id": "req_8f3k2m9x41ab"
  }
}
```

## Rate limits and quotas

Each plan has a number of requests per period and a per-minute rate. Limits are hard: when one is reached the API answers `429`, and there are never overage charges. A whole checklist is one request, whatever its size.

Successful responses count, including `304` and `301`. Errors, the sample endpoints and `GET /meta` do not. Every authenticated response reports where you stand in its headers.

| Limits by plan |  |
| --- | --- |
| Free trial · Free | 2,000 requests, 500 a day · 60/min |
| Hobbyist · $9/mo | 10,000 requests · 60/min |
| Developer · $29/mo | 100,000 requests · 120/min |
| Business · $99/mo | 1,000,000 requests · 600/min |

## Limit headers

Sent on every response made with a key. When you are rate limited, `Retry-After` gives the seconds to wait.

- `X-RateLimit-Limit`, `X-RateLimit-Remaining`: this minute.
- `X-RateLimit-Reset`: when the minute ends, as a Unix time.
- `X-Quota-Limit`, `X-Quota-Remaining`: this period.
- `X-Quota-Reset`: when the period ends, ISO 8601.

Response headers:

```http
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1795500000
X-Quota-Limit: 2000
X-Quota-Remaining: 1873
X-Quota-Reset: 2026-12-23T00:00:00.000Z
ETag: "pZ3vJm0kUO0c1hJkq7fX2a8HnYw"
```

## Pagination

`GET /mastersets` and the changes feed are paged, with a cursor. Pass the `next_cursor` of one page as `cursor` to get the next; `next_cursor` is `null` on the last page. `limit` is 1 to 250 and defaults to 50.

Nothing else is paged. A checklist, the Pokémon list and the artist list each come back whole, so there is no request per card and no loop to write.

Paging through master sets:

```bash
curl "https://masterset.io/api/v1/mastersets?type=artist&limit=100" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"

# then, with "next_cursor": "ms_402"
curl "https://masterset.io/api/v1/mastersets?type=artist&limit=100&cursor=ms_402" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

## Caching

Every response carries an `ETag`. Send it back as `If-None-Match` and you get `304 Not Modified` with no body when nothing has changed.

Checklists change when cards are released or corrected, usually a few times a week at most. Caching a checklist for a day is reasonable; `first_listed_at` on each card tells you what is new since you last looked.

The API Terms (section 5) ask you to refresh stored data, or delete it, at least every 30 days. A full refresh is one request per checklist, about 1,700 today: roughly a sixth of the Hobbyist plan’s monthly requests, and well within the larger plans. A `304` counts as a request, so the cheaper way is the changes feed (`GET /changes`): it lists the master sets that changed, and you refresh only those. Deleting what you no longer need is always allowed instead of refreshing it. On the free trial (2,000 requests in all) cache only the sets you are testing with.

Your users’ own records are theirs: when your access ends you may keep, for each user, the card and master set ids and the few fields needed to keep their collection intact (Terms, section 5).

Conditional request:

```bash
curl -i https://masterset.io/api/v1/mastersets/151/cards \
  -H "Authorization: Bearer $MASTERSET_API_KEY" \
  -H 'If-None-Match: "pZ3vJm0kUO0c1hJkq7fX2a8HnYw"'

HTTP/1.1 304 Not Modified
```

## Identifiers and versioning

Ids are opaque strings with a prefix: `ms_1` for a master set, `card_109` for a card. They never change. A master set also answers to its slug (`charizard`), which can be renamed; a renamed slug answers `301` to the new one.

When two card records turn out to be one card they are merged, and the old id answers `301` to the survivor. Follow redirects and you never hold a dead id.

The version is in the URL (`/v1`). Within a version, fields are only added, never removed or renamed. A change that would break a client is a new version, announced at least 90 days ahead.

| Conventions |  |
| --- | --- |
| Field names | `snake_case` |
| Dates | `YYYY-MM-DD` |
| Timestamps | ISO 8601, UTC |
| Unknown values | `null`, never omitted |
| Language | English cards (`en`) |
| Cross-origin | Allowed from any origin |

## Master sets

A master set is every card that belongs to a subject: a Pokémon, an illustrator, an expansion, a promo line, a specialty such as 1st Edition holos, or a collectible line. MasterSet defines each one and keeps it current as cards are released.

A set is made of sections. The set’s own cards are `main`; cameos, trophy cards, promos, Energy and each variant finish are sections of their own. The checklist endpoint returns the cards, and lets you include or leave out any section.

| Endpoint | What it does |
| --- | --- |
| `GET /mastersets` | List all master sets |
| `GET /mastersets/{ref}` | Retrieve a master set |
| `GET /mastersets/{ref}/cards` | Retrieve a checklist |

### The master set object

| Attribute | Type | Description |
| --- | --- | --- |
| `id` | string | Unique identifier, like `ms_1`. Never changes. |
| `slug` | string | URL name, like `charizard`. Can be renamed; the old slug redirects. |
| `name` | string | Display name: "Charizard Master Set". |
| `type` | enum | One of `character`, `artist`, `expansion`, `promo_series`, `specialty`, `collectible`. |
| `subject` | string or null | The Pokémon a character set is about. `null` for other types. |
| `language` | string | Language of the cards. Always `en` in v1. |
| `description` | string or null | A sentence about the set. |
| `card_count` | integer | Rows in MasterSet’s default checklist: every section whose `default` is true. |
| `sections` | array of objects | Every section the set has, including ones the default checklist leaves out. |
| `sections.key` | string | Stable key to use in `include` and `exclude`: `main`, `cameos`, `trophy`, `promos`, `energy`, `special_editions`, `errors`, `prototypes`, `metal`, `jumbo`, `collectibles`, or `finish:<finish>` for a variant finish. |
| `sections.label` | string | The name MasterSet shows for the section: "Main Cards", "Cameos", "Reverse Holos". |
| `sections.count` | integer | Cards in the section. |
| `sections.default` | boolean | Whether MasterSet’s default checklist includes it. |
| `sections.placement` | enum | Where MasterSet lists it by default: `main` (beside the set’s own cards) or `section` (under its own heading). |
| `default_sort` | string | How MasterSet orders the checklist, as `field:direction`: `releaseDate:asc`, `cardNumber:asc`. |
| `updated_at` | timestamp or null | When the set’s record last changed. |
| `url` | string | The set’s page on MasterSet. |
| `attribution` | object | The credit to show with this data. |
| `attribution.text` | string | "Master set data by MasterSet". |
| `attribution.url` | string | Where the credit should link. |

The master set object:

```json
{
  "id": "ms_1",
  "slug": "charizard",
  "name": "Charizard Master Set",
  "type": "character",
  "subject": "Charizard",
  "language": "en",
  "description": "Complete collection of all Charizard Pokémon cards",
  "card_count": 243,
  "sections": [
    { "key": "main", "label": "Main Cards", "count": 126, "default": true, "placement": "main" },
    { "key": "finish:reverse_holofoil", "label": "Reverse Holos", "count": 11, "default": true, "placement": "main" },
    { "key": "finish:1st_edition_holofoil", "label": "1st Edition Holofoil Prints", "count": 4, "default": true, "placement": "main" },
    { "key": "cameos", "label": "Cameos", "count": 25, "default": true, "placement": "section" }
  ],
  "default_sort": "releaseDate:asc",
  "updated_at": "2026-10-22T05:27:38.000Z",
  "url": "https://masterset.io/charizard",
  "attribution": { "text": "Master set data by MasterSet", "url": "https://masterset.io/charizard" }
}
```

### List all master sets: GET /mastersets

Returns master sets, 50 a page, in a stable order. Search by name or subject, and narrow by type.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `q` | query | string | Search in set names and subjects. Case-insensitive. |
| `type` | query | enum | Only sets of this type. One of `character`, `artist`, `expansion`, `promo_series`, `specialty`, `collectible`. |
| `limit` | query | integer | 1 to 250. Default 50. |
| `cursor` | query | string | The `next_cursor` of the previous page. |

Returns: An object with `count`, a `master_sets` array of summaries (`id`, `slug`, `name`, `type`, `subject`, `url`) and `next_cursor`, which is `null` on the last page.

Request:

```bash
curl "https://masterset.io/api/v1/mastersets?q=pikachu&limit=2" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "count": 2,
  "master_sets": [
    { "id": "ms_2", "slug": "pikachu", "name": "Pikachu Master Set", "type": "character", "subject": "Pikachu", "url": "https://masterset.io/pikachu" },
    { "id": "ms_71", "slug": "2017-pikachu-project", "name": "2017 Pikachu Project Master Set", "type": "artist", "subject": null, "url": "https://masterset.io/2017-pikachu-project" }
  ],
  "next_cursor": "ms_71"
}
```

### Retrieve a master set: GET /mastersets/{ref}

Returns one master set with every section and its size. Use the sections to decide what to ask the checklist for.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `ref` (required) | path | string | A master set id (`ms_1`) or slug (`charizard`). |

Returns: A master set object. `404` if there is none; `301` if the slug was renamed.

Request:

```bash
curl https://masterset.io/api/v1/mastersets/charizard \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "id": "ms_1",
  "slug": "charizard",
  "name": "Charizard Master Set",
  "type": "character",
  "subject": "Charizard",
  "language": "en",
  "description": "Complete collection of all Charizard Pokémon cards",
  "card_count": 243,
  "sections": [
    { "key": "main", "label": "Main Cards", "count": 126, "default": true, "placement": "main" },
    { "key": "finish:reverse_holofoil", "label": "Reverse Holos", "count": 11, "default": true, "placement": "main" },
    { "key": "finish:1st_edition_holofoil", "label": "1st Edition Holofoil Prints", "count": 4, "default": true, "placement": "main" },
    { "key": "cameos", "label": "Cameos", "count": 25, "default": true, "placement": "section" }
  ],
  "default_sort": "releaseDate:asc",
  "updated_at": "2026-10-22T05:27:38.000Z",
  "url": "https://masterset.io/charizard",
  "attribution": { "text": "Master set data by MasterSet", "url": "https://masterset.io/charizard" }
}
```

### Retrieve a checklist: GET /mastersets/{ref}/cards

Returns every card in the master set in one response, in MasterSet’s default order. There is no paging: the largest checklists are a few thousand cards.

With no parameters you get MasterSet’s default checklist. `exclude` and `include` change which sections are in it, and `variants=false` collapses each card to one row.

When a section is left out, a card that holds its role is left out even if it also holds another: excluding `cameos` removes a trophy card that is also a cameo.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `ref` (required) | path | string | A master set id (`ms_1`) or slug (`charizard`). |
| `exclude` | query | string | Comma-separated section keys to leave out: `cameos,trophy`. `main` leaves out the set’s own cards. |
| `include` | query | string | Comma-separated section keys to add that the default checklist leaves out: `jumbo`, `metal`. |
| `variants` | query | boolean | `false` returns one row per card, leaving out every variant finish. Default `true`. |
| `fields` | query | string | Comma-separated card attributes to return, for a smaller response: `id,name,section`. `id` is always included. |

Returns: An object with `master_set` (id, slug, name), `rules_applied`, `count` and a `cards` array of card objects.

Request:

```bash
curl "https://masterset.io/api/v1/mastersets/charizard/cards?exclude=cameos&variants=false" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "master_set": { "id": "ms_1", "slug": "charizard", "name": "Charizard Master Set" },
  "rules_applied": { "include": [], "exclude": ["cameos"], "variants": false },
  "count": 126,
  "cards": [
    {
      "id": "card_109",
      "name": "Charizard-EX (100 Full Art)",
      "set_name": "Flashfire",
      "number": "100",
      "rarity": "Rare Ultra",
      "supertype": "Pokémon",
      "finish": "Holofoil",
      "special_kind": null,
      "release_date": "2014-03-07",
      "language": "en",
      "artist": "Ryo Ueda",
      "pokedex_numbers": [6],
      "external_ids": { "printing_code": "xy2-100" },
      "section": "main",
      "roles": [],
      "first_listed_at": "2026-07-02T00:00:00.000Z",
      "url": "https://masterset.io/card/109-charizard-ex-100-full-art-flashfire-100?set=charizard"
    }
  ]
}
```

## Cards

A card object is one printing in one finish. The unlimited print, the 1st Edition and the reverse holo of the same card are three objects with three ids, each naming its `finish`.

In a checklist, a card also carries `section` and `roles`, which describe its place in that master set. On its own, it lists its other finishes and every master set it belongs to.

| Endpoint | What it does |
| --- | --- |
| `GET /cards/{id}` | Retrieve a card |

### The card object

| Attribute | Type | Description |
| --- | --- | --- |
| `id` | string | Unique identifier, like `card_109`. Each finish of a card has its own id. |
| `name` | string | The card’s name, with a label in brackets where one tells it apart: "Charizard-EX (100 Full Art)", "Pikachu (Prerelease Staff)". |
| `set_name` | string | The release the card is from: "Flashfire". |
| `number` | string or null | The number printed on the card, without the set total. A string: "100", "SWSH144", "TG11", "107a". |
| `rarity` | string or null | Printed rarity: "Rare Holo", "Illustration Rare". |
| `supertype` | string or null | `Pokémon`, `Trainer` or `Energy`. |
| `finish` | string or null | What tells this row from the card’s other variants: "Normal", "Holofoil", "Reverse Holofoil", "1st Edition Holofoil". |
| `special_kind` | enum or null | Set for cards outside the standard game: `error`, `prototype`, `metal`, `jumbo`, `collectible`. `null` for an ordinary card. |
| `release_date` | date or null | When the card’s release came out. |
| `language` | string | Always `en` in v1. |
| `artist` | string or null | The illustrator credited on the card. |
| `pokedex_numbers` | array of integers | National Pokédex numbers of the Pokémon the card is: two or more for a Tag Team, empty for Trainers and Energy. Cameos are not listed here; they are roles. |
| `external_ids` | object | Ids for joining to data you already hold. Either can be `null`. |
| `external_ids.printing_code` | string or null | Set code and number as open card databases write it: `xy2-100`. |
| `section` | string | The section of this master set the card is listed in: a key from the set’s `sections`. |
| `roles` | array of enums | The roles the card holds in this master set: `cameo`, `trophy`, `promo`, `energy`, `special_edition`. Empty for one of the set’s own cards. A role belongs to the set, not the card: the same card is a cameo in one set and a regular card in another. |
| `first_listed_at` | timestamp or null | When the card joined this master set on MasterSet. Use it to find what is new. |
| `url` | string | The card’s page on MasterSet, opened from this master set. |

The card object:

```json
{
  "id": "card_109",
  "name": "Charizard-EX (100 Full Art)",
  "set_name": "Flashfire",
  "number": "100",
  "rarity": "Rare Ultra",
  "supertype": "Pokémon",
  "finish": "Holofoil",
  "special_kind": null,
  "release_date": "2014-03-07",
  "language": "en",
  "artist": "Ryo Ueda",
  "pokedex_numbers": [6],
  "external_ids": { "printing_code": "xy2-100" },
  "section": "main",
  "roles": [],
  "first_listed_at": "2026-07-02T00:00:00.000Z",
  "url": "https://masterset.io/card/109-charizard-ex-100-full-art-flashfire-100?set=charizard"
}
```

### Retrieve a card: GET /cards/{id}

Returns one card, its other finishes, and every master set it belongs to with its role in each.

This is how to go from a card to the Pokémon that appear on it: each character set where its role is `cameo` names one.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | string | A card id, like `card_1012`. |

Returns: A card object without `section`, `roles` and `first_listed_at` (those belong to a master set), plus `variants` and `master_sets`. `301` if the card was merged into another.

Request:

```bash
curl https://masterset.io/api/v1/cards/card_1012 \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "id": "card_1012",
  "name": "Charizard",
  "set_name": "Base",
  "number": "4",
  "rarity": "Rare Holo",
  "supertype": "Pokémon",
  "finish": "1st Edition Holofoil",
  "special_kind": null,
  "release_date": "1999-01-09",
  "language": "en",
  "artist": "Mitsuhiro Arita",
  "pokedex_numbers": [6],
  "external_ids": { "printing_code": "base1-4" },
  "variants": [
    { "id": "card_127", "name": "Charizard", "finish": "Holofoil" },
    { "id": "card_1013", "name": "Charizard", "finish": "Shadowless Holofoil" }
  ],
  "master_sets": [
    { "id": "ms_13", "slug": "base-set", "name": "Base Set Grand Master Set", "type": "expansion", "roles": [] },
    { "id": "ms_1", "slug": "charizard", "name": "Charizard Master Set", "type": "character", "roles": [] },
    { "id": "ms_14", "slug": "mitsuhiro-arita-cards", "name": "Mitsuhiro Arita Master Set", "type": "artist", "roles": [] }
  ],
  "url": "https://masterset.io/card/1012-charizard-base-4"
}
```

## Pokémon

Every species in the National Pokédex, each with its master set. Use it to build a species picker, to map a Pokédex number to a master set, or to find the cards a Pokémon makes a cameo on.

| Endpoint | What it does |
| --- | --- |
| `GET /pokemon` | List all Pokémon |
| `GET /pokemon/{ref}` | Retrieve a Pokémon |
| `GET /pokemon/{ref}/cameos` | List a Pokémon’s cameos |

### The Pokémon object

| Attribute | Type | Description |
| --- | --- | --- |
| `pokedex_number` | integer | National Pokédex number. |
| `name` | string | Species name: "Charizard". |
| `slug` | string | URL name: `charizard`, `mr-mime`. |
| `generation` | integer | 1 to 9. |
| `master_set` | object or null | The species’ master set. In the list: `id` and `slug`. On its own: the whole master set object. |
| `forms` | array of objects | Retrieve only. Mega, Primal, regional and Gigantamax forms. |
| `forms.name` | string | "Mega Charizard", "Alolan Vulpix". |
| `forms.kind` | enum | `mega`, `primal`, `regional` or `gmax`. |
| `forms.region` | enum or null | `alola`, `galar`, `hisui` or `paldea` for a regional form. |
| `card_count` | integer | Retrieve only. Rows in the default checklist of its master set. |
| `cameo_count` | integer | Retrieve only. Cards where it appears without being the subject. |

The Pokémon object:

```json
{
  "pokedex_number": 6,
  "name": "Charizard",
  "slug": "charizard",
  "generation": 1,
  "master_set": { "id": "ms_1", "slug": "charizard" }
}
```

### List all Pokémon: GET /pokemon

Returns every species in Pokédex order, in one response.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `generation` | query | integer | Only this generation, 1 to 9. |

Returns: An object with `count` and a `pokemon` array.

Request:

```bash
curl "https://masterset.io/api/v1/pokemon?generation=1" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "count": 151,
  "pokemon": [
    { "pokedex_number": 1, "name": "Bulbasaur", "slug": "bulbasaur", "generation": 1, "master_set": { "id": "ms_212", "slug": "bulbasaur" } },
    { "pokedex_number": 2, "name": "Ivysaur", "slug": "ivysaur", "generation": 1, "master_set": { "id": "ms_669", "slug": "ivysaur" } }
  ]
}
```

### Retrieve a Pokémon: GET /pokemon/{ref}

Returns one species with its forms, how many cards and cameos it has, and its whole master set object.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `ref` (required) | path | string | A Pokédex number (`6`) or slug (`charizard`). |

Returns: A Pokémon object with `forms`, `card_count`, `cameo_count` and the full `master_set`.

Request:

```bash
curl https://masterset.io/api/v1/pokemon/6 \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "pokedex_number": 6,
  "name": "Charizard",
  "slug": "charizard",
  "generation": 1,
  "forms": [
    { "name": "Mega Charizard", "kind": "mega", "region": null },
    { "name": "Gigantamax Charizard", "kind": "gmax", "region": null }
  ],
  "card_count": 243,
  "cameo_count": 25,
  "master_set": { "id": "ms_1", "slug": "charizard", "name": "Charizard Master Set", "…": "the whole master set object" }
}
```

### List a Pokémon’s cameos: GET /pokemon/{ref}/cameos

Returns the cards this Pokémon appears on without being the card’s subject: another Pokémon’s card, a Trainer or an Energy whose artwork shows it.

Each is a full card object from the species’ master set, carrying the role `cameo`.

Cameo data builds on RotomAmiti’s Cameo Pokémon Card Database, a community project; the response carries that credit in `credit`.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `ref` (required) | path | string | A Pokédex number (`6`) or slug (`charizard`). |

Returns: An object with `pokemon`, `count`, a `cards` array of card objects, and `credit` (`text` and `url`).

Request:

```bash
curl https://masterset.io/api/v1/pokemon/pikachu/cameos \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "pokemon": { "pokedex_number": 25, "name": "Pikachu", "slug": "pikachu", "generation": 1, "master_set": { "id": "ms_2", "slug": "pikachu" } },
  "count": 252,
  "cards": [
    {
      "id": "card_7577",
      "name": "Marshadow",
      "set_name": "Cosmic Eclipse",
      "number": "103",
      "rarity": "Rare",
      "supertype": "Pokémon",
      "finish": "Normal",
      "special_kind": null,
      "release_date": "2019-11-01",
      "language": "en",
      "artist": "0313",
      "pokedex_numbers": [802],
      "external_ids": { "printing_code": "sm12-103" },
      "section": "cameos",
      "roles": ["cameo"],
      "first_listed_at": "2026-07-11T12:51:13.000Z",
      "url": "https://masterset.io/card/7577-marshadow-cosmic-eclipse-103?set=pikachu"
    }
  ],
  "credit": {
    "text": "Cameo data builds on RotomAmiti's Cameo Pokémon Card Database",
    "url": "https://docs.google.com/spreadsheets/d/18nIkOgqQrHZTz0TrH_gL1e1nL1RcHiCmPF5finAjToY"
  }
}
```

## Artists

Every illustrator with a master set. An artist’s checklist is their master set: pass its id or slug to the checklist endpoint.

| Endpoint | What it does |
| --- | --- |
| `GET /artists` | List all artists |

### The artist object

| Attribute | Type | Description |
| --- | --- | --- |
| `name` | string | The illustrator’s name as credited on cards. |
| `card_count` | integer | Rows in the artist’s default checklist: the same number as their master set’s `card_count`. |
| `master_set` | object | The artist’s master set. |
| `master_set.id` | string | Master set id. |
| `master_set.slug` | string | Master set slug. |
| `master_set.url` | string | Its page on MasterSet. |

The artist object:

```json
{
  "name": "Mitsuhiro Arita",
  "card_count": 1448,
  "master_set": { "id": "ms_14", "slug": "mitsuhiro-arita-cards", "url": "https://masterset.io/mitsuhiro-arita-cards" }
}
```

### List all artists: GET /artists

Returns every illustrator by name, in one response.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `q` | query | string | Search in names. Case-insensitive. |

Returns: An object with `count` and an `artists` array.

Request:

```bash
curl "https://masterset.io/api/v1/artists?q=arita" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "count": 1,
  "artists": [
    { "name": "Mitsuhiro Arita", "card_count": 1448, "master_set": { "id": "ms_14", "slug": "mitsuhiro-arita-cards", "url": "https://masterset.io/mitsuhiro-arita-cards" } }
  ]
}
```

## Changes

What changed in master sets: cards added, cards removed, cards merged into another, and cards whose name, number, finish, set or kind was corrected. Use it to keep a copy of the checklists you hold up to date without refetching each one.

Changes are detected hourly and listed oldest first. Keep the `next_cursor` of each response and pass it as `cursor` next time: you get only what happened since. When a change is about a card, fetch the card or the set’s checklist for its new details.

History begins when the feed started on MasterSet and is kept for 400 days. A client further behind than that should refetch its checklists.

| Endpoint | What it does |
| --- | --- |
| `GET /changes` | List changes |
| `GET /mastersets/{ref}/changes` | List a master set’s changes |

### The change object

| Attribute | Type | Description |
| --- | --- | --- |
| `id` | string | Unique, increasing identifier, like `chg_1042`. Also the cursor. |
| `type` | enum | `added`, `removed`, `replaced` (merged into `replaced_by`) or `updated` (the card’s name, number, finish, set name or special kind changed). |
| `master_set` | object | The master set it happened in. |
| `master_set.id` | string | Master set id. |
| `master_set.slug` | string or null | Its slug now. |
| `card` | object | The card it is about. A removed or replaced card may no longer exist on its own. |
| `card.id` | string | Card id. |
| `replaced_by` | object or null | For `replaced`: the card it was merged into. That card is now in the set in its place. |
| `replaced_by.id` | string | Card id. |
| `detected_at` | timestamp | When MasterSet detected the change. |

The change object:

```json
{
  "id": "chg_3",
  "type": "replaced",
  "master_set": { "id": "ms_1", "slug": "charizard" },
  "card": { "id": "card_9" },
  "replaced_by": { "id": "card_16382" },
  "detected_at": "2026-11-28T02:56:14.221Z"
}
```

### List changes: GET /changes

Every change across all master sets, oldest first, 100 a page (up to 1,000).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `cursor` | query | string | The `next_cursor` of your previous response: only changes after it. |
| `since` | query | string | A date or time (`2026-11-27`, `2026-11-27T12:00:00Z`): only changes detected at or after it. For a first request; use `cursor` after that. |
| `type` | query | string | Comma-separated change types to return: `added,removed`. |
| `limit` | query | integer | 1 to 1,000. Default 100. |

Returns: An object with `count`, a `changes` array, `next_cursor` (keep it: with no new changes it is the cursor you sent), `has_more` (true when another page is waiting now) and `history_begins`.

Request:

```bash
curl "https://masterset.io/api/v1/changes?since=2026-11-27" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "count": 2,
  "changes": [
    { "id": "chg_1", "type": "updated", "master_set": { "id": "ms_1", "slug": "charizard" }, "card": { "id": "card_1" }, "replaced_by": null, "detected_at": "2026-11-28T02:56:14.221Z" },
    { "id": "chg_3", "type": "replaced", "master_set": { "id": "ms_1", "slug": "charizard" }, "card": { "id": "card_9" }, "replaced_by": { "id": "card_16382" }, "detected_at": "2026-11-28T02:56:14.221Z" }
  ],
  "next_cursor": "chg_3",
  "has_more": false,
  "history_begins": "2026-11-28T02:56:14.221Z"
}
```

### List a master set’s changes: GET /mastersets/{ref}/changes

The same, for one master set. Poll it for the sets your users track.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `ref` (required) | path | string | A master set id (`ms_1`) or slug (`charizard`). |
| `cursor` | query | string | The `next_cursor` of your previous response for this set. |
| `since` | query | string | A date or time: only changes detected at or after it. |
| `type` | query | string | Comma-separated change types to return. |
| `limit` | query | integer | 1 to 1,000. Default 100. |

Returns: The same shape as listing changes.

Request:

```bash
curl "https://masterset.io/api/v1/mastersets/charizard/changes?type=added,replaced" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

Response:

```json
{
  "count": 1,
  "changes": [
    { "id": "chg_3", "type": "replaced", "master_set": { "id": "ms_1", "slug": "charizard" }, "card": { "id": "card_9" }, "replaced_by": { "id": "card_16382" }, "detected_at": "2026-11-28T02:56:14.221Z" }
  ],
  "next_cursor": "chg_3",
  "has_more": false,
  "history_begins": "2026-11-28T02:56:14.221Z"
}
```

## Meta

The API describing itself: its version, how big the catalogue is, the vocabulary in use, and which capabilities are available. Useful as a health check, for building against the vocabulary instead of hard-coding it, and for an app or a coding assistant to check what it can rely on before using it.

`capabilities` lists every capability with `available` true or false; an available one also lists the `plans` it comes with, and, when you send your key, `your_plan` says whether yours includes it. `planned` lists what is planned, separately: nothing in it is available.

| Endpoint | What it does |
| --- | --- |
| `GET /meta` | Retrieve API metadata |

### Retrieve API metadata: GET /meta

No key needed, and never counted. Send your key to get `your_plan` on each available capability.

No API key needed.

Returns: An object with `version`, `languages`, `master_sets` (total and by type), `set_types`, `section_keys`, `roles`, `card_fields`, `master_set_fields`, `sample_master_sets`, `modules` (each switch, true or false), `credits` (credit for data that builds on others’ work), `capabilities`, `planned` and `purchase_links`.

Request:

```bash
curl https://masterset.io/api/v1/meta
```

Response:

```json
{
  "version": "v1",
  "languages": [
    "en"
  ],
  "master_sets": {
    "total": 1738,
    "by_type": {
      "artist": 424,
      "character": 1025,
      "collectible": 43,
      "expansion": 182,
      "promo_series": 31,
      "specialty": 33
    }
  },
  "set_types": [
    "character",
    "artist",
    "expansion",
    "promo_series",
    "specialty",
    "collectible"
  ],
  "section_keys": [
    "main",
    "cameos",
    "trophy",
    "promos",
    "energy",
    "special_editions",
    "errors",
    "prototypes",
    "metal",
    "jumbo",
    "collectibles",
    "finish:<finish>"
  ],
  "roles": [
    "cameo",
    "trophy",
    "promo",
    "energy",
    "special_edition"
  ],
  "card_fields": [
    "id",
    "name",
    "set_name",
    "number",
    "rarity",
    "supertype",
    "finish",
    "special_kind",
    "release_date",
    "language",
    "artist",
    "pokedex_numbers",
    "external_ids",
    "section",
    "roles",
    "first_listed_at",
    "url"
  ],
  "master_set_fields": [
    "id",
    "slug",
    "name",
    "type",
    "subject",
    "language",
    "description",
    "card_count",
    "sections",
    "default_sort",
    "updated_at",
    "url",
    "attribution"
  ],
  "sample_master_sets": [
    "charizard",
    "eevee",
    "151",
    "mitsuhiro-arita-cards",
    "base-set"
  ],
  "modules": {
    "catalogue": true,
    "collecting": true,
    "cameos": true,
    "changes": true,
    "images": false,
    "prices": false,
    "condition_prices": false,
    "graded_prices": false,
    "valuations": false,
    "price_history": false,
    "purchase_links": false
  },
  "credits": [
    {
      "for": "cameos",
      "text": "Cameo data builds on RotomAmiti's Cameo Pokémon Card Database",
      "url": "https://docs.google.com/spreadsheets/d/18nIkOgqQrHZTz0TrH_gL1e1nL1RcHiCmPF5finAjToY"
    }
  ],
  "capabilities": [
    {
      "id": "catalogue",
      "name": "Card catalogue",
      "available": true,
      "plans": [
        "trial",
        "hobbyist",
        "developer",
        "business"
      ]
    },
    {
      "id": "collecting",
      "name": "Master sets, sections, rules and variants",
      "available": true,
      "plans": [
        "trial",
        "hobbyist",
        "developer",
        "business"
      ]
    },
    {
      "id": "cameos",
      "name": "Cameo relationships",
      "available": true,
      "plans": [
        "trial",
        "hobbyist",
        "developer",
        "business"
      ]
    },
    {
      "id": "changes",
      "name": "Changes feed",
      "available": true,
      "plans": [
        "trial",
        "hobbyist",
        "developer",
        "business"
      ]
    },
    {
      "id": "purchase_links",
      "name": "Marketplace purchase links",
      "available": false
    },
    {
      "id": "images",
      "name": "Card images",
      "available": false
    },
    {
      "id": "prices",
      "name": "Current card prices",
      "available": false
    },
    {
      "id": "condition_prices",
      "name": "Condition-specific prices",
      "available": false
    },
    {
      "id": "graded_prices",
      "name": "Graded prices",
      "available": false
    },
    {
      "id": "valuations",
      "name": "Master set values and cost to complete",
      "available": false
    },
    {
      "id": "price_history",
      "name": "Price history and trends",
      "available": false
    }
  ],
  "planned": [
    {
      "id": "commerce",
      "title": "Marketplace purchase links",
      "description": "Ready-to-use purchase links for eBay and TCGplayer, without managing your own marketplace integrations.",
      "status": "planned",
      "capabilities": [
        "purchase_links"
      ],
      "note": "Planned capabilities are subject to commercial licensing arrangements. Availability, subscription eligibility and release dates may change."
    },
    {
      "id": "imagery",
      "title": "Card imagery",
      "description": "A unified source for card images, including variant-specific imagery where available.",
      "status": "planned",
      "capabilities": [
        "images"
      ],
      "note": "Planned capabilities are subject to commercial licensing arrangements. Availability, subscription eligibility and release dates may change."
    },
    {
      "id": "market",
      "title": "Market intelligence",
      "description": "Card prices, graded valuations, master set values and historical market trends.",
      "status": "planned",
      "capabilities": [
        "prices",
        "condition_prices",
        "graded_prices",
        "valuations",
        "price_history"
      ],
      "note": "Planned capabilities are subject to commercial licensing arrangements. Availability, subscription eligibility and release dates may change."
    }
  ],
  "purchase_links": {
    "ebay": {
      "affiliate": false,
      "plain": false
    },
    "tcgplayer": {
      "affiliate": false,
      "plain": false
    }
  }
}
```

## Sample endpoints

Two endpoints that answer without a key, for five master sets: `charizard`, `eevee`, `151`, `mitsuhiro-arita-cards` and `base-set`. They return exactly what the real endpoints do, so you can build a prototype before you sign up. They allow 30 requests a minute per address, and work from a browser.

| Endpoint | What it does |
| --- | --- |
| `GET /sample/mastersets/{ref}` | Retrieve a sample master set |
| `GET /sample/mastersets/{ref}/cards` | Retrieve a sample checklist |

### Retrieve a sample master set: GET /sample/mastersets/{ref}

The same response as retrieving a master set.

No API key needed.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `ref` (required) | path | string | One of the five sample slugs. |

Returns: A master set object.

Request:

```bash
curl https://masterset.io/api/v1/sample/mastersets/eevee
```

Response:

```json
{
  "id": "ms_6",
  "slug": "eevee",
  "name": "Eevee Master Set",
  "type": "character",
  "subject": "Eevee",
  "…": "the whole master set object"
}
```

### Retrieve a sample checklist: GET /sample/mastersets/{ref}/cards

The same response as retrieving a checklist, with the same parameters.

No API key needed.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `ref` (required) | path | string | One of the five sample slugs. |
| `exclude` | query | string | Comma-separated section keys to leave out: `cameos,trophy`. `main` leaves out the set’s own cards. |
| `include` | query | string | Comma-separated section keys to add that the default checklist leaves out: `jumbo`, `metal`. |
| `variants` | query | boolean | `false` returns one row per card, leaving out every variant finish. Default `true`. |
| `fields` | query | string | Comma-separated card attributes to return, for a smaller response: `id,name,section`. `id` is always included. |

Returns: An object with `master_set`, `rules_applied`, `count` and `cards`.

Request:

```bash
curl "https://masterset.io/api/v1/sample/mastersets/charizard/cards?fields=name,finish,section"
```

Response:

```json
{
  "master_set": { "id": "ms_1", "slug": "charizard", "name": "Charizard Master Set" },
  "rules_applied": { "include": [], "exclude": [], "variants": true },
  "count": 243,
  "cards": [
    { "id": "card_127", "name": "Charizard", "finish": "Holofoil", "section": "main" },
    { "id": "card_1012", "name": "Charizard", "finish": "1st Edition Holofoil", "section": "finish:1st_edition_holofoil" }
  ]
}
```
