# Card recognition API

Identify a trading card from a photo or a live camera feed. The response is a printing — which set, which collector number, which language — not a card name, with the full catalog record, every finish it exists in, and prices in both EUR and USD attached. The finish itself is not read from the photo.

Metered separately from the data API, in scans. One scan is one matched card. A frame we cannot place is answered and billed zero.

## Transports

### Live scanning (WebSocket)

Open one connection and send camera frames as fast as your device produces them. Matches come back on the same socket, tagged with the frame they belong to, so a card is identified while it is still under the lens and the operator never waits on a request. Frames that do not resolve are answered too — with the candidates and a reason — so your UI can say hold it flatter instead of freezing.

Best for: Intake desks, buylist kiosks, phone cameras, anything with a continuous view of cards moving past.

### Single photo (HTTPS)

A plain multipart upload, a public URL, or base64 in a JSON body. One request, one response, no polling and no job ids to chase. The response is the same shape the socket emits, so code written against one works against the other, and a batch importer and a live scanner can share a single parser.

Best for: Photo uploads, server-side backfills, listing tools, anything where the image already exists.

- Photo endpoint: `POST https://api.tcggraph.com/v1/scan`
- Live socket: `wss://api.tcggraph.com/v1/scan`
- Parameters: `image`, `games`, `minConfidence` (default 0.90, floored at 0.50, capped at 0.99), `includeCrop` (returns `crop`, the framing the matcher hashed, as a PNG data URL)
- Browser auth: `POST https://api.tcggraph.com/v1/scan/tickets` with the key, then connect to `/scan?ticket=…` or `POST /scan?ticket=…` one photo, within 60 seconds; a ticket is redeemed once
- One card per frame. `matches[].printingResolved` is false when reprints share the artwork; the other records are in `alternatives`, each with set, collectorNumber, language and printings. `matches[].finishResolved` is false when the record exists in more than one finish; the finish is not read from the photo

## Latency

- Live socket: p50 500 ms, p95 2.0 s, p99 2.9 s
- One photo over HTTPS: 1 to 1.5 s on a loaded instance, 7 to 10 s on a fresh one

The percentiles are the live socket's matched frames in production over 30 days to September 2026, from a frame arriving to its answer leaving, metering included. A single photo over HTTPS takes 1 to 1.5 seconds when it lands on an instance that has the index loaded, and 7 to 10 seconds when it lands on one that has not, because 174 MB of index and tiles, two models and the printing table load first; photos minutes apart often land on a fresh instance. The socket starts that load the moment it opens, before your camera has produced a frame, so a session pays it once. Your uplink is on top of every figure here.

## What is different here

### A miss costs nothing

You are billed for a card we will commit to, not for an image you sent. A blurred frame, a thumb over the set symbol, a card we genuinely cannot place — all free, and all answered with where the card was and what went wrong, so your operator can fix the shot rather than guess. Most providers charge on submission, which means you pay for your own bad lighting.

### The price is already in the response

A match returns the full catalog record with Cardmarket in EUR and TCGplayer in USD attached. Elsewhere identification and pricing are separate metered operations, so the card you scanned costs you twice before you know what it is worth. Here it is one charge and one round trip.

### It is a socket, not a queue

Cards are identified while they are still under the lens, on a connection that stays open across a whole intake session. No per-image handshake, no job id to poll, no spinner between cards. An operator working a stack never waits, which is the difference between four hundred cards an hour and eight hundred.

### Printings, and an honest flag when it cannot be one

Knowing a card is Charizard is worth very little — which Charizard decides whether it is worth three dollars or three hundred. So a match names the printing — set, collector number, language — and lists every finish it exists in, each with its price. Where the printing cannot be settled it says so instead of guessing: about one printing in six shares its artwork with another, and when the printed line does not separate them the card comes back identified, the printing marked unresolved, and every candidate attached with its set, number and finishes. The finish is never guessed from the photo. That is the field most scanners quietly guess at, and a wrong guess sits in your inventory at the wrong price until somebody notices.

### Scans have their own meter

