# TCGplayer Scraper: Trading Card Prices, Sets and Listings Count (`santamaria-automations/tcgplayer-scraper`) Actor

Search TCGplayer for trading cards and sealed products: market price, lowest price, lowest price with shipping, listings count, set, rarity, card number, image and card attributes. Pokemon, Magic, Yu-Gi-Oh and more. No login needed.

- **URL**: https://apify.com/santamaria-automations/tcgplayer-scraper.md
- **Developed by:** [NanoScrape](https://apify.com/santamaria-automations) (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 product delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper

Search TCGplayer for trading cards and sealed products and get one record per product: market price, lowest price, lowest price with shipping, number of listings, set, rarity, card number, image, release date and the card attributes the site shows. Works for Pokemon, Magic: The Gathering, Yu-Gi-Oh, Lorcana, One Piece and the other games on the site. No login and no API key are needed.

### What you get

- One record per product for each search word you give, 24 products per page of results.
- Several search words in one run. A product found by two searches is returned once.
- An optional game filter, so a search for `charizard` returns only Pokemon products.
- Results in the site's default order, or sorted by market price.
- Seller names and individual seller listings are not collected. You get the price and listings count of the product only.
- A run that is interrupted continues where it stopped. Products already delivered are not delivered or charged again.
- You pay only for products that were saved to the dataset.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=santamaria-automations/tcgplayer-scraper
```

**Example prompt once connected:**

> "Use `tcgplayer-scraper` to search for charizard in Pokemon, sorted by highest market price, and list the 20 most expensive cards with their set and rarity."

### Data extracted

| Field | Example |
|-------|---------|
| `product_id` | `219058` |
| `url` | `"https://www.tcgplayer.com/product/219058/pokemon-battle-academy-charizard-3-70-39-charizard-stamped"` |
| `name` | `"Charizard - 3/70 (#39 Charizard Stamped)"` |
| `product_line` | `"Pokemon"` |
| `set_name`, `set_code` | `"Battle Academy"`, `"BTA"` |
| `rarity` | `"Promo"` |
| `card_number` | `"003/070"` |
| `card_type` | `["Pokemon"]` |
| `market_price` | `6.99` (US dollars) |
| `median_price` | `8.99` (when the site shows one) |
| `lowest_price` | `4.0` |
| `lowest_price_with_shipping` | `4.79` |
| `total_listings` | `63` |
| `image_url` | Product image address |
| `release_date` | `"2020-07-31T00:00:00Z"` |
| `is_sealed`, `foil_only` | Flags from the site |
| `attributes` | Every card attribute the site shows, such as `hp`, `stage`, `energyType`, `weakness`, `retreatCost`, `attack1`, `flavorText` and `description` |
| `query`, `rank`, `page` | The search word, the position in its results and the results page |
| `scraped_at` | `"2026-11-07T08:00:00Z"` |

Fields that the site does not show for a product are returned empty (null). Prices are in US dollars.

### Pricing

Pay-per-event pricing. You pay only for products that were saved to the dataset.

| Event | Price |
|-------|-------|
| Actor start (`actor-start`) | $0.001 per run |
| Product scraped (`product-result`) | $0.003 per product ($3.00 per 1,000) |

The start event is charged once per run, together with the first saved product. A run that returns nothing is not charged. If you set a maximum cost per run, the actor stops before it goes over that limit.

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `queries` | string\[] | Search words, one search per entry. Comma separated text is read as well. | `charizard` when empty |
| `productLine` | string | Only products of this game, for example `pokemon`, `magic`, `yugioh`, `lorcana` or `one-piece`. Separate several games with commas. | all games |
| `maxItems` | integer | Most products to return across all searches. 0 uses 100. | `100` |
| `maxItemsPerQuery` | integer | Most products to return for each search word. 0 means no limit per search. | `0` |
| `sort` | string | `relevance`, `price-high` or `price-low` (market price). | `relevance` |

### Usage examples

#### Two search words in one game

```json
{
  "queries": ["charizard", "pikachu"],
  "productLine": "pokemon",
  "maxItems": 100,
  "maxItemsPerQuery": 50
}
```

#### The most expensive Magic cards for a word

```json
{
  "queries": ["black lotus"],
  "productLine": "magic",
  "sort": "price-high",
  "maxItems": 48
}
```

#### A quick look at one search

```json
{
  "queries": ["pikachu"],
  "maxItems": 5
}
```

### Output

Results are saved to the default dataset. Export them as JSON, CSV or Excel, or read them through the API.

Sample record:

```json
{
  "product_id": 219058,
  "url": "https://www.tcgplayer.com/product/219058/pokemon-battle-academy-charizard-3-70-39-charizard-stamped",
  "name": "Charizard - 3/70 (#39 Charizard Stamped)",
  "product_line": "Pokemon",
  "set_name": "Battle Academy",
  "set_code": "BTA",
  "rarity": "Promo",
  "card_number": "003/070",
  "card_type": ["Pokemon"],
  "market_price": 6.99,
  "median_price": 8.99,
  "lowest_price": 4.0,
  "lowest_price_with_shipping": 4.79,
  "total_listings": 63,
  "release_date": "2020-07-31T00:00:00Z",
  "is_sealed": false,
  "attributes": {"hp": "160", "stage": "Stage 2", "energyType": ["Fire"], "weakness": "Wx2"},
  "query": "charizard",
  "rank": 1,
  "page": 1
}
```

### Limitations

- Only the product search is read. Seller pages, individual seller listings, price history and decks are not read.
- Prices are in US dollars. The market price, lowest price and listings count are the values at the time of the run.
- A search returns at most the first 10,000 matches, 24 per page.
- The `is_sealed` flag is the site's own flag and is false for many boxes and cases. A product without `card_number` and `rarity` is usually a sealed product or an accessory.
- Attributes depend on the game and the product. Sealed products show few of them.
- The game filter uses the names shown in the input table. Another game name is passed to the site as written, and a name the site does not know returns no products.
- If the site refuses every request, the run fails and nothing is charged.

### FAQ

**Which pages does it read?**
The product search of tcgplayer.com. It does not open product pages or seller pages.

**How many products do I get per search?**
24 per page. A search such as `charizard` has several hundred matches, and you choose how many to read with `maxItems`.

**What happens when two searches find the same product?**
It is returned once, for the first search that found it.

**Why does one search use up my whole limit?**
`maxItems` counts all searches together and searches run in the order given. Set `maxItemsPerQuery` to share the limit.

**What does a run cost?**
The start price plus the price per product, see the pricing table.

**What status does a run end with?**
The run status says how many products were delivered. If nothing matched, the run ends normally and says so. If the site refuses every request, the run fails and nothing is charged.

# Actor input Schema

## `queries` (type: `array`):

What to search for, for example charizard or black lotus. One search per entry. Leave empty to search for charizard.

## `productLine` (type: `string`):

Only return products of this game, for example pokemon, magic, yugioh, lorcana or one-piece. Several games can be separated by commas. Leave empty for all games.

## `maxItems` (type: `integer`):

Most products to return across all searches. 0 or empty uses 100.

## `maxItemsPerQuery` (type: `integer`):

Most products to return for each search word, so that one search cannot use up the whole limit. 0 or empty means no limit per search.

## `sort` (type: `string`):

Order of the results. Relevance is the order the site shows by default.

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

Connection settings. The default works for most runs; the actor chooses the level it needs.

## Actor input object example

```json
{
  "queries": [
    "charizard",
    "pikachu"
  ],
  "productLine": "pokemon",
  "maxItems": 100,
  "maxItemsPerQuery": 0,
  "sort": "relevance",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Dataset containing one record per product

# 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 = {
    "queries": [
        "charizard",
        "pikachu"
    ],
    "productLine": "pokemon",
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/tcgplayer-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 = {
    "queries": [
        "charizard",
        "pikachu",
    ],
    "productLine": "pokemon",
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/tcgplayer-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 '{
  "queries": [
    "charizard",
    "pikachu"
  ],
  "productLine": "pokemon",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call santamaria-automations/tcgplayer-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,santamaria-automations/tcgplayer-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/hJca6WdO5K4Zazmya/builds/7f4qt7ZWjvn7a3oUI/openapi.json
