# TCGplayer Price Scraper - Cards, Sales & Listings (`fanndev/tcgplayer-price-scraper`) Actor

Scrape TCGplayer prices for Pokemon, Magic, Yu-Gi-Oh!, One Piece, Lorcana and 50+ games: market, lowest and median price, per-printing prices, latest sales, cheapest seller listings and price history. Search by name, game, set or product type, or paste product URLs.

- **URL**: https://apify.com/fanndev/tcgplayer-price-scraper.md
- **Developed by:** [Faisal Ahdan naufal](https://apify.com/fanndev) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TCGplayer Price Scraper - Cards, Sales & Listings

Get TCGplayer prices for Pokémon, Magic: The Gathering, Yu-Gi-Oh!, One Piece, Disney Lorcana and 50+ other games: market price, lowest listing, median price, prices per printing, the latest sales, the cheapest seller listings and sales history by condition.

### Why use this actor

- **Every price TCGplayer shows, in one row per product.** Market price, lowest price with and without shipping, median listed price and live listing count.
- **Real sales data.** Add the 5 most recent sales and up to 12 months of sales history per printing and condition: units sold, transactions, and low, high and market price per period.
- **Seller-level depth.** Add the cheapest live listings with seller, rating, condition, printing, language, quantity and shipping, plus listing counts by condition.
- **Whole sets at once.** Filter by game, set and product type (singles vs sealed), and sort by price, best-selling or release date.
- **No account, no login, no API key.**
- **Clean JSON** ready for spreadsheets, price trackers, collection valuation, arbitrage tools and dashboards. Export to JSON, CSV or Excel.

### How it works

1. Type card names to search, or pick a game and set (e.g. `pokemon` + `SV: Scarlet & Violet 151`), or paste TCGplayer product or search URLs.
2. Choose how many products you want and how to sort them.
3. Switch on the extras you need: prices per printing, latest sales, active listings, price history.
4. Run. Each product becomes one row in the dataset.

You don't need to maintain any scrapers or browsers, or deal with blocks.

### Input

```json
{
    "searchQueries": ["charizard"],
    "productLines": ["pokemon"],
    "sets": [],
    "productTypes": ["Cards"],
    "sortBy": "price-high",
    "maxResults": 50,
    "includePricePoints": true,
    "includeLatestSales": true,
    "maxListingsPerProduct": 10,
    "priceHistoryRange": "month",
    "proxyConfiguration": { "useApifyProxy": true }
}
```

| Field | Type | Description |
| --- | --- | --- |
| `searchQueries` | array | Card or product names. One search per query. Leave empty to list a whole game, set or product type. |
| `productLines` | array | Games, by name or slug: `pokemon`, `pokemon-japan`, `magic`, `yugioh`, `one-piece-card-game`, `lorcana-tcg`, `digimon-card-game`, `flesh-and-blood-tcg`, `star-wars-unlimited`... |
| `sets` | array | Set names as shown on TCGplayer (`Base Set`, `SV: Scarlet & Violet 151`) or the slug from the set's URL (`base-set`). |
| `productTypes` | array | `Cards` for singles, `Sealed Products` for boxes, packs and tins, and other types TCGplayer lists. |
| `productUrls` | array | Product pages (`https://www.tcgplayer.com/product/42382/...`), bare product ids, or search pages (`https://www.tcgplayer.com/search/pokemon/base-set?q=charizard`). |
| `sortBy` | string | `relevance`, `best-selling`, `price-high`, `price-low`, `lowest-listing-high`, `lowest-listing-low`, `newest`, `oldest`, `name`. |
| `maxResults` | integer | Products per search (default 100). `0` = as many as TCGplayer serves (up to 9,990 per search). |
| `includePricePoints` | boolean | Market, listed median and buylist price per printing (Normal, Foil...). |
| `includeLatestSales` | boolean | The 5 most recent sales. |
| `maxListingsPerProduct` | integer | Cheapest N live listings per product. `0` = off. |
| `priceHistoryRange` | string | `month`, `quarter`, `semi-annual` or `annual` sales history; empty = off. |
| `maxConcurrency` | integer | Products enriched in parallel (default 8). |
| `proxyConfiguration` | object | Apify Proxy settings. The default datacenter proxy works for this site; switch to Residential only if you see blocks. |

### Output

A real row (`charizard`, Pokémon cards, highest price first, all extras on). Lists are shortened here.

```json
{
  "_input": "q:charizard | game:pokemon | type:Cards",
  "_source": "S1-search",
  "_scrapedAt": "2026-11-18T05:35:20Z",
  "recordType": "product",
  "productUrl": "https://www.tcgplayer.com/product/106999",
  "imageUrl": "https://tcgplayer-cdn.tcgplayer.com/product/106999_in_1000x1000.jpg",
  "productId": 106999,
  "productName": "Charizard",
  "productLineName": "Pokemon",
  "setName": "Base Set (Shadowless)",
  "setCode": "BSS",
  "marketPrice": 2172.24,
  "lowestPrice": 900.0,
  "lowestPriceWithShipping": 900.0,
  "totalListings": 29,
  "customAttributes": {
    "number": "004/102",
    "rarityDbName": "Holo Rare",
    "releaseDate": "1999-01-09T00:00:00Z",
    "cardType": ["Pokemon"],
    "hp": "120",
    "stage": "Stage 2"
  },
  "pricePoints": [
    { "printingType": "Normal", "marketPrice": null, "buylistMarketPrice": null, "listedMedianPrice": null },
    { "printingType": "Foil", "marketPrice": 2172.24, "buylistMarketPrice": null, "listedMedianPrice": null }
  ],
  "latestSales": [
    {
      "condition": "Lightly Played",
      "variant": "Unlimited Holofoil",
      "language": "English",
      "quantity": 1,
      "title": "Charizard",
      "listingType": "ListingWithoutPhotos",
      "purchasePrice": 2000.98,
      "shippingPrice": 19.99,
      "orderDate": "2026-10-20T03:49:38.257+00:00"
    }
  ],
  "activeListings": {
    "total": 29,
    "byCondition": { "condition": [ { "value": "Damaged", "count": 10 }, { "value": "Heavily Played", "count": 10 } ] },
    "listings": [
      { "sellerName": "Cards n Hobby", "sellerRating": 100.0, "price": 599.99, "shippingPrice": 0.0, "condition": "Damaged", "printing": "Unlimited Holofoil", "language": "English", "quantity": 1 }
    ]
  },
  "priceHistoryRange": "month",
  "priceHistory": [
    {
      "skuId": "2998641",
      "variant": "Unlimited Holofoil",
      "language": "English",
      "condition": "Damaged",
      "totalQuantitySold": 0,
      "totalTransactionCount": 0,
      "buckets": [
        { "marketPrice": 1049.62, "quantitySold": 0, "lowSalePrice": 0, "highSalePrice": 0, "transactionCount": 0, "bucketStartDate": "2026-11-18" }
      ]
    }
  ]
}
```

| Field | Description |
| --- | --- |
| `productId`, `productUrl`, `imageUrl` | TCGplayer id, product page and 1000×1000 image. |
| `productName`, `productLineName`, `setName`, `setCode` | Name, game and set. |
| `marketPrice` | TCGplayer Market Price (USD), based on recent sales. |
| `lowestPrice`, `lowestPriceWithShipping` | Cheapest live listing, without and with shipping. |
| `medianPrice` | Median of live listings. |
| `totalListings` (search) / `listings`, `sellers` (product URLs) | Live listing and seller counts. |
| `customAttributes` | Card number, rarity, release date, card text, type, HP, attacks and more (varies by game). |
| `pricePoints` | Market, listed median and buylist price per printing. |
| `latestSales` | Most recent sales: date, condition, printing, language, quantity, price paid, shipping. |
| `activeListings` | Total, counts by condition, and the cheapest listings with seller details. |
| `priceHistory` | Per printing/language/condition: totals and per-period market price, units sold, transactions, low/high sale price. |

Product URLs return a few extra fields (`formattedAttributes`, `skus`, `rarityName`, `sellers`). If a search matches nothing you get one free `NOTICE` row; an unknown product id or set name gives one free `ERROR` row that explains it.

### Notes and limits

- Prices are TCGplayer's US marketplace prices in USD.
- TCGplayer shows anyone the 5 most recent sales per product; for longer trends use `priceHistoryRange`.
- One search returns at most 9,990 products. To export a whole game, run one search per set.
- Extras add requests per product (one each, or one per 50 listings), so turn on only what you need for large runs.

# Actor input Schema

## `searchQueries` (type: `array`):

Card or product names to search, e.g. 'charizard' or 'black lotus'. One search per query. Leave empty and use the filters below to list a whole game, set or product type.

## `productLines` (type: `array`):

Limit results to these games, by name or slug: pokemon, pokemon-japan, magic, yugioh, one-piece-card-game, lorcana-tcg, digimon-card-game, dragon-ball-super-ccg, star-wars-unlimited, flesh-and-blood-tcg, weiss-schwarz and any other game TCGplayer sells.

## `sets` (type: `array`):

Limit results to these sets, by the name shown on TCGplayer (e.g. 'Base Set', 'SV: Scarlet & Violet 151') or the slug from its URL (e.g. 'base-set').

## `productTypes` (type: `array`):

Limit results to these product types, e.g. 'Cards' for singles or 'Sealed Products' for booster boxes, packs and tins.

## `productUrls` (type: `array`):

TCGplayer product pages (https://www.tcgplayer.com/product/42382/...), bare product ids, or search pages (https://www.tcgplayer.com/search/pokemon/base-set?q=charizard). Search page filters are kept.

## `sortBy` (type: `string`):

Order of search results.

## `maxResults` (type: `integer`):

Maximum products to save for each search. 0 = as many as TCGplayer serves (up to 9,990 per search; add game/set filters to reach more).

## `includePricePoints` (type: `boolean`):

Adds market price, listed median and buylist market price for each printing (Normal, Foil/Holofoil...).

## `includeLatestSales` (type: `boolean`):

Adds the 5 most recent completed sales: date, condition, printing, language, quantity, price paid and shipping.

## `maxListingsPerProduct` (type: `integer`):

Adds the cheapest N live seller listings (price incl. shipping) with seller, condition, printing, language and quantity, plus listing counts by condition. 0 = off.

## `priceHistoryRange` (type: `string`):

Adds sales history per printing and condition: market price, units sold, transactions and low/high sale price per period.

## `maxConcurrency` (type: `integer`):

Products enriched in parallel when extras are on.

## `maxRetries` (type: `integer`):

Retries per request before giving up on it.

## `proxyConfiguration` (type: `object`):

Apify Proxy. The default (datacenter) works for this site and costs least; switch to Residential only if a large run starts getting blocked.

## Actor input object example

```json
{
  "searchQueries": [
    "charizard"
  ],
  "productLines": [
    "pokemon"
  ],
  "sortBy": "relevance",
  "maxResults": 50,
  "includePricePoints": false,
  "includeLatestSales": false,
  "maxListingsPerProduct": 0,
  "priceHistoryRange": "",
  "maxConcurrency": 8,
  "maxRetries": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per product with prices and any extras you switched on, plus notice rows for searches that matched nothing.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "charizard"
    ],
    "productLines": [
        "pokemon"
    ],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fanndev/tcgplayer-price-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["charizard"],
    "productLines": ["pokemon"],
    "maxResults": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("fanndev/tcgplayer-price-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "charizard"
  ],
  "productLines": [
    "pokemon"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call fanndev/tcgplayer-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fanndev/tcgplayer-price-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Uxi1BTnLYctghYfMG/builds/vJnq45OZA5eLoEV8Z/openapi.json
