V2 API

V2 API Documentation

Streamlined endpoints with a chainable workflow. Go from games to expansions to cards to prices in just a few API calls.

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

All endpoints return JSON. Authentication via x-api-key header.

GET/api/v2/games
Free

Get all supported trading card games with their category IDs.

GET/api/v2/expansions/:categoryId
Hobby+

Get all expansions (sets) for a specific game by its category ID.

GET/api/v2/cards/:groupId
Hobby+

Get all cards in an expansion by its group ID. Includes card images.

GET/api/v2/prices/:productId
Business+

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

GET/api/v2/livelistings/:productId
Unlimited

Get real-time marketplace listings for a specific card.

GET/api/v2/sales-history/:productId
Business+

Get recent sales history with statistics and price trend analysis.

GET/api/v2/historic-prices/:productId
Business+

Get historical price data for a card over time.

Developer Ready

Example Responses

Clean, consistent JSON responses across all endpoints.

GET /api/v2/games
{
  "success": true,
  "count": 42,
  "data": [
    {
      "categoryId": 3,
      "name": "Magic",
      "displayName": "Magic: The Gathering",
      "image": ""
    },
    {
      "categoryId": 2,
      "name": "YuGiOh",
      "displayName": "Yu-Gi-Oh!",
      "image": ""
    }
  ]
}
GET /api/v2/cards/:groupId
{
  "success": true,
  "count": 150,
  "data": [
    {
      "productId": 12345,
      "name": "Charizard ex",
      "image": "https://...",
      "rarity": "Double Rare",
      "number": "006",
      "cleanName": "Charizard ex"
    }
  ]
}
Use Cases

What Can You Build?

The V2 API provides everything you need for powerful TCG applications.

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, real-time prices, and live marketplace listings.

Frequently Asked Questions

Common questions about the V2 API.

What is the V2 API?

The V2 API is TCGAPIs' latest API version providing a streamlined, chainable workflow: games → expansions → cards → prices. It offers 7 endpoints covering game data, card catalogs, pricing, live listings, sales history, and historic prices.

What plan do I need for the V2 API?

The /games endpoint is free and public. Expansions and cards require a Hobby plan or higher. Prices, sales history, and historic prices require a Business plan. Live listings require an Unlimited plan.

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 built-in statistics. 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 40+ 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?

Get started with our free tier and browse game data. Upgrade for full access to cards, pricing, and market data.