# TCG Card Prices and Historical Data (`dmbsync/tcg-card-prices-history`) Actor

Batch TCGplayer prices, SKU data and dated history by product ID. Find IDs by name with our TCG Product Finder Actor, then paste its ID list here. Clear timestamps and per-product pricing.

- **URL**: https://apify.com/dmbsync/tcg-card-prices-history.md
- **Developed by:** [TCGAPIs](https://apify.com/dmbsync) (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.00 / 1,000 products

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/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

## TCG Card Prices and Historical Data

Export structured TCGplayer-sourced price data by exact product ID. The Actor returns one result per distinct requested product, suitable for JSON exports and batch integrations. It does not identify cards from photos or guess which printing a name refers to.

### Find product IDs first

If you know the product name but not its ID, use [TCG Product Finder](https://apify.com/dmbsync/tcg-product-finder). It returns all matching products together for one search charge, plus ready-to-copy inputs for this Actor. Check the set, number and printing before choosing which IDs to price.

### Input

```json

{"productIds":[42402],"mode":"prices","historyDays":"30","maxSalesRows":100}

```

- `prices`: available product prices grouped by printing, plus basic product identity.

- `enriched`: also request condition/printing SKU prices, daily product-price snapshots and three-day sales buckets.

- `historyDays`: 30, 90, 365 or 730 days. The window limits returned data; it does not guarantee that every requested date exists.

- `maxSalesRows`: 1–500 per product, default 100. `salesBuckets.truncated` and `totalAvailable` disclose a limited result.

- Up to 1,000 distinct IDs per paid-user run. Free Apify users receive at most 5 products per run. IDs are deduplicated; the order of first occurrence is retained.

### Price meanings

`marketPrice` is a sales-derived market reference. Low, mid and high product-price fields are for-sale listing references. They are not individual completed transactions. Historical product prices are dated snapshots; sales archive rows each represent a SKU and three-day bucket with its own reported quantities, transaction count and sale bounds. Do not sum overlapping buckets as independent transactions.

The source is TCGplayer and monetary values use USD. Source timestamps are preserved. `fetchedAt` is when this Actor prepared the result, not when the source observed the marketplace. Data availability, printings and dates vary; there is no live-price or completeness guarantee.

### Results and charges

Each result reports `deliveryStatus` (`complete`, `partial` or `error`) and section-level error codes. Invalid input fails before upstream requests. Missing products or products with no usable price produce an error row and no product charge.

The **product-price** event covers a usable basic price result. The **product-enriched** event covers a usable price plus all requested enrichment sources. If an enrichment source is missing, only the basic event applies and the delivered row clearly says `partial`. No additional event is charged per internal API call, SKU or historical bucket. The configured event prices are shown in the Pricing tab; any platform start event is listed there separately.

Data is saved before the custom product event is charged. The `priceEvent` output field identifies the applicable price category, not proof of billing; the platform's usage receipt is authoritative. Run spending limits are respected before more upstream work. If a charge or dataset write has an uncertain network outcome, the run stops and fences that item instead of retrying a possible duplicate charge. Keyed results remain in the run's key-value store as `RESULT-<productId>`; `OUTPUT` contains the summary. A migrated run resumes completed work without recharging. A new run is a new delivery.

The Actor uses fixed data-service endpoints, bounded response sizes, sequential product processing, bounded retries, and no proxies. Large combined results fall back to the basic event rather than exceeding dataset item limits.

### Privacy and access

No API key, separate subscription or external login is needed. The Actor uses its managed data connection and accepts only exact product IDs and the documented options. It does not collect account passwords or identify cards from images.

Source data and product availability can vary. This Actor is independent of TCGplayer and does not grant additional rights to third-party content.

# Actor input Schema

## `productIds` (type: `array`):

Exact positive product IDs, deduplicated. Maximum 1,000 per run; free Apify users receive up to 5 as a preview.

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

Enriched delivery requires all requested enrichment sources. Partial enrichment falls back to the basic pricing event.

## `historyDays` (type: `string`):

Date window applied to available stored snapshots and sales buckets. Missing dates are not filled. Availability varies by product.

## `maxSalesRows` (type: `integer`):

Each row is one SKU/three-day bucket, not an individual transaction. Output declares truncation and total available rows.

## Actor input object example

```json
{
  "productIds": [
    42402
  ],
  "mode": "prices",
  "historyDays": "30",
  "maxSalesRows": 100
}
```

# Actor output Schema

## `results` (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("dmbsync/tcg-card-prices-history").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("dmbsync/tcg-card-prices-history").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 dmbsync/tcg-card-prices-history --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dmbsync/tcg-card-prices-history"
        }
    }
}
```

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/6XTA8euIc3eZVL5Pc/builds/lpn0ijp0t63e7g8Vf/openapi.json
