# Cardmarket Daily Price Guide & Trends (`codingfrontend/cardmarket-trend-scraper`) Actor

Join official public Cardmarket daily price guides with named product identities, EUR prices and 1/7/30-day averages. Weekly ranks and live offers are not supplied by guide files.

- **URL**: https://apify.com/codingfrontend/cardmarket-trend-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What does Cardmarket Daily Price Guide & Trends do?

Collect daily public Cardmarket price-guide values joined to real named products from the matching official singles catalogue. Each product ID identifies a distinct catalogue entry even when multiple versions have the same displayed name. Results include EUR trend, low and average values, available 1-, 7- and 30-day averages, source timestamps and catalogue identity.

Cardmarket [officially publishes these downloadable files](https://news.cardmarket.com/en/Magic/were-making-the-price-guide-and-product-catalogue-available-for-download). The price guide updates daily; the catalogue updates when products are added. These are snapshots rather than live seller offers or weekly ranking tables. File timestamps show which snapshot was used, separately from collection time.

### How to use it

1. Open **Input**, select the trading card game, and start with a small maximum item count.
2. Click **Start**. With no explicit URLs, the Actor requests that game's official public price-guide download and its matching singles catalogue.
3. Open **Results** to inspect named products, IDs and prices. Review **Run summary** for source issues and saved counts.
4. Download the dataset or connect an integration. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Input

| Setting | Default | Meaning |
| --- | --- | --- |
| Trading card game | OnePiece | Generated official guide: OnePiece, Magic, Pokemon, YuGiOh, Lorcana or DragonBallSuper. |
| Cardmarket URLs | None | Up to 20 distinct explicit official URLs take precedence. A recognised public guide JSON automatically joins its matching singles catalogue. The existing sourceUrls, urls and url aliases remain accepted; use only one list alias or one single URL. |
| Maximum cards | 100 | Save at most 1–500 distinct priced products globally. |
| Maximum source pages | 3 | Process at most 1–20 supplied/generated sources. Each guide requires two HTTP requests: prices plus product catalogue. Unprocessed sources are counted separately. |
| Request timeout | 30,000 ms | Developer option, 1,000–120,000 ms per request. |
| Transient retries | 1 | Developer option, 0–2 retries for transient server statuses. Denied access is not retried. |
| Delay between pages | 0 ms | Developer option, 0–5,000 ms between supplied sources. |

Example:

```json
{
  "game": "OnePiece",
  "maxItems": 3,
  "maxPages": 1
}
```

Explicit normal Cardmarket page URLs are still attempted directly; a blocked page is reported, never silently replaced by guide data. Public catalogue-only URLs do not expose prices and cannot qualify as trend results. This release is qualified for official guide snapshots; access to challenged HTML pages, live offers and weekly rankings remains unverified.

### Actual dataset example

This selected-field example is copied from a genuine local Actor dataset collected on 2026-10-06. No values are invented or shortened.

```json
{
  "cardId": "690368",
  "cardName": "Roronoa Zoro (OP01-001)",
  "game": "OnePiece",
  "cardNumber": "OP01-001",
  "categoryName": "One Piece Single",
  "expansionId": 5229,
  "trendPrice": 1.93,
  "lowPrice": 0.8,
  "avgPrice": 2.02,
  "avgPrice1Day": 2.3,
  "avgPrice7Days": 1.77,
  "avgPrice30Days": 2.06,
  "foilTrendPrice": 0,
  "currency": "EUR",
  "priceGuideCreatedAt": "2026-10-06T00:48:33.000Z",
  "productCatalogCreatedAt": "2026-10-05T12:13:35.000Z",
  "sourceUrl": "https://downloads.s3.cardmarket.com/productCatalog/priceGuide/price_guide_18.json",
  "productSourceUrl": "https://downloads.s3.cardmarket.com/productCatalog/productList/products_singles_18.json"
}
```

| Fields | Meaning |
| --- | --- |
| cardId, cardName, game | Actual catalogue product ID as a string, exact product name and verified guide game. Product IDs disambiguate variants. |
| cardNumber | Number visibly present in the product name, when available. |
| categoryId, categoryName, expansionId, metacardId | Actual numeric catalogue identities and category label. Expansion IDs are not guessed set names. |
| trendPrice, lowPrice, avgPrice | Direct official trend, low and average price-guide values in EUR. No currency conversion or multiplication is applied. |
| avgPrice1Day, avgPrice7Days, avgPrice30Days | Direct avg1, avg7 and avg30 source values in EUR, with their actual time windows. |
| foilTrendPrice, foilLowPrice, foilAvgPrice | Separate foil source values, when supplied. |
| foilAvgPrice1Day, foilAvgPrice7Days, foilAvgPrice30Days | Separate foil source averages for the same source time windows. |
| sourceUrl, productSourceUrl | Actual price-guide and catalogue downloads used for the join. |
| priceGuideCreatedAt, productCatalogCreatedAt, scrapedAt | Official file timestamps normalised to UTC, followed by actual collection time. |

Null, missing and invalid values are omitted. An actual numeric zero is retained; it does not prove that a purchasable offer exists. Weekly ranks, week dates, sales counts, market volumes, live offer counts, high prices, percentage changes, set names, rarities, product URLs and images are not inferred from these files. Existing fields remain compatible and are populated only if a supported public source genuinely supplies them.

### Source issues and limits

Customer dataset rows contain real named products with source prices only. Source errors stay separately in **Run summary** with saved counts, codes and messages. A successful source after a failed one preserves its records and reports **LIMITED_SUCCESS**. A run with no usable products visibly fails; no diagnostic or dummy rows are substituted.

The guide is joined to the singles catalogue by exact product ID and category. Guide entries outside that catalogue are excluded. The Actor follows source ordering and does not claim a price-based ranking. Each HTML response is bounded to 4 MiB; official guide/catalogue JSON downloads are bounded to 64 MiB because larger game catalogues exceed the page limit. No account, private API, purchase flow, CAPTCHA solving, proxy or challenge bypass is used.

Qualification covers tested One Piece guide snapshots and real challenged-page failure. Other game catalogues have verified game identities, but their full cloud workflows and large-volume completeness need separate validation. Schedules can collect repeated snapshots; this Actor does not maintain a historical price series automatically.

### Cost and support

Small item limits reduce saved records but still require complete guide and catalogue downloads. Compute, request duration and storage affect cost; inspect Actor Pricing and your Apify usage for current charges. Larger game files may need more memory. Start small and inspect the result before increasing limits.

Report issues through the Actor **Issues** tab with its run ID, public source URL and a short explanation. The **API** tab provides automation examples. This Actor is not affiliated with Cardmarket; follow the publisher's terms and reasonable request-rate limits.

# Actor input Schema

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

Game used for a generated official daily price-guide download when no explicit URL is supplied.

## `startUrls` (type: `array`):

Optional official public price-guide JSON or Cardmarket page URLs. Explicit sources take precedence and are never silently substituted. A recognised guide automatically requests its matching public singles catalogue.

## `sourceUrls` (type: `array`):

Compatibility alias for startUrls.

## `urls` (type: `array`):

Compatibility alias for startUrls.

## `url` (type: `string`):

Compatibility alias for one official Cardmarket URL.

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

Maximum unique trend records to emit, from 1 to 500.

## `maxPages` (type: `integer`):

Maximum supplied/generated public Cardmarket source pages to request, from 1 to 20. Any additional supplied source URLs are reported as sourcesSkipped.

## `timeoutMs` (type: `integer`):

Per-request direct HTTPS timeout, from 1000 to 120000 milliseconds.

## `maxRetries` (type: `integer`):

Bounded retries for transient HTTP statuses, from 0 to 2.

## `requestDelayMs` (type: `integer`):

Respectful delay between ordered public page requests, from 0 to 5000 milliseconds.

## Actor input object example

```json
{
  "game": "OnePiece",
  "maxItems": 100,
  "maxPages": 3,
  "timeoutMs": 30000,
  "maxRetries": 1,
  "requestDelayMs": 0
}
```

# Actor output Schema

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

No description

## `summary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/cardmarket-trend-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/cardmarket-trend-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 '{}' |
apify call codingfrontend/cardmarket-trend-scraper --silent --output-dataset

```

## MCP server setup

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