Integration recipes
Build a set browser
- Call
GET /catalog/sets. - Let the user choose a set using its returned
id. - URL-encode that ID in
GET /catalog/sets/:code/cards. - Render each card's name, number, language and variant. Show a fallback when
imageUrlis absent. - Paginate with
pageandpageSize; usemeta.totalfor navigation.
An import can change results between pages. Retain card IDs when reconciling results and avoid promising a frozen full export.
Resolve an identity
Search using a card name and printed number. Apply a release zone or set-code filter if known. Ask the user to choose the correct language and printing from the candidates, then fetch the selected id through the card endpoint.
The search API does not return a confidence score or guarantee the first match is correct. It does not identify photographs or return prices.
The same workflow works with search_cards and get_card in MCP.