# Tcgplayer Cards Price Scraper (`real-estate-api/tcgplayer-cards-price-scraper`) Actor

TCGplayer Cards Price Scraper is a Python tool designed to extract card names, sets, rarity, condition variants, market prices, and price histories from listings. It exports structured collectible card game datasets into clean CSV or JSON formats for portfolio tracking and price trend analysis.

- **URL**: https://apify.com/real-estate-api/tcgplayer-cards-price-scraper.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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 Cards Price Scraper — Trading Card Search and Market Price Data

![TCGplayer Cards Price Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/tcgplayer-cards-price-scraper-cover.png)

Collect trading card search results and pricing information from TCGplayer. Search by card name, retrieve product and set details, and gather market prices, median prices, and listing counts in a structured dataset.

### Overview

TCGplayer Cards Price Scraper helps you research trading card products and compare marketplace pricing.

Enter a search query, set the maximum number of products to collect, and receive structured records containing card names, product identifiers, set information, rarity, pricing, and listing details.

### Features

- **Card search:** Find matching trading card products using a search query.
- **Market pricing:** Collect market price, median price, and lowest price with shipping.
- **Set information:** Retrieve set names, set codes, and product line details.
- **Rarity details:** Collect available card rarity information.
- **Listing statistics:** Gather total listing counts and seller availability details.
- **Result limits:** Control the maximum number of products collected per run.
- **Structured exports:** Download results as JSON, CSV, Excel, and other supported formats.

### Use Cases

- **Price research:** Compare market prices, median prices, and lowest available prices.
- **Set research:** Explore card sets, set codes, and rarity information.
- **Inventory monitoring:** Review listing counts and seller availability for tracked products.
- **Collection management:** Build structured card catalogs for personal collections.
- **Market analysis:** Organize product and pricing data for further analysis.

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Search mode. Use `search`. |
| `query` | String | Card name or search term, such as `charizard`. |
| `maxItems` | Integer | Maximum number of products to collect. The actor supports up to 1,000 products per run. |
| `requestDelaySecs` | Number | Delay between requests in seconds. |

### Example Input

```json id="c4m8qp"
{
  "mode": "search",
  "query": "charizard",
  "maxItems": 50,
  "requestDelaySecs": 1
}
```

### What Data Does This Actor Extract?

Each dataset row represents a matching card product. Available fields may include:

| Field | Description |
|---|---|
| `productId` | Unique product identifier |
| `productName` | Card or product name |
| `productLineName` | Trading card product line |
| `productLineUrlName` | Product line URL name |
| `productLineId` | Product line identifier |
| `productUrlName` | Product URL name |
| `productTypeId` | Product type identifier |
| `setId` | Card set identifier |
| `setName` | Card set name |
| `setCode` | Card set code |
| `setUrlName` | Set URL name |
| `rarityName` | Card rarity |
| `marketPrice` | Market price |
| `medianPrice` | Median price |
| `lowestPriceWithShipping` | Lowest price including shipping |
| `totalListings` | Total number of listings |
| `listings` | Available listing information |
| `shippingCategoryId` | Shipping category identifier |
| `customAttributes` | Additional card attributes, such as stage and card number |
| `duplicate` | Indicates whether the product is marked as a duplicate |
| `sealed` | Indicates whether the product is sealed |
| `foilOnly` | Indicates whether the product is foil-only |
| `sellerListable` | Indicates whether the product can be listed by sellers |
| `productStatusId` | Product status identifier |
| `maxFulfillableQuantity` | Maximum fulfillable quantity |
| `score` | Search relevance score |
| `scraped_at` | Date and time the record was collected |

Some fields may be empty or unavailable depending on the product.

### Example Output

```json id="p7v2kx"
{
  "listings": [],
  "shippingCategoryId": 1,
  "duplicate": false,
  "productLineUrlName": "Pokemon",
  "productUrlName": "Charizard 3 70 39 Charizard Stamped",
  "productTypeId": 0,
  "rarityName": "Promo",
  "sealed": false,
  "marketPrice": 6.63,
  "customAttributes": {
    "stage": "Stage 2",
    "number": "003/070"
  },
  "lowestPriceWithShipping": 6.75,
  "productName": "Charizard - 3/70 (#39 Charizard Stamped)",
  "setId": 2686,
  "setCode": "BTA",
  "productId": 219058,
  "medianPrice": 8.0,
  "score": 42.14,
  "setName": "Battle Academy",
  "foilOnly": false,
  "setUrlName": "Battle Academy",
  "sellerListable": false,
  "totalListings": 96,
  "productLineId": 3,
  "productStatusId": 1,
  "productLineName": "Pokemon",
  "maxFulfillableQuantity": 255,
  "scraped_at": "2026-10-26T00:00:00+00:00"
}
```

### Working with Your Dataset

Once the run is complete, open the dataset in Apify Console to review your collected card records.

You can:

- Export results as JSON, CSV, or Excel.
- Sort products by market price or median price.
- Filter cards by set, rarity, or product line.
- Compare listing counts across products.
- Import records into spreadsheets or collection management tools.
- Use product identifiers to match records with your own catalog.

### FAQ

**Who is this actor for?**

It is designed for trading card collectors, marketplace sellers, researchers, analysts, and developers who need structured TCGplayer product and pricing information.

**What can I export?**

You can export JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I run it on a schedule?**

Yes. You can configure an Apify schedule to collect updated search results at your preferred intervals.

**How many products can one run return?**

You can collect up to 1,000 products per run, depending on the number of matching search results.

**What happens if some product information is unavailable?**

Unavailable fields may be empty or null. The actor can continue processing other matching products.

### Disclaimer

This actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with TCGplayer or its owners. It collects information made publicly available through the service. Users are responsible for ensuring that their data collection and use comply with applicable laws and relevant terms.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to scrape. Card search posts to the TCGplayer marketplace search API.

## `query` (type: `string`):

Search term for TCGplayer card products.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelaySecs` (type: `number`):

Seconds to wait between requests.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "search",
  "query": "charizard",
  "maxItems": 100,
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "query": "charizard"
};

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/tcgplayer-cards-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 = { "query": "charizard" }

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/tcgplayer-cards-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 '{
  "query": "charizard"
}' |
apify call real-estate-api/tcgplayer-cards-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/tcgplayer-cards-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/HGI888sO1kGUOe8dU/builds/Vn7vjWUdFlzNeeroJ/openapi.json
