Skip to content
TTCGAPIs
Photo to product ID

Trading Card Recognition API

Send a card photo and its game. Get ranked product-ID matches, check the identity, then connect the result to catalog details or pricing in your app.

Interactive Demo

Try Card Recognition Now

Upload a trading card image and see our recognition in action. 10 demo tries per day.

Drop your card image here or click to browse

Supports JPEG, PNG, GIF, WebP (max 10MB)

Need more than 10 tries? Sign up for 100 free credits to test recognition, price lookups and other customer data endpoints.

Start free: 100 credits

Building a mobile app? Keep your API key on your server and send app requests through it. A successful scan uses 1 credit; a separate price lookup uses 2. Failed requests cost nothing. View your remaining allowance in the dashboard.

How Card Recognition Works

A practical photo-to-product workflow

1

Upload Image

Send a single card photo and its game via multipart form upload

2

Image Analysis

Get candidate matches from the relevant game model; keep uncertain results available for review

3

Get Results

Check candidate product IDs against card numbers, sets and printings before accepting a match

API Request
// Send a card image for recognition
const formData = new FormData();
formData.append('image', imageFile);  // Your card image file
formData.append('game', 'Pokemon');   // Required from 1 Dec 2026: the card's game (GET /api/v1/recognize/games)
formData.append('limit', '10');       // Optional: number of results (default 10)

const response = await fetch('https://api.tcgapis.com/api/v1/recognize', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  },
  body: formData
});

const data = await response.json();

// A score ranks candidates; it is not a probability of correctness.
const candidates = data.results ?? [];
for (const candidate of candidates) {
  console.log(candidate.productId, candidate.score, candidate.product?.name);
}
// Ask for confirmation when the candidate identity is ambiguous.

Evaluate recognition before automating decisions

Recognition returns candidates, not a guarantee that a card, edition or printing has been identified correctly. Scores order those candidates; a score such as 98.5 does not mean 98.5% accuracy. The confident flag is a model decision aid, not a replacement for your validation rules.

Test with the photos your app will receive

  • Use labeled photos with known product IDs, including glare, sleeves, cropping and similar card artwork.
  • Keep evaluation photos separate from development examples. Check the exact set, card number, language and printing that your workflow needs.
  • Measure correct first matches, correct matches within the candidate list, uncertain results, failed requests and response times.
  • Offer a manual selection or retake step whenever the candidates do not establish the identity confidently.

Connect the confirmed ID to data

Use the selected productId with GET /api/v2/products/:productId for catalog details. Prices are a separate request to GET /api/v2/prices/:productId; credits (free or bought) cover all of these requests: 1 credit for a scan or a catalog lookup, 2 for a price lookup. On a monthly plan a scan uses the scan allowance of the plan, a catalog lookup and a price lookup each take 1 call.

We have not published a measured accuracy or latency benchmark. The examples on this page explain the integration; they are not performance results.

Major Trading Card Games Supported

The recognition endpoint listed 55 games when checked on 7 November 2026. Check its current response before relying on coverage for a particular game.

PokemonMagic: The GatheringYu-Gi-Oh!Flesh and BloodOne Piece TCGDisney LorcanaDigimonDragon Ball SuperStar Wars UnlimitedUnion ArenaWeiss SchwarzCardfight Vanguard55 recognition games in total

Included With Every Paid Plan

Card recognition comes bundled with your paid API subscription. Hobby includes 1,000 calls per month, Business includes 15,000, and Unlimited has no recognition cap.

New accounts receive 100 free credits for all customer data API endpoints, including recognition at 1 credit per scan. After your free credits are used, buy a credit pack (from £10, no subscription) or choose a monthly plan. The public demo has its separate daily limit.

View Pricing

What Can You Build?

Connect photographed cards to your application workflow

Mobile Card Scanning Apps

Build mobile apps that turn card photos into candidate product IDs, then fetch catalog details or prices through separate API calls.

Inventory Management

Speed up card intake and cataloging by scanning cards instead of manually searching your database.

Point of Sale Integration

Help staff look up cards at checkout counters, with confirmation of the returned set, card number and printing.

Collection Apps

Let collectors quickly add cards to their digital collection by snapping a photo instead of searching.

Frequently Asked Questions

Everything you need to know about the Card Recognition API

What is the Card Recognition API?

Send an image and its game to receive ranked candidate product IDs with match scores. The default response contains up to 10 candidates. Catalog details and pricing use separate endpoints, so you can build a photo-to-product workflow suited to your app.

Which trading card games are supported?

Our Card Recognition API covers the major trading card games in our catalog, including Pokemon, Magic: The Gathering, Yu-Gi-Oh!, Flesh and Blood, One Piece TCG, Disney Lorcana, and many more.

How accurate is the card recognition?

Recognition returns candidate matches, not a guarantee of identity. Scores rank the returned candidates; they are not calibrated probabilities or an accuracy percentage. Check the image, card number, set and printing, and ask for confirmation when matches are ambiguous. We have not published a measured accuracy or latency benchmark.

Is there a public demo?

Yes. The demo above allows 10 successful public card recognitions per IP per day, no login required. Create a free account for 100 free credits to try recognition, pricing and the other customer data endpoints; a scan costs 1 credit. After your free credits are used, buy a credit pack (from £10, no subscription) or choose a monthly plan.

How many recognition requests are included?

Card recognition is included with all paid plans: Hobby includes 1,000 calls per month, Business includes 15,000 calls per month, and Unlimited includes unlimited card recognition. Paid-plan recognition allowances are separate from general API-call allowances; a subsequent catalog or price request uses the general allowance. Accounts without a monthly plan pay with credits instead: 1 credit per scan, from the 100 free credits or a credit pack (from £10, no subscription).

Do I need to send the game with each card?

Yes. The game field is required from 1 December 2026: send the game the card belongs to (for example Pokemon, Magic: The Gathering, or the categoryId from /api/v1/games). GET /api/v1/recognize/games lists every accepted value. The game selects the relevant recognition model. Until 1 December a call without it still searches every game but returns a warning; from that date it returns an error.

What image formats are supported?

The API accepts image uploads via multipart/form-data in JPEG, PNG, GIF and WebP formats, up to 10MB. Send the card game with the image. Clear, well-lit photos of a single card front with minimal background clutter are the best starting point for evaluation.

Start Building Today

Try recognition with your own card photos, then choose the API allowance and data access your application needs.

Try card recognition

New accounts receive 100 free credits for all customer data API endpoints, including recognition at 1 credit per scan. After your free credits are used, buy a credit pack (from £10, no subscription) or choose a monthly plan. The public demo has its separate daily limit.

View Pricing