Skip to content
Scrappa Get API key
TCGplayer API 1 credit / request

TCGplayer Search API Documentation

GET https://scrappa.co/api/tcgplayer/search

Search public TCGplayer products. Filter by product line and set, paginate with page and size (1 to 50). Each item has an id, name, set, number, rarity, full-size image and market, low and median prices as numbers with USD. The id passes unchanged to the product and price-history routes. One credit per successful request; a failed request is never billed.

TCGplayer Search API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/tcgplayer/search
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "items": [
            {
                "id": "42382",
                "set": "Base Set",
                "name": "Charizard",
                "number": "004/102",
                "prices": {
                    "low": {
                        "amount": 99,
                        "currency": "USD"
                    },
                    "market": {
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

5 optional filters available.

query string Optional

Search words, for example charizard.

Example value coffee shops
product_line string Optional

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

Example value example
set string Optional

Set name from the product line.

Example value example
page integer Optional

Page number, 1 to 50.

Example value 1
size integer Optional

Products per page, 1 to 50.

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "items": [
            {
                "id": "42382",
                "set": "Base Set",
                "name": "Charizard",
                "number": "004/102",
                "prices": {
                    "low": {
                        "amount": 99,
                        "currency": "USD"
                    },
                    "market": {
                        "amount": 1001.05,
                        "currency": "USD"
                    }
                },
                "rarity": "Holo Rare",
                "image_url": "https://tcgplayer-cdn.tcgplayer.com/product/42382_in_1000x1000.jpg"
            }
        ],
        "query": "charizard",
        "pagination": {
            "page": 1,
            "total": 480,
            "has_more": true,
            "page_size": 20,
            "page_count": 24
        },
        "product_line": "pokemon"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or invalid. TCGplayer is not called and the request is not billed.

{
    "message": "The request validation failed"
}
503

Upstream Unavailable

TCGplayer did not answer. Not billed.

{
    "error": {
        "code": "UPSTREAM_UNAVAILABLE"
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.