# Cardmarket Scraper - TCG Card Prices & Trends (`lulzasaur/cardmarket-scraper`) Actor

Scrape Cardmarket, Europe's largest TCG marketplace. Get card name, set/expansion, lowest price, price trend, 30/7/1-day averages, availability, rarity and URL for Magic, Pokemon, Yu-Gi-Oh and more. Search by keyword.

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

## Pricing

from $5.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

## Cardmarket Scraper - TCG Card Prices & Trends

Scrape live card pricing data from [Cardmarket](https://www.cardmarket.com) — **Europe's largest trading card game marketplace** for Magic: The Gathering, Pokemon, Yu-Gi-Oh!, Lorcana, One Piece and more.

Search by card name and get structured pricing, availability and rarity data for every matching product — perfect for **price monitoring, arbitrage, collection valuation, market research, and inventory tools**.

### What it does

Given one or more search queries (card names or keywords) and a game category, this Actor returns for each matching card product:

- **Card name**
- **Set / expansion**
- **Rarity**
- **Collector number**
- **Lowest available price** ("From" price)
- **Available count** (number of listings on offer)
- **Product URL**
- **Price Trend** and **30 / 7 / 1-day average prices** (when *Scrape Detail Pages* is enabled)

Prices are captured as both the original text (e.g. `10.200,00 €`) and a parsed numeric value.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `searchQueries` | array of strings | Card names / keywords to search (e.g. `Black Lotus`, `Charizard`). |
| `game` | string | Game category: `Magic`, `Pokemon`, `YuGiOh`, `Lorcana`, `OnePiece`, `FleshAndBlood`, `Digimon`, `DragonBallSuper`, `StarWarsUnlimited`. |
| `maxResults` | integer | Max products per query. `0` = unlimited. Default `50`. |
| `scrapeDetails` | boolean | Visit each product page to capture Price Trend + average prices. Default `false`. |
| `proxyConfiguration` | object | Proxy settings. RESIDENTIAL is used by default and strongly recommended. |

#### Example input

```json
{
    "searchQueries": ["Black Lotus", "Mox Sapphire"],
    "game": "Magic",
    "maxResults": 50,
    "scrapeDetails": true,
    "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

### Output

Each dataset item looks like:

```json
{
    "name": "Black Lotus",
    "expansion": "Unlimited",
    "rarity": "Rare",
    "collectorNumber": null,
    "lowestPriceText": "10.200,00 €",
    "lowestPrice": 10200,
    "priceTrendText": "11.005,15 €",
    "priceTrend": 11005.15,
    "avg30d": 12683.87,
    "avg7d": 11900,
    "avg1d": 10500,
    "availableCount": 48,
    "game": "Magic",
    "query": "Black Lotus",
    "productUrl": "https://www.cardmarket.com/en/Magic/Products/Singles/Unlimited/Black-Lotus",
    "scrapedAt": "2026-07-03T12:00:00.000Z"
}
```

*(`priceTrend`, `avg30d`, `avg7d`, `avg1d` are only populated when `scrapeDetails` is enabled.)*

### Notes

- Cardmarket is protected by **Cloudflare**. This Actor runs a real (headful) Chromium browser through **residential proxies** to access the site reliably. Keep the residential proxy enabled.
- Prices use European formatting on the site and are parsed to numeric values in the `lowestPrice` / `priceTrend` / `avg*` fields.
- Be respectful with volume — the Actor paginates and rate-limits automatically.

### Use cases

- **Price alerts & tracking** for singles across MTG / Pokemon / Yu-Gi-Oh.
- **Arbitrage** — compare Cardmarket EU prices against other marketplaces.
- **Collection valuation** — value a want-list or inventory in bulk.
- **Market research** — trend and average price data over time.

# Actor input Schema

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

One or more card names or keywords to search on Cardmarket (e.g. 'Black Lotus', 'Charizard', 'Blue-Eyes White Dragon'). Each query is searched independently.

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

TCG category to search within. Choose Magic, Pokemon, Yu-Gi-Oh, Lorcana, One Piece, Flesh and Blood, Digimon, Dragon Ball Super or Star Wars Unlimited.

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

Maximum number of card products to scrape per query. Set to 0 for unlimited (all matching results). Default is 50.

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

If enabled, visit each product page to also capture Price Trend and 30/7/1-day average prices. Slower and uses more compute, but richer data. If disabled, only search-result fields (name, set, lowest price, availability, rarity) are collected.

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

Proxy settings. Cardmarket is protected by Cloudflare — RESIDENTIAL proxies are strongly recommended and used by default. Do not disable the proxy.

## Actor input object example

```json
{
  "searchQueries": [
    "Black Lotus"
  ],
  "game": "Magic",
  "maxResults": 25,
  "scrapeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (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": [
        "Black Lotus"
    ],
    "maxResults": 25
};

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

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/cardmarket-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": [
    "Black Lotus"
  ],
  "maxResults": 25
}' |
apify call lulzasaur/cardmarket-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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