# Quickstart

Make your first request in under a minute, with or without a key.

The MasterSet API returns Pokémon TCG master sets: what each set contains, which section every card belongs to, and how its variants are grouped. It is read-only JSON over HTTPS.

## 1. Try it without a key

Five sample master sets work with no account: `charizard`, `eevee`, `151`, `mitsuhiro-arita-cards` and `base-set`.

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

## 2. Get a key

Sign in at [the dashboard](https://masterset.io/developers/dashboard) and create a key. Creating your first key starts a 30-day free trial; no card is needed. The key is shown once, so copy it then.

## 3. How do I get every Charizard card programmatically?

cURL:

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

JavaScript:

```javascript
const res = await fetch('https://masterset.io/api/v1/mastersets/charizard/cards', {
  headers: { Authorization: `Bearer ${process.env.MASTERSET_API_KEY}` }
});
const { count, cards } = await res.json();
console.log(count, cards[0].name, cards[0].section);
```

Python:

```python
import os, requests

res = requests.get(
    "https://masterset.io/api/v1/mastersets/charizard/cards",
    headers={"Authorization": f"Bearer {os.environ['MASTERSET_API_KEY']}"},
)
data = res.json()
print(data["count"], data["cards"][0]["name"], data["cards"][0]["section"])
```

One request returns the whole checklist. There is no paging on a checklist and no request per card.

## 4. Shape the checklist

Every master set is made of sections. Leave some out, or ask for one row per card instead of one per variant:

```bash
# Charizard cards only: no cameos, one row per card
curl "https://masterset.io/api/v1/mastersets/charizard/cards?exclude=cameos&variants=false" \
  -H "Authorization: Bearer $MASTERSET_API_KEY"
```

## What is not in the API

- Card prices, graded values, set values and price history.
- Card images.
- Marketplace purchase links.
- Gameplay text: attacks, abilities, HP and rules text.
- Languages other than English.
- Anything about collectors or their collections.

[What's available](https://masterset.io/developers/docs/capabilities) lists what is planned. `GET /meta` reports what is available.
