# CardTrader Scraper - TCG Card Marketplace Prices (`lulzasaur/cardtrader-scraper`) Actor

Scrape CardTrader.com, the European TCG marketplace, for card prices across Magic, Pokemon, Yu-Gi-Oh, One Piece and more. Get card name, game, set, rarity, foil, lowest price (native + EUR), seller count, condition, stock, image and URL for any search.

- **URL**: https://apify.com/lulzasaur/cardtrader-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** E-commerce
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## CardTrader Scraper - TCG Marketplace Prices (Magic, Pokemon, Yu-Gi-Oh)

Scrape **CardTrader** ([cardtrader.com](https://www.cardtrader.com)), one of the largest European trading-card-game marketplaces, aggregating thousands of sellers across **Magic: The Gathering, Pokemon, Yu-Gi-Oh!, One Piece, Flesh and Blood, Digimon, Dragon Ball Super** and more. For any card search you get the **lowest live price**, **seller count**, condition, rarity, foil status, total stock, image and product URL.

### What it does

- Searches CardTrader's blueprint catalog for a given game by card name.
- For each matching printing, pulls the live marketplace listings and aggregates them into one row.
- Reports the **lowest price** in the site's native currency **and converted to EUR** (using CardTrader's live currency rates), plus how many sellers stock it and total available quantity.

### Output fields

| Field | Description |
|-------|-------------|
| `name` | Card name |
| `game` | Game (e.g. Magic: the Gathering) |
| `set` / `setCode` | Expansion name and code |
| `rarity` | Card rarity |
| `collectorNumber` | Collector number |
| `language` | Card language |
| `foil` | Whether this printing is foil |
| `foilAvailable` | Whether any foil listing exists |
| `lowestPrice` / `currency` | Lowest listing price in native currency |
| `lowestPriceEur` | Lowest price converted to EUR |
| `lowestCondition` | Condition of the cheapest listing |
| `sellerCount` | Distinct sellers on the loaded listings page |
| `listingCount` | Total number of listings for the card |
| `totalStock` | Total quantity available across loaded listings |
| `marketPriceUsd` | CardTrader reference/market price (USD) when available |
| `imageUrl` | Card image |
| `url` | CardTrader product page |

### Input

```json
{
  "searchQueries": ["ragavan"],
  "game": "magic",
  "maxCards": 20,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

- **searchQueries** — one or more card names to search.
- **game** — which TCG to search (`magic`, `pokemon`, `yu-gi-oh`, `one-piece`, `flesh-and-blood`, `digimon`, `dragon-ball-super`, `cardfight-vanguard`). Search is per-game.
- **gameId** — advanced numeric CardTrader `game_id` override for games not in the dropdown.
- **maxCards** — max matching printings to price per query.
- **proxyConfiguration** — usually not needed; enable Apify Proxy only if you hit intermittent challenges.

### Notes

CardTrader shows prices in the viewer's currency (geo-dependent); the `lowestPriceEur` field always gives a EUR figure regardless. Data is read from CardTrader's own JSON endpoints, so it is fast and reliable.

# Actor input Schema

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

Card names to search on CardTrader (e.g. 'ragavan', 'charizard', 'black lotus'). Each query returns matching printings in the selected game with lowest price, seller count and stock.

## `game` (type: `string`):

Which trading card game to search. Search is per-game. Use 'gameId' below to target a game not listed here.

## `gameId` (type: `integer`):

Optional numeric CardTrader game\_id override. If set, takes precedence over the Game dropdown. Magic=1, Yu-Gi-Oh=4, Pokemon=5, Flesh and Blood=6, Digimon=8, Dragon Ball Super=9, Vanguard=10, One Piece=15.

## `maxCards` (type: `integer`):

Maximum number of matching card printings to fetch marketplace prices for, per search query. Each card is one extra request.

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

Proxy settings. CardTrader serves its JSON endpoints to a plain browser fingerprint without a proxy in most cases. Enable Apify Proxy only if you hit intermittent Cloudflare challenges.

## Actor input object example

```json
{
  "searchQueries": [
    "ragavan"
  ],
  "game": "magic",
  "maxCards": 20,
  "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": [
        "ragavan"
    ]
};

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

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

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "ragavan"
  ]
}' |
apify call lulzasaur/cardtrader-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=lulzasaur/cardtrader-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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