Skip to content
TTCGAPIs
V2 API

TCG API V2 Overview

Try with 100 free credits across all customer data endpoints. No payment card required. Credits pay for requests: 1 credit for a catalog lookup, 2 for a price or certificate lookup, 5 for live listings or prices by condition (SKU prices). After your free credits are used, buy a credit pack (from £10, no subscription) or choose a monthly plan. Every monthly plan can call every endpoint: a request takes 1 call from the monthly allowance, except live listings and SKU prices, which take 5 calls on Hobby and Business.

Streamlined endpoints with a chainable workflow. Go from games to expansions to cards to prices in just a few API calls. This page summarises each endpoint and the credits or calls it takes; the documentation has the full reference.

Chainable Workflow

How the V2 API Works

Follow the chain: each endpoint returns the IDs needed for the next step.

1

List Games

/api/v2/games

Get all supported games and their categoryId values.

2

Get Expansions

/api/v2/expansions/:categoryId

Use the categoryId to fetch all expansions and their groupId values.

3

Get Cards

/api/v2/cards/:groupId

Use the groupId to fetch all cards and their productId values.

4

Get Data

/api/v2/prices/:productId

Use the productId to fetch prices, listings, sales history, or historic prices.

7 Endpoints

V2 API Endpoints

The public games endpoint needs no key. Protected endpoints return JSON and use the x-api-key header.

GET/api/v2/games
Public

Get all supported trading card games with their category IDs. Supports pagination via ?limit=25&offset=0.

GET/api/v2/expansions/:categoryId
Calls: 1 on every plan

Get expansions (sets) for a specific game by its category ID. Supports pagination via ?limit=25&offset=0.

GET/api/v2/cards/:groupId
Calls: 1 on every plan

Get cards in an expansion by its group ID. Includes card images. Supports pagination via ?limit=25&offset=0.

GET/api/v2/prices/:productId
Calls: 1 on every plan

Get pricing data for a specific card by its product ID.

GET/api/v2/livelistings/:productId
Calls: Hobby 5 · Business 5 · Unlimited 1

Get an available TCGPlayer listing snapshot; it may be cached for up to one hour or use stored fallback data.

GET/api/v2/sales-history/:productId
Calls: 1 on every plan

Recent transaction sample cached for up to four hours from TCGPlayer marketplace. ~100 most recent sales with statistics over the fetched sample. Paginated via ?limit=25&offset=0.

GET/api/v2/sales-history/:productId/full
Calls: 1 on every plan

Available stored sales archive in three-day buckets; depth and gaps vary by product. Server-side filterable by condition, variant, language, date range. Best for trend charts.

GET/api/v2/historic-prices/:productId
Calls: 1 on every plan

Get historical price data for a card over time. Time series is paginated via ?limit=25&offset=0.

Developer Ready

Executable Requests

Run these requests to inspect the actual response envelopes; totals and record availability are returned by the API.

GET /api/v2/games
// This discovery endpoint is public; no API key required.
const response = await fetch('https://api.tcgapis.com/api/v2/games?limit=100');
const body = await response.json();
if (!response.ok || !body.success) throw new Error(body.error || 'Request failed');
console.log(body.data); // Objects with categoryId, name and displayName
console.log(body.count, body.total, body.offset, body.limit);
// Read IDs from the response: do not guess a category or hard-code its total.
GET /api/v2/cards/:groupId
// Run on your server. Keep the key out of client-side code.
const headers = { 'x-api-key': process.env.TCGAPIS_KEY };
async function get(path) {
  const response = await fetch('https://api.tcgapis.com/api/v2' + path, { headers });
  const body = await response.json();
  if (!response.ok || !body.success) throw new Error(body.error || 'Request failed');
  return body;
}

// Credits (1 per request), or 1 call on any monthly plan. Pokemon is category 3.
const expansions = await get('/expansions/3?limit=25&offset=0');
console.log(expansions.data); // Objects carrying groupId, not strings
const groupId = expansions.data[0]?.groupId;
if (!groupId) throw new Error('No expansion found');
const cards = await get('/cards/' + groupId + '?limit=25&offset=0');
console.log(cards.data); // Product records; paginate using count/total/offset/limit
// Inspect the set and printing before selecting a product for your application.
Use Cases

What Can You Build?

The V2 API provides separate catalog and market-data endpoints for your application.

Collection Trackers

Build apps that let users browse games, find their cards, and track portfolio value over time.

Price Comparison Tools

Compare prices across variants and conditions using the chained data flow.

Market Analytics

Analyze sales history and historic prices to identify market trends and opportunities.

Store Inventory

Power your card shop with structured game data, current market prices, and live marketplace listings.

Frequently Asked Questions

Common questions about the V2 API.

What is the V2 API?

The V2 API is the current TCGAPIs API version, built around a chainable workflow: games, then expansions, then cards, then prices. Alongside that chain it has sales history, full sales history, historic prices and live listings endpoints. This page is an overview; the full endpoint reference, parameters and response schemas are in the documentation. Listing snapshots may be cached for up to one hour and recent sales for up to four hours. Historic-price maps can have gaps and are keyed by the printing names present in the source.

How many calls does each V2 API endpoint take?

The /games endpoint is public and unauthenticated. Everything else works with credits (free or bought): 1 credit for expansions and cards, 2 for prices, sales history and historic prices, 5 for live listings. After your free credits are used, buy a credit pack (from £10, no subscription) or choose a monthly plan. Every monthly plan can call every endpoint: expansions, cards, prices, sales history and historic prices take 1 call, and live listings take 1 call on Unlimited and 5 on Hobby and Business.

How does the V2 API differ from V1?

V2 provides a more intuitive chained workflow, cleaner response formats, and additional endpoints like historic prices and sales history with statistics over the fetched sample. V2 also includes image URLs for cards.

How do I chain V2 API calls?

Start with /games to get categoryId values, then use /expansions/:categoryId to get groupId values, then /cards/:groupId to get productId values, and finally /prices/:productId for pricing data.

Which trading card games are supported?

We support 60+ TCGs including Pokemon, Magic: The Gathering, Yu-Gi-Oh!, Flesh and Blood, One Piece, Disney Lorcana, Star Wars Unlimited, and many more.

Related API Features

Explore other API endpoints to complement your V2 integration.

Ready to Use the V2 API?

Browse the public games endpoint instantly, then pick any monthly plan to call the card, pricing and market data endpoints.