A scan never spends your data credits and a catalog lookup never spends your scans. A heavy intake morning cannot starve the repricer that runs at midnight, and you can read the two numbers separately when you are working out what your product actually costs to run.

### Same object as the rest of the API

The card inside a match is byte-for-byte the object /v1/cards returns. Your existing parser, types and database columns already handle it, so adding a scanner is a new input to code you have written rather than a second integration to maintain.

## Scan pricing

| Plan | Monthly | Matched cards | Per scan | Overage |
| --- | --- | --- | --- | --- |
| Recognition Starter | $29 | 6,000 | $0.0048 | $0.008 per scan |
| Recognition Growth | $89 | 25,000 | $0.0036 | $0.005 per scan |
| Recognition Scale | $249 | 100,000 | $0.0025 | $0.0035 per scan |
| No plan | $0 | Pay as you go | $0.012 | n/a |

The plans differ in volume and price per scan, nothing else. Concurrency is not
sold: a socket idle for 45 seconds closes, and live
sessions are capped per account only as a flood guard.

There is no daily limit. Past the allowance, scans keep matching as overage, drawn from your prepaid balance at a higher rate per scan than the plan it extends. If you pay overage twice running, the next plan up is cheaper. You can set a hard stop instead if you would rather fail than spend.

No plan, no minimum, no monthly fee. Scans are drawn from the same prepaid balance your data plan sits on, at a flat rate, and stop when the balance runs out. Someone digitising one collection over a weekend should not have to sign up for a month, and at this rate the cheapest per-scan option elsewhere still costs about ten times more.

## What competitors charge

| Provider | Entry | Included | Per scan | Prices | Bills misses | Live stream |
| --- | --- | --- | --- | --- | --- | --- |
| TCGGraph | $29 / mo | 6,000 scans | $0.0048 | Both markets | No | WebSocket |
| TCGGraph, no plan | None | Pay as you go | $0.012 | Both markets | No | WebSocket |
| Ximilar | €59 / mo | 100,000 credits | ≈ €0.0059 | No, +10 credits | Yes | No |
| CardSight AI | $14.95 / mo | 5,000 calls | ≈ $0.0030 | Separate call | Yes | Enterprise only |
| NeoSatoshi | $29 / mo | 2,500 scans | ≈ $0.0116 | Cardmarket only | No | Announced |
| TCGAPIs | £99 / mo | 1,000 scans | ≈ £0.099 | Bundled | Not stated | No |
| CardGrader.AI | $49 pack | 400 credits | $0.1225 | Separate module | Yes | No |

Published list prices from each provider's own pricing page, checked in September 2026, converted to a per-scan figure by dividing the plan price by the scans it includes. Ximilar bills 10 credits to identify a trading card and 10 more to price it, so a scan that tells you what a card is worth is about €0.0118 there rather than €0.0059. CardSight AI meters every API call, and its price lookup is a second call. Three providers charge whether or not the card is identified. One of them streams video: CardSight AI, for enterprise contracts at custom pricing, over gRPC. NeoSatoshi has announced a WebSocket mode. The socket here is on every plan and on pay-as-you-go, and a reconnect is never billed.

## Where this stands in the market

Checked against each provider's published documentation in September 2026.

### A live socket on every plan

TCGGraph: wss://api.tcggraph.com/v1/scan is part of the product from pay-as-you-go up: open it when a user points a camera at a card, push frames, and matches come back on the same connection in the same JSON the photo endpoint returns. The playground on the dashboard runs on it.

Elsewhere: Every other card recognition API we could find identifies one uploaded image per request. The exception is CardSight AI, which streams video over gRPC for enterprise clients at custom pricing and does not include it in its Free or Pro tiers. NeoSatoshi has announced a WebSocket mode.

### One card, one scan — not one frame, one charge

TCGGraph: The session tracks the card in front of the lens. The same card is billed once per 20-second window however many frames show it, including while its exact printing is being settled and across a reconnect that resumes the session, so a card that sits still at ten frames a second is one scan rather than two hundred, and a frame that cannot be placed is answered and costs nothing.

