Identify a card from a photo
Returns ranked catalog matches for the card in the supplied image.
Consumes one scan from your monthly quota only when recognition actually
runs. Validation failures (422), auth failures (401/403) and rate-limit
rejections (429) do not consume quota.
ApiKeyAuthX-API-Key<token>Your Flipzi Scanner API key (e.g. fzs_live_...), issued from the developer
dashboard at flipzi.io/account. Rotating a key keeps the old one valid for
24 hours, so you can roll it out without downtime.
- body
image*unknownThe card photo (JPEG, PNG or WebP). Max 12 MB.
hint_card_number?stringCollector number you already read, e.g. 76/198. Re-ranks only.
hint_set_code?stringSet code you already read, e.g. OBF. Re-ranks only.
top_n?integerCandidates to return. Clamped to your plan's maximum.
1 <= valuecategory?stringThe game to search. Japanese and Chinese cards reuse the English
artwork, so name pokemon-jp or pokemon-zh when you scan those,
onepiece for One Piece, yugioh for Yu-Gi-Oh!, mtg for Magic: The Gathering, and the
slug listed under Games for every other game.
Anything else returns 422.
"pokemon""pokemon""pokemon-jp""pokemon-zh""onepiece""yugioh""mtg""lorcana""starwars-unlimited""riftbound""gundam""digimon""union-arena""sorcery""dragonball-masters""flesh-and-blood""weiss-schwarz"Recognition completed. Note that a successful response may still contain low-confidence candidates.
application/json- response
data?curl -X POST "https://scan.flipzi.io/v1/recognize" \ -H "X-API-Key: YOUR_SCANNER_API_KEY" \ -F "[email protected]"{ "data": { "candidates": [ { "card_id": "0f8a3c62-1b4e-4e9f-9a11-2c7d5e6b8a90", "name": "Rayquaza ex", "set_id": "sv3pt5", "set_code": "OBF", "card_number": "76/198", "rarity": "Double Rare", "image_url": "http://example.com", "category": "pokemon", "score": 0.9474 } ], "confidence": "high", "auto_accept": true, "top_score": 0.9474, "margin": 0.3195, "match_path": "visual", "index_version": "20260817T063440Z" }}Errors
Every error uses the same JSON envelope. Branch on error.code: it is stable, while the message can change and several conditions can share one HTTP status.
Catalog coverage GET
Which catalog the recognizer is currently matching against, and how many cards it contains. `index_version` changes whenever the catalog is rebuilt — worth recording alongside results if you cache them, since scores are not comparable across versions.