Flipzi Scanning API
Identify a card from a photo. Included with Ultra and Mega. Served from `https://scan.flipzi.io` with a Scanner API key (`fzs_live_…`) — see the *Card scanning* chapter.
Identify a card from a photo. Included with Ultra and Mega. Served from `https://scan.flipzi.io` with a Scanner API key (`fzs_live_…`) — see the *Card scanning* chapter.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/flipzi-io:flipzi-io-scanning-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Flipzi Data Scanning API
version: 1.30.0
description: 'Read-only TCG price-data API. Card prices, catalog, price history, market
movement and derived analytics across Pokémon, Japanese Pokémon, Magic,
Yu-Gi-Oh!, One Piece, Lorcana, Riftbound, Dragon Ball Super (Fusion World
and Masters), Digimon, Gundam, Cyberpunk, Simplified Chinese Pokémon,
Star Wars: Unlimited, Weiss Schwarz, Flesh and Blood, Union Arena,
Sorcery: Contested Realm and the Naruto Card Game. **Listings lie. Sales don''t.** Beyond current asking prices, this API
publishes what cards *actually sold for* — completed eBay sales, with the
sample size behind every figure, broken out across **eight eBay
marketplaces**: ebay.co.uk, .com, .de, .fr, .it, .es, .ca and .com.au. The
same card does not clear at the same price in every country, and no other
TCG price API publishes that difference. ## What''s new in 1.30.0
*Released 2026-11-24.*
**Accepted Best Offer prices.** On ebay.com, ebay.co.uk and ebay.de, a sale
closed by best offer now carries the amount the buyer actually paid
wherever eBay''s price data has it (about half to two thirds of them). Those
sales count at that price, as confirmed prices. Best-offer sales without it,
and every best-offer sale on the other five sites, still carry the listed
price. Coverage starts with sales collected from 2026-11-24 onwards. - **`price_confirmed`** on each `/sales` row: `false` only for a best-offer
sale still priced at the listed price. - **`native.listed_minor`** on each `/sales` row: the asking price of a
best-offer sale whose accepted amount is known, `null` otherwise. - **`best_offer_count`** on `/sold` and `/marketplaces` now counts only the
best-offer sales still at the listed price. - **`best_offer`** on `/sales`: `exclude` keeps every confirmed price,
including best-offer sales with their accepted amount; `only` lists the
best-offer sales still at the listed price. ## What''s new in 1.29.0
*Released 2026-11-24.*
**How many best-offer sales are in a sold price.** The sales data we
collect does not include the accepted amount on a sale closed by best
offer, so its price is the listed one, the most the buyer could have paid. Those sales are counted in
the price at that listed price. Nothing existing changes shape. - **`best_offer_count`** on `/sold` and `/marketplaces` (and `sold` in
search results): of `sample_size`, how many sales closed by best offer. `sample_size - best_offer_count` is the number of confirmed prices. `null` until the row is next recomputed (daily). - **`best_offer`** on `/sales`: `exclude` lists only confirmed prices,
`only` lists just the best-offer sales, `include` (the default) lists
both. `filters.best_offer` says which applied. ## What''s new in 1.28.0
*Released 2026-11-22.*
**Extra units.** On a paid flipzi.io plan you can buy one-off extra units
from the Usage page of the dashboard, in five sizes from 5,000 to 250,000. They are added to your current billing period at once and expire at its
end; unused units do not roll over. `limit` and `X-Quota-Limit` include them, and a
`QUOTA_EXCEEDED` body carries `unit_packs_url` next to the next plan. Marketplace subscriptions are not affected. ## What''s new in 1.27.0
*Released 2026-11-22.*
**French cards on Cardmarket.** Prices for the French printings of
English Pokémon cards, on the same card id. Nothing existing changes
shape: `fr` is a new value. - **Cardmarket by condition** (`GET /v1/cards/{card_id}/cardmarket`, its
`/history`, `POST /v1/cards/bulk/cardmarket`): `language` takes `fr`. `languages[]` keeps a fixed order: `en`, `ja`, `de`, `es`, `it`, `fr`. Ultra and above (`cm_condition`). - **Daily lowest Near Mint by language**: `daily_lowest_near_mint` now
has a `fr` entry beside `de`, `es` and `it`. - **Wider German coverage.** German, Spanish, Italian and French copies
are all read from a cheapest Near Mint copy of €2 in that language
(German was €5).'
contact:
name: Flipzi
email: hello@flipzi.io
url: https://flipzi.io
termsOfService: https://flipzi.io/terms-of-service.php
license:
name: Proprietary - see the Terms of Service
url: https://flipzi.io/terms-of-service.php
servers:
- url: https://data.flipzi.io
description: Production
security:
- ApiKeyAuth: []
tags:
- name: Scanning
description: 'Identify a card from a photo. Included with Ultra and Mega. Served from
`https://scan.flipzi.io` with a Scanner API key (`fzs_live_…`) — see the
*Card scanning* chapter.'
paths:
/v1/recognize:
servers:
- url: https://scan.flipzi.io
description: Scanner API
post:
tags:
- Scanning
summary: Identify a card from a photo
description: 'Returns ranked catalogue matches for the card in the supplied image.
Use a candidate''s `card_id` with any card endpoint in this API.
**Host and key:** `https://scan.flipzi.io`, with a Scanner API key
(`fzs_live_…`). Included with Ultra (100 scans a month) and Mega (75,000).
Consumes one scan **only when recognition actually runs**. Validation
failures (`422`), auth failures (`401`/`403`) and rate-limit rejections
(`429`) do not consume quota.'
operationId: recognizeCard
security:
- ScannerKeyAuth: []
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- image
properties:
image:
type: string
format: binary
description: The card photo (JPEG, PNG or WebP). Max 12 MB.
hint_card_number:
type: string
description: Collector number you already read, e.g. `76/198`. Re-ranks only.
example: 76/198
hint_set_code:
type: string
description: Set code you already read, e.g. `OBF`. Re-ranks only.
example: OBF
top_n:
type: integer
description: Candidates to return, up to 20.
minimum: 1
example: 5
category:
type: string
enum:
- pokemon
- pokemon-jp
- pokemon-zh
default: pokemon
description: 'The game to search. Japanese and Chinese cards reuse the English
artwork, so name `pokemon-jp` or `pokemon-zh` when you scan those.
Anything else returns 422.
'
application/json:
schema:
type: object
properties:
image_base64:
type: string
description: 'Base64-encoded image bytes. A `data:image/jpeg;base64,` prefix is
accepted and stripped. Remember base64 inflates size by ~33%.
'
image_url:
type: string
format: uri
description: 'Publicly reachable http/https image URL, fetched server-side.
Private, loopback and link-local addresses are rejected.
'
example: https://example.com/card.jpg
hint_card_number:
type: string
example: 76/198
hint_set_code:
type: string
example: OBF
top_n:
type: integer
minimum: 1
example: 5
category:
type: string
enum:
- pokemon
- pokemon-jp
- pokemon-zh
default: pokemon
responses:
'200':
description: Recognition completed. A successful response may still contain low-confidence candidates.
headers:
X-Quota-Limit:
schema:
type: integer
description: Scans allowed this month.
X-Quota-Remaining:
schema:
type: integer
description: Scans left this month.
X-Quota-Period:
schema:
type: string
description: 'Period the quota applies to: `YYYY-MM` (UTC calendar month) or `YYYY-MM-DD` (billing month starting that day).'
X-RateLimit-Limit:
schema:
type: integer
description: Scans allowed per minute.
X-RateLimit-Remaining:
schema:
type: integer
X-RateLimit-Reset:
schema:
type: integer
description: Unix time when the burst window resets.
X-Request-Id:
schema:
type: string
description: Quote this when reporting a problem.
content:
application/json:
schema:
$ref: '#/components/schemas/ScanRecognizeResponse'
'401':
description: Missing, invalid, revoked or suspended Scanner API key. A Data API key is not accepted on this host.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: The image is larger than 12 MB.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: No usable image was supplied, or it could not be decoded. Costs no scan.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: '`QUOTA_EXCEEDED` (monthly scans spent; `Retry-After` is the time to the
reset) or `RATE_LIMITED` (per-minute limit; retry in seconds). On Ultra,
`QUOTA_EXCEEDED` carries `details.next_plan`, `next_plan_scans`,
`upgrade_url` and `next_step`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: The recognition engine is at capacity or unavailable. Retry after `Retry-After`.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'504':
description: Recognition did not finish in time. Safe to retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/meta/index:
servers:
- url: https://scan.flipzi.io
description: Scanner API
get:
tags:
- Scanning
summary: Recognition coverage
description: 'Which catalogue the recognizer is currently matching against, and how many
cards it contains. `index_version` changes whenever the catalogue is
rebuilt; record it alongside results you cache, since scores are not
comparable across versions. Costs no scan.
**Host and key:** `https://scan.flipzi.io`, with a Scanner API key.'
operationId: getScanIndexMeta
security:
- ScannerKeyAuth: []
responses:
'200':
description: Current index metadata.
content:
application/json:
schema:
$ref: '#/components/schemas/ScanIndexResponse'
'401':
description: Missing, invalid, revoked or suspended Scanner API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: The recognition engine is unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
properties:
error:
type: object
required:
- code
- message
- details
- request_id
properties:
code:
type: string
example: QUOTA_EXCEEDED
message:
type: string
details:
type: object
additionalProperties: true
description: 'Extra context for the error (`next_step`, plan and quota fields).
Always an object; `{}` on errors that carry none, such as
`API_KEY_INVALID`.
'
request_id:
type: string
format: uuid
description: Same as the `X-Request-Id` header. Quote it to support.
ScanRecognizeResponse:
type: object
properties:
data:
type: object
properties:
candidates:
type: array
description: Ranked best-first. Empty if nothing matched.
items:
$ref: '#/components/schemas/ScanCandidate'
confidence:
type: string
enum:
- high
- medium
- low
description: Calibrated verdict. Prefer this over raw `score`.
example: high
auto_accept:
type: boolean
description: 'True when the top match is strong AND clearly ahead of the runner-up:
safe to apply without user confirmation. False means show the candidates.
'
example: true
top_score:
type:
- number
- 'null'
format: float
example: 0.9474
margin:
type:
- number
- 'null'
format: float
description: '`candidates[0].score - candidates[1].score`. A thin margin means a
near-twin exists, usually an identical-art reprint. **Can be
negative** when a hint re-rank promoted a card that scored lower
visually; branch on `confidence` and `auto_accept`, never on its sign.
'
example: 0.3195
match_path:
type: string
description: 'How the answer was reached. `visual` = pure image match;
`visual+number` / `visual+geometry` = a re-rank moved the top result.
'
enum:
- visual
- visual+number
- visual+geometry
example: visual
index_version:
type:
- string
- 'null'
description: Catalogue build the answer came from.
example: 20260817T063440Z
ScanCandidate:
type: object
properties:
card_id:
type: string
description: Flipzi catalogue identifier. Use it with any `/v1/cards/{card_id}` endpoint.
example: 0f8a3c62-1b4e-4e9f-9a11-2c7d5e6b8a90
name:
type:
- string
- 'null'
example: Rayquaza ex
set_id:
type:
- string
- 'null'
description: Catalogue set identifier.
example: sv3pt5
set_code:
type:
- string
- 'null'
description: Printed set code. Populated for English Pokémon and One Piece.
example: OBF
card_number:
type:
- string
- 'null'
example: 76/198
rarity:
type:
- string
- 'null'
example: Double Rare
image_url:
type:
- string
- 'null'
format: uri
description: Reference image of this card.
category:
type:
- string
- 'null'
description: The game matched, as in `/v1/catalog/games`.
example: pokemon
score:
type: number
format: float
description: 'Similarity to the query image, 0-1. Comparable **within** one
response only. Prefer `confidence` / `auto_accept` for decisions.
'
example: 0.9474
ScanIndexResponse:
type: object
properties:
data:
type: object
properties:
index_version:
type: string
example: 20260817T063440Z
card_count:
type: integer
description: Cards currently matchable.
example: 20406
games:
type: array
description: Games the current index covers.
items:
type: string
example:
- pokemon
built_at:
type: string
format: date-time
securitySchemes:
ScannerKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: 'Your Flipzi **Scanner** API key (`fzs_live_...`), used only on
`https://scan.flipzi.io`. Issued from the same dashboard as your Data API
key (switch to the Scanner API, then API keys). Available on Ultra and Mega.
'
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: Your Flipzi Data API key (e.g. `fz_live_...`), issued from the developer dashboard at flipzi.io/account.