Elsewhere: Per image or per API call. Ximilar, CardSight AI and CardGrader.AI meter the request whether or not a card was identified; a live feed sent to a per-image API is billed on every frame.

### The session remembers the printing

TCGGraph: Once one frame has read the collector number off the card, following frames of the same card report that printing even when the line is no longer legible, and while a tie stands the same leader is reported rather than a different one on every frame. A track rides out a hand passing over the lens or a frame that was refused, and lets go 2.5 seconds after the card was last seen so the next card on the table is never mistaken for the last one.

Elsewhere: A request is answered on its own, so carrying a printing between frames — and keeping a live overlay from flickering between two reprints — is left to your client. CardSight AI's streaming session returns detections as they occur; its documentation does not describe fusing them across frames.

### Two markets in the match

TCGGraph: A match carries the full catalog record with Cardmarket in EUR and TCGplayer in USD, from the same source and at the same freshness as the data API, on every plan and in one round trip.

Elsewhere: Ximilar prices from eBay listings for ten more credits. TCGAPIs returns product IDs and prices through separate endpoints, with Cardmarket on its higher plans. CardSight AI prices through a second call, from its own US sales data, with Magic market data announced rather than live. NeoSatoshi and CardStand return Cardmarket only.

### A refusal you can act on

TCGGraph: An unresolved frame names the reason — blurred, glare, cropped, occluded, ambiguous, not in the catalog — with the measurement behind it, how far the nearest printing was in bits, how many were still in contention, and where the card was in the frame. Your interface can say what to change.

Elsewhere: Usually a confidence score below a threshold, or an empty list. CardStand names a reason; the others documented above do not.

### Cards held in a hand

TCGGraph: The detector predicts the corners a thumb covers, the card is flattened from those, and where the covered patch hides too much of the artwork a tile search names the card from the parts that show. When even that cannot settle it, the answer is occluded — a refusal with the region — rather than a guess at a different card.

Elsewhere: Ximilar states its models are trained for partly obscured cards. Most others ask for a clear, well-lit photo of the card front with minimal background clutter, and what happens to a covered card is not documented.

As far as their published documentation shows, checked in September 2026, this is the only card recognition API that ships a live WebSocket on every plan including pay-as-you-go, bills per identified card rather than per frame or per request, carries the printing across the frames of a session, and returns Cardmarket and TCGplayer prices with the match. The claims above are the ones we can point at; anything broader would be an adjective.

## Use cases

### Bulk intake (Card shops, buylist desks, bulk buyers)

A camera over the counter and one operator feeding cards. Each card is priced and in inventory before the next one lands, so a shoebox becomes a stock list in an afternoon instead of a week. The socket is the whole point here: at four hundred cards an hour, a round trip per card is most of your day.

### Collection apps (Consumer apps, deck trackers, portfolio tools)

Point the phone at a card and it is in the collection, with the right printing and today's price on both sides of the Atlantic. Onboarding a new user is the hardest part of a collection app, and typing set codes is where they quit.

### Listing automation (Marketplace sellers, listing tools, repricers)

A photo becomes a draft listing: title, set, number, language, the finishes it exists in with a market price for each, and one tap to pick the finish. Because the match carries the catalog id, the listing links to a real product rather than a free-text guess that nobody can search for.

### Binder digitisation (Collectors, estate sales, insurers)

Point a phone at a binder and pull the pocket under it, card by card, and a shelf of binders becomes a spreadsheet in an afternoon. The socket is what makes that bearable: no handshake per card, so the pace is however fast somebody can turn a page.

### Trade and event tooling (Tournament organisers, judges, trade nights)

Check a physical deck against a submitted list, or confirm the cards in a trade are the printings that were agreed. Legality comes back on the card object, so a format check does not need a second lookup.

### Grading prep (Submission services, graders, consignment)

Identify the exact printing before a card goes in the queue, so the submission form is right the first time. On Growth and up a slab's label is read in the same photo — grader, grade, qualifiers, subgrades and cert number beside the exact printing — which is enough to sort a raw pile from an already-graded one and to price the slabs without typing anything.

