Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Valo.Vision Scans API
summary: Recognise trading cards from a photo (one card, or a whole binder page) and get their Valo.Data card ids.
description: '
Send a photo of one card and the game it belongs to; get up to five Valo.Data cards with a status. Send a photo of
several cards (a binder page) to `POST /vision/v1/scans/multi`; get every card in reading order. Chain with the
Valo.Data routes for prices. Same account, same API keys and same headers as Valo.Data.
## Français
**Authentification.** `Authorization: Bearer vd_live_…`, une clé de l''organisation qui porte le scope
`vision:scan` et un forfait Valo.Vision actif.
**Photo.** JPEG, PNG ou WebP, 8 Mo et 40 mégapixels au plus, côté court d''au moins 480 px, une seule carte bien
visible (`/scans`) ou des cartes entières et de face (`/scans/multi`). L''orientation EXIF est appliquée. Les photos sont traitées en mémoire, jamais conservées ni utilisées pour
entraîner un modèle.
**Prise de vue.** Les reflets sont la première cause d''`ambiguous` et de `no_match` : lumière diffuse, sans flash ni
lampe directe ; sous pochette rigide ou sleeve, inclinez légèrement la carte pour sortir le reflet de l''illustration.
Carte entière, à plat, de face et centrée, avec une petite marge autour ; photo nette, sans zoom numérique.
**Résultat.** `matched` : la première carte est la bonne au point de fonctionnement publié pour ce jeu et cette
langue. `ambiguous` : des candidats plausibles, à faire choisir par une personne. `no_match` : aucune carte
reconnue. `score` mesure une similarité visuelle, pas une probabilité. `finish_confidence` dit si l''impression et
la finition sont certaines. Aucune garantie d''authenticité, d''état ni de grade.
**Langue.** `language` filtre les candidats. Sans `language`, `/scans` lit la langue imprimée sur la carte et cherche
la carte dans cette langue parmi les langues ouvertes : une carte allemande ou italienne n''est plus confondue avec
sa jumelle française ou anglaise à l''illustration identique. Quand le texte ne tranche pas (énergie, carte floue),
toutes les langues ouvertes sont cherchées.
**Cartes gradées.** Une carte dans un slab (PSA, PCA, CCC, Collect Aura, BGS, CGC, SGC, Pure Grading, SFG, SGS,
MTG) se scanne comme une carte brute : photographiez le slab entier, étiquette comprise. `grading` donne alors la
société (même code que `grader` dans les prix gradés de Valo.Data), la note et le numéro de certificat lus sur
l''étiquette ; le set, l''année et le numéro imprimés départagent aussi les réimpressions à l''illustration identique.
`grading` vaut `null` pour une carte brute. Lu sur la photo, jamais vérifié auprès de la société : contrôlez le
certificat sur son site avant de vous y fier.
**Plusieurs cartes par photo.** `POST /vision/v1/scans/multi` lit toute la photo (page de classeur de 9 ou
12 cartes, cartes posées côte à côte) : chaque carte détectée revient dans l''ordre de lecture, ligne par ligne, avec
son cadre, son statut et ses candidats. Une carte coupée au bord, trop petite ou de travers est `rejected`, avec sa
raison. 12 cartes lisibles au plus par photo (`422 too_many_cards` sinon).
**Facturation.** Une analyse valide coûte un scan, quel que soit le statut. Une photo refusée (format, taille,
fichier illisible) ou une erreur ne coûte rien. Par page : un scan par carte `matched` ou `ambiguous`, un au moins
par photo analysée ; les cartes `no_match` et `rejected` sont gratuites. Si les scans restants ne couvrent pas la
page, `429 quota_exceeded` indique `credits_required` et rien n''est facturé. Les scans simultanés sont limités par
clé selon le forfait (`429 concurrency_limited`, sans compter dans la limite par minute) ; une page occupe un seul
créneau et compte pour une seule requête.
**Ouverture.** Chaque couple jeu/langue est ouvert après qualification sur un corpus de photos indépendant ; les
autres répondent `403 vision_not_available`.
## English
**Authentication.** `Authorization: Bearer vd_live_…`, a key of the organization granting `vision:scan` with an
active Valo.Vision plan.
**Photo.** JPEG, PNG or WebP, at most 8 MB and 40 megapixels, shortest side at least 480 px, one card in clear view
(`/scans`) or whole cards facing the camera (`/scans/multi`). The EXIF orientation is applied. Photos are processed in memory, never stored nor used to train a model.
**Shooting tips.** Glare is the first cause of `ambiguous` and `no_match`: diffuse light, no flash nor direct lamp;
in a toploader or sleeve, tilt the card slightly to move the reflection off the artwork. Whole card, flat, facing the
camera and centred, with a small margin around it; a sharp photo, no digital zoom.
**Result.** `matched`: the first card is right at the operating point published for this game and language.
`ambiguous`: plausible candidates for a person to choose. `no_match`: no card recognised. `score` is a visual
similarity, not a probability. `finish_confidence` tells whether the printing and finish are certain. No
authenticity, condition or grade is asserted.
**Language.** `language` filters the candidates. Without `language`, `/scans` reads the language printed on the
card and looks for the card in that language among the open ones: a German or Italian card is no longer taken for
its French or English twin with the same artwork. When the text tells nothing (an energy, a blurry card), every
open language is searched.
**Graded cards.** A card in a slab (PSA, PCA, CCC, Collect Aura, BGS, CGC, SGC, Pure Grading, SFG, SGS, MTG) is
scanned like a raw card: photograph the whole slab, label included. `grading` then gives the company (the same code
as `grader` in the Valo.Data graded prices), the grade and the certificate number read on the label; the set, year
and number printed on it also tell identical-art reprints apart. `grading` is `null` for a raw card. Read from the
photo, never checked with the company: verify the certificate on its site before relying on it.
**Several cards per photo.** `POST /vision/v1/scans/multi` reads the whole photo (a 9- or 12-pocket binder page,
cards laid side by side): every detected card comes back in reading order, row by row, with its box, status and
candidates. A card cut by the edge, too small or skewed is `rejected`, with its reason. At most 12 readable cards per
photo (`422 too_many_cards` otherwise).
**Billing.** A valid analysis costs one scan, whatever its status. A refused photo (format, size, unreadable file)
or an error costs nothing. Per page: one scan per `matched` or `ambiguous` card, at least one per analysed photo;
`no_match` and `rejected` cards are free. When the remaining scans cannot cover the page, `429 quota_exceeded` gives
`credits_required` and nothing is billed. Simultaneous scans are limited per key by the plan
(`429 concurrency_limited`, not counted toward the per-minute limit); a page holds a single slot and counts as one
request.
**Availability.** Each game and language pair opens after qualification on an independent photo corpus; the others
answer `403 vision_not_available`.
**Latency.** A scan answers in under a second. The first scan after a quiet period can take up to about 25 s while
recognition starts: give your HTTP client a timeout of at least 30 s. A client that closes the connection before the
answer is never billed.
## Changelog · Journal des versions
| Version | Date | Change · Changement |
|---|---|---|
| 1.1.0 | 2026-11-26 | Without `language`, `POST /vision/v1/scans` reads the language printed on the card and looks for the card in that language among the open ones: a German or Italian Pokémon card is no longer taken for its French or English twin (`/scans/multi` unchanged). New `grading` field: a graded card is detected automatically, with its company (same code as `grader` in the Valo.Data graded prices), grade and certificate number read on the label; the label''s set, year and number also sort the candidates. `null` for a raw card. · Sans `language`, `POST /vision/v1/scans` lit la langue imprimée sur la carte et cherche la carte dans cette langue parmi les langues ouvertes : une carte Pokémon allemande ou italienne n''est plus prise pour sa jumelle française ou anglaise (`/scans/multi` inchangé). Nouveau champ `grading` : une carte gradée est détectée automatiquement, avec sa société (même code que `grader` dans les prix gradés de Valo.Data), sa note et son numéro de certificat lus sur l''étiquette ; l''édition, l''année et le numéro de l''étiquette classent aussi les candidats. `null` pour une carte brute. |
| 1.0.0 | 2026-10-15 | First release: `POST /vision/v1/scans` (one card) and `POST /vision/v1/scans/multi` (a binder page), up to five Valo.Data candidates per card with a status. · Première version : `POST /vision/v1/scans` (une carte) et `POST /vision/v1/scans/multi` (une page de classeur), jusqu''à cinq candidats Valo.Data par carte avec un statut. |
## Response headers · En-têtes de réponse
`X-Request-Id`, `X-Credits-Used` (scans), `X-Credits-Remaining`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`,
`X-RateLimit-Reset` (Unix time).
## Errors · Erreurs
`{"error": {"code": "image_too_small", "message": "…", "request_id": "req_…", "docs_url": "…"}}`
| Status | Codes |
|---|---|
| 401 | `invalid_api_key`, `api_key_expired` |
| 403 | `insufficient_scope`, `subscription_inactive`, `vision_not_available`, `ip_not_allowed` |
| 404 | `game_not_found` |
| 413 · 415 | `image_too_large`, `image_unsupported_format` (not billed) |
| 422 | `invalid_request`, `image_too_small`, `image_corrupt`, `too_many_cards` (not billed) |
| 429 | `rate_limited`, `concurrency_limited`, `quota_exceeded` |
| 499 | `client_closed_request` (the client left before the answer, not billed) |
| 500 | `internal_error` (not billed) |
| 503 | `vision_unavailable`, `vision_busy`, `quota_unavailable` (not billed) |
'
termsOfService: https://valotcg.com/developers/terms
contact:
name: ValoTCG
url: https://valotcg.com/developers
email: contact@valotcg.com
version: 1.1.0
servers:
- url: https://api.valotcg.com
description: Production
- url: https://api.preprod.valotcg.com
description: Preproduction
tags:
# --- truncated at 32 KB (68 KB total) ---
# Full source: https://artifacts.apis.io/valotcg/openapi/valotcg-scans-api-openapi.yml