---
title: "TCGplayer API: Search | Perceptlayer"
description: "Search from TCGplayer as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/tcgplayer/search
---

[APIs](https://perceptlayer.com/apis) / [TCGplayer](https://perceptlayer.com/apis/tcgplayer) / Search

# TCGplayer: Search

Search from TCGplayer as JSON. 1 credit per successful call.

GET `/v1/tcgplayer/search`

## Parameters

Send parameters in the query string.

Required Send `query` or `set`.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 200 characters |
| `product_line` | string | Required | pokemon, magic, yugioh, lorcana-tcg, one-piece-card-game, digimon-card-game, flesh-and-blood-tcg, star-wars-unlimited |
| `set` | string | Optional | Up to 120 characters |
| `page` | integer | Required | Any |
| `size` | integer | Required | Any |

## Example request

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.

[Run this endpoint in the playground](https://perceptlayer.com/apis/tcgplayer?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 3 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `product_line` | string |
| `items` | object\[\] |
| `pagination` | object |