## Per game

- Pokémon Trading Card Game: The same artwork ships as three different products, and only one of them is worth anything. https://tcggraph.com/recognition/pokemon
- Magic: The Gathering: Thirty years of reprints means one card name maps to eighty different products. https://tcggraph.com/recognition/magic-the-gathering
- One Piece Card Game: The alternate art is worth ten times the base card and shares its number. https://tcggraph.com/recognition/one-piece
- Yu-Gi-Oh! Trading Card Game: The card is not the product. The rarity is. https://tcggraph.com/recognition/yugioh
- Disney Lorcana: Enchanted variants hide behind ordinary card numbers. https://tcggraph.com/recognition/disney-lorcana
- Star Wars: Unlimited: Hyperspace and showcase variants, plus leaders that are printed on both sides. https://tcggraph.com/recognition/star-wars-unlimited
- Digimon Card Game: Alternate art parallels with the same card number, in English, Japanese and Chinese. https://tcggraph.com/recognition/digimon
- Grand Archive: A small catalog, and almost all of its value in foil and alternate treatments. https://tcggraph.com/recognition/grand-archive
- Dragon Ball Super Card Game: Two lines that look alike, double-faced Leaders, and parallels sharing a number. https://tcggraph.com/recognition/dragon-ball-super

## FAQ

**How fast is a scan?**

It depends on the transport. On the live socket, from a frame arriving to its answer leaving, the median over the last 30 days is about 500 ms, the 95th percentile 2.0 seconds and the 99th 2.9 seconds, metering included. A single photo over HTTPS takes 1 to 1.5 seconds on an instance that already has the index loaded and 7 to 10 seconds on one that does not: 174 MB of index and tiles, the detector, the reader and the printing table load before the first answer, and photos sent minutes apart often land on a fresh instance. The socket starts that load the moment it opens, before your camera has produced a frame, and pays connection and TLS setup once for the session instead of once per card. So for more than an occasional photo, open a socket. Your network is on top of all of these; the playground keeps one frame in flight and sends the next as each answer lands.

**Is there a real-time card recognition API over WebSocket?**

Yes, and as far as published documentation shows it is the only one available on every plan. Connect to wss://api.tcggraph.com/v1/scan with a single-use ticket, send JPEG frames as binary messages, and each frame is answered on the same connection with the same match object the photo endpoint returns — or with an unresolved message naming the reason. The session tracks the card across frames, so the printing read on one frame is carried to the next and the same card is billed once per 20 seconds however many frames show it. Of the other card recognition APIs, CardSight AI streams video over gRPC for enterprise contracts only, NeoSatoshi has announced a WebSocket mode, and the rest identify one uploaded image per request.

**Does it work when the card is held in a hand?**

That is how most people hold a card up to a phone, so yes, it is designed for it. The detector predicts where the covered corners are and the card is flattened from those; when a thumb hides part of the artwork, a tile search names the card from the parts that show, and when too much is covered the frame comes back occluded, with the region, rather than as a guess. On our held-card check about three in four synthetic hand-held frames are named and none has been named as a different card; the failures are cards held close, covering a lot of the face, over a cluttered background, which the answer tells you to fix by pulling the card back or clearing the background. Over the socket the track carries the card through a frame the hand spoiled, so the overlay does not drop out while you adjust your grip.

**Why is recognition priced separately from the data API?**

Because it is a different kind of work with a different cost, and because sharing one meter would make the two products interfere. If scans came out of your data credits, a heavy intake morning would quietly starve the repricer that runs overnight, and you would not be able to tell from your bill which product was expensive. Scans have their own allowance, their own overage and their own plans, and the two counters are reported separately.

**Do I need a data plan to use recognition?**

No. A recognition plan stands on its own, and the full card object comes back on the match, so a scanning product can run without ever calling the catalog directly. Most people end up wanting both — recognition to get cards in, the data API to keep prices fresh afterwards — but neither requires the other.

**What happens when a card cannot be identified?**

