Use cases
What people build on a card API.
Four kinds of product, and the routes each one actually needs.
A collection tracker
Users add the cards they own and see them by set. You need the catalogue once and prices on demand.
- Load a set with /v1/sets/{code}/cards and store the card ids.
- Keep your copy current by re-reading sets and comparing version: it moves only when a card changes.
- Read /v1/cards/{id}/prices when a user opens a card, and cache the answer with its as_of.
- Draw the value of a card over time from /v1/cards/{id}/prices/history, with one source and one variant.
A shop or marketplace back office
Listings need a clean product record and a reference price to check against.
- Use external_ids to join the catalogue with rows keyed by Cardmarket or TCGplayer product id.
- Use /v1/sealed with kind= and set= to build the sealed side of the catalogue.
- Read prices by source= for the market you sell in.
A set or card browser
A site or bot that answers "what is in this set" and "which card is this".
- List sets by game and region, newest first.
- Look a card up by number= as printed, or by the start of its name.
- Serve your own pages from your own copy: call the API from your server, not from the browser.
A multi-game product
One integration for several games, instead of one per game.
- Every game shares the same routes and object shapes; game-specific rules data sits in attributes.
- A new game is a new value for game=. /v1/games lists what is available.
- One key and one credit allowance cover all of them.
What the API is not for
- A live order book: quotes are daily observations, not listings.
- Republishing the catalogue or the prices as a competing data service. See the terms.
Last updated