# Yu-Gi-Oh! card scanner API

The card is not the product. The rarity is.

- Game slug: `yugioh`
- Matchable printings: 38,699
- Languages: English
- Median match on the live socket: 500 ms server-side
- Unresolved frames: never billed

## Why Yu-Gi-Oh! is hard to identify

Yu-Gi-Oh! inverts the usual problem. The same card, with the same name, the same artwork and the same eight-digit passcode, exists as Common, Rare, Super Rare, Ultra Rare, Secret Rare, Ultimate Rare, Ghost Rare, Starlight Rare and more, across hundreds of sets over twenty-five years. The passcode identifies the card. It says nothing about the product, and the product is what has a price.

The discriminating field is the set code in the bottom-right — LOB-005, or SDK-EN005 — which fixes both the set and the position within it, and from that the rarity follows: the catalog holds one record per code, with its rarity. The foiling treatment is not judged from the photo, so a code printed in several rarities (the Rarity Collection sets) returns the one record the catalog holds for it. First Edition versus Unlimited is a line of text under the artwork, and on early sets it is worth more than the card; both come back as finishes of the record, each priced, for you to choose.

Duel Terminal parallels, Retro Pack reprints and the various tin promos all reuse art and passcodes freely, so this is a game where reading the small print in the corner is not an optimisation. It is the entire identification.

## Fields a match is decided on

- **Set code** — The bottom-right code fixes set and position, and from there the rarity.
- **Rarity treatment** — Nine or more rarities of one card, from cents to thousands of dollars.
- **Edition text** — 1st Edition versus Unlimited, printed under the artwork.
- **Passcode** — Identifies the card for rules purposes, and only the card.
- **Region** — The region letters in the set code separate the English print run, which is what the catalog holds today, from the European, Japanese and Asian-English runs that are the next language work.

## Where naive scanners fail

### Passcode is not a product id

Every printing of a card shares its passcode. Using it as the key returns a card that is right in every respect except the one that determines the price.

### Rarity lives in the foiling

Secret, Ultimate and Ghost Rare differ in how the name and artwork are treated rather than in layout. Under flat light two of them can look the same, which is why the set code decides and the treatment is not judged at all.

### Asian-English printings

Visually near-identical to the English release and priced entirely differently. The region letters in the set code are the only reliable tell. The catalog holds the English print run today, so an Asian-English card resolves to its English counterpart rather than to a separate row; the OCG and European runs are the next language work for this game.

## Request

```bash
curl -X POST "https://api.tcggraph.com/v1/scan" \
  -H "Authorization: Bearer $TCGGRAPH_KEY" \
  -F image=@front.jpg \
  -F games=yugioh \
  -F minConfidence=0.92
```

The card inside a match is the same object `https://api.tcggraph.com/v1/cards?game=yugioh` returns, including the Yu-Gi-Oh!-specific `gameData` fields.

## Pricing

$29/month for 6,000 matched cards, down to $0.0025 per scan at volume, or $0.012 per matched card with no plan. Scans are pooled across every game; there is no per-game surcharge.

## FAQ

**Can it tell a Secret Rare from an Ultra Rare?**

When the set code settles it, which is most sets: a code like LOB-EN001 names one record, and the record carries its rarity, so the match is a specific rarity in a specific set rather than a card name. The foiling itself is not judged from the photo. Where one code was printed in several rarities — the Rarity Collection sets — the catalog holds one record for the code, so the rarity on the match is that record's and the scan cannot tell you which of the others you hold.

**Does it read 1st Edition?**

No. 1st Edition is a finish of the printing: it comes back in card.printings beside the unlimited print, each with its own price, and finishResolved is false while both exist. The stamp is not read from the photo, so the operator chooses. On Legend of Blue Eyes and the other early sets that choice is the difference between a common card and a four-figure one, which is why it is put in front of the operator rather than guessed.

**What about the eight-digit passcode?**

It is not returned. A match names the printing — set code and rarity, with the finishes it exists in — because that is what has a price, and every printing of a card shares one passcode, so a passcode lookup could not tell a bulk Common from a Ghost Rare. For deck-building work, the card's name identifies it.

---

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