---
title: "TCGplayer API: trading card search, card details as JSON"
description: "TCGplayer API for trading card search, card details with market prices, and sales history by condition and variant as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/tcgplayer
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / TCGplayer

1 credit per call 3 endpoints 10 datapoints 

# TCGplayer API

TCGplayer API for trading card search, card details with market prices, and sales history by condition and variant as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

TCGplayer

GET /v1/tcgplayer/search?query=charizard&product\_line=pokemon&page=1&size=20 

```
{
  "success": true,
  "data": {
    "query": "charizard",
    "product_line": "pokemon",
    "items": [
      {
        "id": "671249",
        "name": "Mega Charizard Tin (Mega Charizard Y)",
        "url_name": "Mega Charizard Tin Mega Charizard Y",
        "set": "Miscellaneous Cards & Products",
        "set_code": "MCAP",
        "product_line": "Pokemon",
        "image_url": "https://tcgplayer-cdn.tcgplayer.com/product/671249_in_1000x1000.jpg",
        "url": "https://www.tcgplayer.com/product/671249",
        "prices": {
          "market": {
            "amount": 42.88,
            "currency": "USD"
          },
          "low": {
            "amount": 35,
            "currency": "USD"
          },
          "low_with_shipping": {
            "amount": 44.95,
            "currency": "USD"
          },
          "median": {
            "amount": 47.355,
            "currency": "USD"
          }
        },
        "total_listings": 71
      },
      {
        "id": "219058",
        "name": "Charizard - 3/70 (#39 Charizard Stamped)",
        "url_name": "Charizard 3 70 39 Charizard Stamped",
        "set": "Battle Academy",
        "set_code": "BTA",
        "number": "003/070",
        "rarity": "Promo",
        "product_line": "Pokemon",
        "image_url": "https://tcgplayer-cdn.tcgplayer.com/product/219058_in_1000x1000.jpg",
        "url": "https://www.tcgplayer.com/product/219058",
        "prices": {
          "market": {
            "amount": 7.3,
            "currency": "USD"
          },
          "low": {
            "amount": 4,
            "currency": "USD"
          },
          "low_with_shipping": {
            "amount": 4.79,
            "currency": "USD"
          },
          "median": {
            "amount": 9.24,
            "currency": "USD"
          }
        },
        "total_listings": 75
      },
      {
        "id": "219059",
        "name": "Charizard GX - 9/68 (#60 Charizard Stamped)",
        "url_name": "Charizard GX 9 68 60 Charizard Stamped",
        "set": "Battle Academy",
        "set_code": "BTA",
        "number": "009/068",
        "rarity": "Promo",
        "product_line": "Pokemon",
        "image_url": "https://tcgplayer-cdn.tcgplayer.com/product/219059_in_1000x1000.jpg",
        "url": "https://www.tcgplayer.com/product/219059",
        "prices": {
          "market": {
            "amount": 14.92,
            "currency": "USD"
          },
          "low": {
            "amount": 5,
            "currency": "USD"
          },
          "low_with_shipping": {
            "amount": 5.99,
            "currency": "USD"
          }
        },
        "total_listings": 191
      }
    ],
    "pagination": {
      "page": 1,
      "page_size": 20,
      "page_count": 14,
      "total": 278,
      "has_more": true
    },
    "facets": {
      "cardType": [
        {
          "urlValue": "Pokemon",
          "isActive": false,
          "value": "Pokemon",
          "count": 207
        },
        {
          "urlValue": "Energy",
          "isActive": false,
          "value": "Energy",
          "count": 18
        },
        {
          "urlValue": "Supporter",
          "isActive": false,
          "value": "Supporter",
          "count": 11
        }
      ],
      "energyType": [
        {
          "urlValue": "Fire",
          "isActive": false,
          "value": "Fire",
          "count": 160
        },
        {
          "urlValue": "Darkness",
          "isActive": false,
          "value": "Darkness",
          "count": 14
        },
        {
          "urlValue": "Colorless",
          "isActive": false,
          "value": "Colorless",
          "count": 6
        }
      ],
      "rarityName": [
        {
          "urlValue": "Promo",
          "isActive": false,
          "value": "Promo",
          "count": 114
        },
        {
          "urlValue": "Ultra Rare",
          "isActive": false,
          "value": "Ultra Rare",
          "count": 38
        },
        {
          "urlValue": "Code Card",
          "isActive": false,
          "value": "Code Card",
          "count": 23
        }
      ],
      "setName": [
        {
          "urlValue": "battle-academy",
          "isActive": false,
          "value": "Battle Academy",
          "count": 60
        },
        {
          "urlValue": "miscellaneous-cards-and-products",
          "isActive": false,
          "value": "Miscellaneous Cards & Products",
          "count": 30
        },
        {
          "urlValue": "jumbo-cards",
          "isActive": false,
          "value": "Jumbo Cards",
          "count": 19
        }
      ],
      "productTypeName": [
        {
          "urlValue": "Cards",
          "isActive": false,
          "value": "Cards",
          "count": 246
        },
        {
          "urlValue": "Sealed Products",
          "isActive": false,
          "value": "Sealed Products",
          "count": 32
        }
      ],
      "productLineName": [
        {
          "urlValue": "pokemon-japan",
          "isActive": false,
          "value": "Pokemon Japan",
          "count": 348
        },
        {
          "urlValue": "pokemon",
          "isActive": true,
          "value": "Pokemon",
          "count": 278
        },
        {
          "urlValue": "card-sleeves",
          "isActive": false,
          "value": "Card Sleeves",
          "count": 22
        }
      ],
      "sellerAddress.country": [
        {
          "urlValue": "US",
          "isActive": false,
          "value": "US",
          "count": 9372
        },
        {
          "urlValue": "CA",
          "isActive": false,
          "value": "CA",
          "count": 228
        },
        {
          "urlValue": "GB",
          "isActive": false,
          "value": "GB",
          "count": 1
        }
      ],
      "condition": [
        {
          "urlValue": "Near Mint",
          "isActive": false,
          "value": "Near Mint",
          "count": 10459
        },
        {
          "urlValue": "Lightly Played",
          "isActive": false,
          "value": "Lightly Played",
          "count": 2166
        },
        {
          "urlValue": "Moderately Played",
          "isActive": false,
          "value": "Moderately Played",
          "count": 652
        }
      ],
      "language": [
        {
          "urlValue": "English",
          "isActive": false,
          "value": "English",
          "count": 14164
        }
      ],
      "printing": [
        {
          "urlValue": "Holofoil",
          "isActive": false,
          "value": "Holofoil",
          "count": 9010
        },
        {
          "urlValue": "Normal",
          "isActive": false,
          "value": "Normal",
          "count": 3394
        },
        {
          "urlValue": "Reverse Holofoil",
          "isActive": false,
          "value": "Reverse Holofoil",
          "count": 1760
        }
      ]
    }
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_961f8d8e08de40abbd3561f879afe3da",
    "credits_charged": 1,
    "credits_remaining": 996
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id string | name string | url\_name string | set string | set\_code string | product\_line string | image\_url url | url url | prices object | total\_listings integer |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 671249 | Mega Charizard Tin (Mega Charizard Y) | Mega Charizard Tin Mega Charizard Y | Miscellaneous Cards & Products | MCAP | Pokemon | https://tcgplayer-cdn.tcgplayer.com/product/671249\_in\_1000x1000.jpg | https://www.tcgplayer.com/product/671249 | {4 fields} | 71 |
| 2 | 219058 | Charizard - 3/70 (#39 Charizard Stamped) | Charizard 3 70 39 Charizard Stamped | Battle Academy | BTA | Pokemon | https://tcgplayer-cdn.tcgplayer.com/product/219058\_in\_1000x1000.jpg | https://www.tcgplayer.com/product/219058 | {4 fields} | 75 |
| 3 | 219059 | Charizard GX - 9/68 (#60 Charizard Stamped) | Charizard GX 9 68 60 Charizard Stamped | Battle Academy | BTA | Pokemon | https://tcgplayer-cdn.tcgplayer.com/product/219059\_in\_1000x1000.jpg | https://www.tcgplayer.com/product/219059 | {3 fields} | 191 |

Recorded from our API · 3 items shown · 10 datapoints per item GET /v1/tcgplayer/search?query=charizard&product\_line=pokemon&page=1&size=20

10 datapoints

### Identity

-   id string
-   name string

### Contact

-   url\_name string
-   image\_url url
-   url url

### Price

-   prices object

### Other

-   set string
-   set\_code string
-   product\_line string
-   total\_listings integer

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/tcgplayer/search?query=charizard&product_line=pokemon&page=1&size=20" \
  -H "X-API-Key: $API_KEY"
```

