# TCGPlayer Scraper - Trading Card Prices (`lulzasaur/tcgplayer-scraper`) Actor

Scrape TCGPlayer marketplace for trading card prices across Pokemon, Magic: The Gathering, Yu-Gi-Oh, and more. Extract market prices, median prices, lowest prices, seller listings, card attributes, rarity, set info, and custom attributes via TCGPlayer's search API.

- **URL**: https://apify.com/lulzasaur/tcgplayer-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 34 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $13.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 - Trading Card Prices

Apify Actor for scraping TCGPlayer marketplace trading card prices and listings. Uses TCGPlayer's search API for fast, structured data extraction without browser rendering.

### Features

- Search for any trading card across Pokemon, Magic: The Gathering, Yu-Gi-Oh, and dozens more games
- Filter by product line (game) to narrow results
- Extract market prices, median prices, lowest prices, and lowest-with-shipping prices
- Get card attributes: rarity, card number, energy type, set name, release date
- Optionally scrape detail pages for additional data (full description, price points, images)
- Fast API-based scraping (no browser required for search mode)

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchQueries` | string\[] | `["charizard"]` | Search terms to scrape |
| `maxListings` | integer | `100` | Max listings per query (0=unlimited) |
| `productLine` | string | - | Filter by game: `Pokemon`, `Magic`, `YuGiOh`, etc. |
| `scrapeDetails` | boolean | `false` | Visit each product page for extra data |
| `proxyConfiguration` | object | `{}` | Proxy settings (optional for API mode) |

#### Example Input

```json
{
    "searchQueries": ["charizard", "pikachu"],
    "maxListings": 50,
    "productLine": "Pokemon",
    "scrapeDetails": false
}
```

### Output

#### Search mode (`scrapeDetails: false`)

```json
{
    "productId": 42382,
    "productName": "Charizard",
    "productLineName": "Pokemon",
    "productLineId": 3,
    "setName": "Base Set",
    "setId": 2574,
    "rarityName": "Holo Rare",
    "cardNumber": "004/102",
    "energyType": ["Fire"],
    "description": "...",
    "flavorText": null,
    "releaseDate": "1999-01-09T00:00:00Z",
    "marketPrice": 497.82,
    "medianPrice": 499.99,
    "lowestPrice": 299.99,
    "lowestPriceWithShipping": 315.98,
    "totalListings": 150,
    "foilOnly": false,
    "sealed": false,
    "imageUrl": "https://tcgplayer-cdn.tcgplayer.com/product/42382_200w.jpg",
    "url": "https://www.tcgplayer.com/product/42382/pokemon-base-set-charizard",
    "totalResults": 273,
    "searchQuery": "charizard",
    "scrapedAt": "2026-03-17T12:00:00.000Z"
}
```

#### Detail mode (`scrapeDetails: true`)

Adds additional fields from the product page:

```json
{
    "...all search fields above...": "...",
    "fullDescription": "Extended product description from detail page",
    "pricePoints": {
        "market price": 497.82,
        "buylist market price": 350.00
    },
    "images": ["https://tcgplayer-cdn.tcgplayer.com/product/42382_in_1000x1000.jpg"],
    "detailAttributes": {
        "Card Number / Rarity": "4/102 / Holo Rare",
        "Card Type / HP / Stage": "Fire / 120 / Stage 2"
    }
}
```

### Supported Product Lines

| Game | productLine Value |
|------|-------------------|
| Pokemon (English) | `Pokemon` |
| Pokemon (Japanese) | `Pokemon Japan` |
| Magic: The Gathering | `Magic` |
| Yu-Gi-Oh | `YuGiOh` |
| Disney Lorcana | `Lorcana` |
| One Piece Card Game | `One Piece Card Game` |
| Flesh and Blood | `Flesh And Blood` |
| Dragon Ball Super | `Dragon Ball Super CCG` |
| Cardfight Vanguard | `Cardfight Vanguard` |
| Weiss Schwarz | `Weiss Schwarz` |

Leave `productLine` empty to search across all games and product types.

### How It Works

1. Sends POST requests to TCGPlayer's unauthenticated search API (`mp-search-api.tcgplayer.com`)
2. Paginates through results using `from` and `size` parameters (24 products per page)
3. Extracts prices, card attributes, set info, and product metadata from the JSON response
4. Constructs product URLs and image URLs from product IDs and URL slugs
5. Optionally visits product detail pages via CheerioCrawler for richer data

### Quick Start

```bash
apify run --purge
```

### Deploy to Apify

```bash
apify login
apify push
```

### Related Scrapers

More marketplace scrapers and data tools by [lulzasaur](https://apify.com/lulzasaur):

- [AbeBooks Scraper](https://apify.com/lulzasaur/abebooks-scraper) — Rare and used books
- [Bonanza Scraper](https://apify.com/lulzasaur/bonanza-scraper) — Online marketplace listings
- [Contractor License Verifier](https://apify.com/lulzasaur/contractor-license-scraper) — Multi-state license verification
- [Craigslist Scraper](https://apify.com/lulzasaur/craigslist-scraper) — Classifieds and for-sale posts
- [Goodreads Scraper](https://apify.com/lulzasaur/goodreads-scraper) — Book ratings and reviews
- [Grailed Scraper](https://apify.com/lulzasaur/grailed-scraper) — Luxury fashion resale
- [Houzz Scraper](https://apify.com/lulzasaur/houzz-scraper) — Home improvement professionals
- [IMDb Scraper](https://apify.com/lulzasaur/imdb-scraper) — Movie and TV show data
- [Nurse License Verifier](https://apify.com/lulzasaur/nurse-license-scraper) — State nursing board verification
- [OfferUp Scraper](https://apify.com/lulzasaur/offerup-scraper) — Local marketplace listings
- [Poshmark Scraper](https://apify.com/lulzasaur/poshmark-scraper) — Fashion resale marketplace
- [PSA Population Report](https://apify.com/lulzasaur/psa-pop-scraper) — Card grading data
- [Redfin Scraper](https://apify.com/lulzasaur/redfin-scraper) — Real estate listings and prices
- [Reverb Scraper](https://apify.com/lulzasaur/reverb-scraper) — Music gear marketplace
- [StubHub Scraper](https://apify.com/lulzasaur/stubhub-scraper) — Event ticket prices
- [Swappa Scraper](https://apify.com/lulzasaur/swappa-scraper) — Used electronics marketplace
- [ThriftBooks Scraper](https://apify.com/lulzasaur/thriftbooks-scraper) — Used book prices
- [Thumbtack Scraper](https://apify.com/lulzasaur/thumbtack-scraper) — Local service professionals

# Actor input Schema

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

List of search terms to scrape (e.g., 'charizard', 'black lotus', 'blue-eyes white dragon'). Each query will produce a separate set of results.

## `maxListings` (type: `integer`):

Maximum number of product listings to scrape per search query. Set to 0 for unlimited. The API returns up to 10,000 results per query.

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

Filter results to a specific trading card game / product line. Leave empty for all product lines. Common values: 'Pokemon', 'Magic', 'YuGiOh', 'Pokemon Japan', 'Lorcana', 'One Piece Card Game', 'Flesh And Blood'.

## `scrapeDetails` (type: `boolean`):

If enabled, visits each product's detail page on tcgplayer.com to extract additional info like full description, all images, and price history chart data. Slower but richer data. If disabled, only uses the fast search API data.

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

Proxy settings. The search API typically does not require proxies, but detail page scraping may benefit from them for large-scale runs.

## Actor input object example

```json
{
  "searchQueries": [
    "charizard"
  ],
  "maxListings": 100,
  "scrapeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/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 = { "searchQueries": ["charizard"] }

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/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 '{
  "searchQueries": [
    "charizard"
  ]
}' |
apify call lulzasaur/tcgplayer-scraper --silent --output-dataset

```

## MCP server setup

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