FlipziDocs
API referenceRecognition

Identify a card from a photo

POST
/v1/recognize

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.

Authorization

ApiKeyAuth
headerX-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.

Request Body

  1. body
image*unknown

The card photo (JPEG, PNG or WebP). Max 12 MB.

hint_card_number?string

Collector number you already read, e.g. 76/198. Re-ranks only.

hint_set_code?string

Set code you already read, e.g. OBF. Re-ranks only.

top_n?integer

Candidates to return. Clamped to your plan's maximum.

Range1 <= value
category?string

The 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.

Default"pokemon"
Value in"pokemon""pokemon-jp""pokemon-zh""onepiece""yugioh""mtg""lorcana""starwars-unlimited""riftbound""gundam""digimon""union-arena""sorcery""dragonball-masters""flesh-and-blood""weiss-schwarz"

Response Body

Recognition completed. Note that a successful response may still contain low-confidence candidates.

application/json
  1. 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"  }}