Build with AI
A brief you can paste into Claude Code, Cursor or ChatGPT.
Paste this into your coding assistant before asking it to build with MasterSet. It is everything the assistant needs.
Brief
You are integrating the MasterSet API (Pokémon TCG master sets).
Base URL: https://masterset.io/api/v1
Auth: header "Authorization: Bearer <key>" (key from env MASTERSET_API_KEY; server-side only).
No key needed for: GET /meta, GET /sample/mastersets/{slug}, GET /sample/mastersets/{slug}/cards
where slug is one of: charizard, eevee, 151, mitsuhiro-arita-cards, base-set.
Endpoints (all GET, JSON, snake_case):
- /mastersets?q=&type=&limit=&cursor= search and list master sets
- /mastersets/{id|slug} one set, with its sections
- /mastersets/{id|slug}/cards the WHOLE checklist in one response
?exclude=cameos,trophy ?include=jumbo ?variants=false ?fields=id,name,section
- /cards/{id} one card, its variants, its master sets
- /pokemon?generation= every species with its Pokédex number and master set
- /pokemon/{number|slug} one species: forms, card_count, cameo_count, master set
- /pokemon/{number|slug}/cameos cards whose artwork shows it without it being the subject
- /artists?q= illustrators, each with a master set
- /changes?cursor=&since=&type= what changed, oldest first; keep next_cursor and poll with it
- /mastersets/{id|slug}/changes the same for one set
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>.
Each checklist card has: id, name, set_name, number, rarity, supertype, finish, special_kind, release_date, language, artist, pokedex_numbers, external_ids, section, roles, first_listed_at, url.
Roles (per set): cameo, trophy, promo, energy, special_edition.
Rules:
- Ids are opaque strings ("ms_1", "card_109"). A 301 means the id or slug moved: follow it.
- Each finish of a card is its own row. variants=false gives one row per card.
- There are NO prices or market values, NO card images, NO purchase links in this API today. Do not look for them; GET /meta lists what is available, and what is planned separately.
- Cache responses; send If-None-Match with the ETag to get 304s. Refresh or delete stored data at least every 30 days (API Terms, section 5).
- Do not train or fine-tune a model on the data. Search indexes and retrieval to answer the app's own users are fine.
- Errors: { "error": { "type", "message", "docs_url", "request_id" } }.
401 missing_key/invalid_key, 402 trial_expired, 429 rate_limited/quota_exceeded, 503 busy (retry).
- Show the credit from set.attribution wherever the data is displayed (every standard plan).
Plans: Free trial (30 days, no card, 2,000 requests, evaluation only); Hobbyist $9/month (personal projects); Developer $29/month and Business $99/month (commercial apps). No overage charges.
Full docs: https://masterset.io/llms-full.txt OpenAPI: https://masterset.io/developers/openapi.jsonStarter prompts
- “Build a Charizard master set tracker in Next.js using the MasterSet API. Store what I own in localStorage. Start with the keyless sample endpoint.”
- “Write a Python script that prints a binder checklist for the 151 master set, grouped by section, using the MasterSet API.”
- “Add a page to my app that lists every master set a card belongs to, using GET /cards/{id}.”
- “Show every card Pikachu makes a cameo on, newest first, using GET /pokemon/pikachu/cameos.”
This page as Markdown · all docs in one file · OpenAPI