TCGplayer · 3 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/tcgplayer/price-history`](https://perceptlayer.com/apis/tcgplayer/price-history) | `id` `range` | `id` `range` `series` | 1 credit |
| [GET `/v1/tcgplayer/product`](https://perceptlayer.com/apis/tcgplayer/product) | none +2 optional | `product` | 1 credit |
| [GET `/v1/tcgplayer/search`](https://perceptlayer.com/apis/tcgplayer/search) | `product_line` `page` `size` +2 optional | `product_line` `items` `pagination` | 1 credit |

Overview

## About the TCGplayer API

## What you can get

The TCGplayer API returns TCGplayer trading card listings, prices and sales as JSON through 3 endpoints.

-   **Search:** `search` takes a `product_line` ( `pokemon`, `magic`, `yugioh`, `lorcana-tcg`, `one-piece-card-game`, `digimon-card-game`, `flesh-and-blood-tcg` or `star-wars-unlimited`) with a `query` or a `set`, plus `page` and `size`.
-   **Product:** `product` takes an `id` or a `url`.
-   **Price history:** `price-history` takes an `id` and a `range` ( `month`, `quarter`, `semi-annual` or `annual`).

The recorded `search` for "charizard" in `pokemon` returns `items`, `pagination` and `facets`. Each item has `id`, `name`, `set`, `set_code`, `number`, `rarity`, `product_line`, `image_url`, `prices` and `total_listings`. `pagination` reports a `total` of 278 matches over 14 pages of 20. `facets` count the matches by fields such as `cardType`, `rarityName`, `setName`, `condition`, `language` and `printing`.

## How a call works

Search, then read the card: `GET /v1/tcgplayer/search?query=charizard&product_line=pokemon&page=1&size=20`, with your key in the `X-API-Key` header, returns each item's `id`. Pass that to `product` or `price-history`, for example `GET /v1/tcgplayer/product?id=42382`, which returned Charizard from `Base Set`, number `004/102`, `Holo Rare`, with a `market` price of 1001.05 USD, `total_listings` of 148 and `total_sellers` of 79. Check `has_more` in `pagination` before asking for the next `page`. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Price a card from its \`market\`, \`low\` and \`low\_with\_shipping\` prices

`` Use the TCGplayer API to price a card from its `market`, `low` and `low_with_shipping` prices `` 

### Track sales volume per condition with \`price-history\`

`` Use the TCGplayer API to track sales volume per condition with `price-history` `` 

### Build a set checklist by searching with \`set\` instead of \`query\`

`` Use the TCGplayer API to build a set checklist by searching with `set` instead of `query` `` 

### Compare listing depth across cards with \`total\_listings\` and \`total\_sellers\`

`` Use the TCGplayer API to compare listing depth across cards with `total_listings` and `total_sellers` `` 

FAQ

## Questions

**How much does the TCGplayer API cost?**

Each successful call costs one credit, whichever endpoint you call, and each search page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**What does price history return?**

\`price-history?id=42382&range=quarter\` returned a \`count\` of 5 \`series\`, one per SKU. Each has \`variant\`, \`language\`, \`condition\`, \`total\_quantity\_sold\`, \`total\_transactions\` and dated \`points\` with \`market\_price\`, \`low\_sale\`, \`high\_sale\`, \`quantity\_sold\` and \`transactions\`.

**Which card games can I search?**

\`product\_line\` takes \`pokemon\`, \`magic\`, \`yugioh\`, \`lorcana-tcg\`, \`one-piece-card-game\`, \`digimon-card-game\`, \`flesh-and-blood-tcg\` or \`star-wars-unlimited\`.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official TCGplayer API?**

No. Perceptlayer is an independent service and is not affiliated with TCGplayer. It returns TCGplayer data as JSON with a Perceptlayer key, so there is no TCGplayer developer account, app review or partner approval to get first. It only reads data: if TCGplayer has an official API and you need to act on your own TCGplayer account, such as posting, managing orders or reading private data, use that one.

**Should I build a TCGplayer scraper instead?**

You can, but a TCGplayer scraper is code you maintain: page changes break it, requests get blocked, and TCGplayer's terms govern how you collect data. The TCGplayer API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the TCGplayer API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