You get an answer and you are not billed. The response comes back unresolved with where the card was, a reason measured off the frame — soft focus, a blown-out highlight, a covered region, a card we do not carry — how many printings were still in contention and how far the closest one was, so your interface can ask for a better shot rather than showing a spinner. We would rather not charge for our own uncertainty, and we would much rather not return a confident wrong answer, because a mis-identified card in someone's inventory costs them more than a retry.

**How is a scan counted?**

One matched card is one scan, and a frame is one card. A frame we cannot place is zero, and so is a rejected or malformed one. Every match carries a billed flag and the response carries the running count, so you can reconcile against your own numbers without trusting ours. The same printing held under a lens is billed once every 20 seconds rather than once per frame, so a card sitting still at ten frames a second is one scan and not two hundred.

**We are putting scanning in our app. Do we need a socket per user?**

You need one while a user is actually scanning, and none the rest of the time — and no, that is not what you are buying. Concurrency is not licensed here and plans do not sell you cameras: they differ in volume and price per scan, nothing else. A socket that sends no frames for 45 seconds is closed, so holding connections open requires scanning on them, and scanning is what is billed. The per-account ceiling that remains is a flood guard set well above any real workload. Open a socket when a user points a camera at a card, let it close when they stop, and the meter takes care of the rest.

**Can I scan without committing to a monthly plan?**

Yes. Scans can be drawn straight from your prepaid balance at $0.012 per matched card, with no monthly fee and no minimum. Somebody digitising one collection over a weekend should not have to buy a month. Once you are scanning enough that a plan is cheaper, the plan is cheaper — Recognition Starter overtakes pay-as-you-go at about 2,400 scans a month.

**Are the prices in the response the same ones the data API returns?**

The same objects, from the same source, at the same freshness — Cardmarket in EUR and TCGplayer in USD on the printing that was matched. Identification and pricing are one operation here and one charge. Elsewhere they are usually two metered calls, which means finding out what a scanned card is worth costs roughly double what the sticker price suggests.

**Can it read graded slabs?**

On Recognition Growth and above, yes. The card is matched through the case to its exact printing, and the label is read from the same photo: grading company (PSA, Beckett, CGC, SGC, TAG or ACE), grade, PSA qualifiers, subgrades where the label prints them, and the certification number, with the graded price for that grade alongside. Anything the label did not read cleanly comes back null rather than guessed. A slab costs one scan, the same as a raw card, and the whole slab should be in frame with the card at least 320 pixels wide.

**Does it work on cards I have not carried before, or on my own products?**

Recognition covers the same nine games and the same printings as the catalog, so if a card is in the API it is matchable. Matching your own inventory, sealed product or non-TCG collectibles alongside ours is not part of a published plan; it is arranged as a custom contract, so talk to us if you need it.

**What image quality do you need?**

A phone camera in ordinary indoor light is enough. The card should be fully in frame with the corners visible, roughly flat, and not lit so hard that a foil blows out — glare across a set symbol is the most common reason a frame comes back unresolved. Any angle is fine: the outline is found, the perspective removed and the card read whichever way up it lies. There is no minimum resolution to identify the card. To have the printing settled from the collector number line as well, the card should be about 400 pixels wide or more in the frame — a 1080p frame with the card filling a third of it. Beyond that, 4K stills cost you bandwidth and buy nothing.

**What about sleeved cards, or cards in a binder?**

Sleeves are fine unless the seam sits across a set symbol or a promo stamp, which is worth knowing when you design your capture step. Cards in a binder scan perfectly well through the pocket, one pocket at a time — a frame is one card today, so a nine-pocket page is nine frames rather than one. That costs the same, since scans are counted per matched card, and it is faster than it sounds over the socket. Locating several cards in one image is on the way.

**How do I pay for it?**

The same way as everything else here: a prepaid balance topped up by card or crypto (with 20% off every crypto top-up), with the plan fee drawn from it on renewal. Recognition appears as its own line so you can see what scanning costs you separately from data. Nothing recurring is created unless you switch on automatic top-ups.

---

Canonical page: https://tcggraph.com/recognition
Full machine-readable reference: https://tcggraph.com/llms-full.txt
