# Pokemon TCG Price & Arbitrage Engine (TCGplayer & Cardmarket) (`b.arzola/pokemon-tcg-arbitrage-engine`) Actor

Extract real-time Pokemon TCG market prices from TCGplayer (USD) and Cardmarket (EUR), compare Holo/Reverse/Normal variants, and calculate instant US-EU arbitrage and dealer buylist spreads.

- **URL**: https://apify.com/b.arzola/pokemon-tcg-arbitrage-engine.md
- **Developed by:** [Benjamin Arzola](https://apify.com/b.arzola) (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.00 / 1,000 pokemon card variant analyzeds

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

## Pokemon TCG Price, Buylist & Cross-Market Arbitrage Engine (TCGplayer + Cardmarket)

Unlike basic single-site scrapers that only pull raw listings from **TCGplayer** or **Cardmarket** separately, this all-in-one **Pokemon TCG Market Intelligence & Arbitrage Engine** cross-references US and European marketplaces in real time to detect actionable **transatlantic arbitrage spreads**, **undervalued TCGplayer lows**, **7-day vs. 30-day momentum spikes**, and **dealer buylist cash/credit valuations**.

### 🚀 Why Use This Actor Over Basic Pokemon Scrapers?

- **Cross-Market Arbitrage (US vs. EU):** Automatically compares **TCGplayer Market/Low (USD)** against **Cardmarket Price Trends & Lows (EUR -> USD)** in a single normalized row.
- **7d/30d Price Spike & Momentum Detector:** Tracks `price_momentum_7d_vs_30d_pct` to spot tournament buyouts (Limitless TCG meta shifts) and collector buyouts before prices adjust globally.
- **All Printing Variants Supported:** Analyzes `normal`, `holofoil`, `reverseHolofoil`, `1stEditionHolofoil`, and Special Illustration Rares (SIR / Alt Arts).
- **Dealer Buylist & Trade-In Estimator:** Calculates realistic Cash and Store Credit payout benchmarks alongside net flip ROI after platform fees (12.5%).
- **Limitless TCG Decklist & Set Query Compatible:** Paste Pokemon names (`Umbreon VMAX`), Limitless decklist lines (`3 Charizard ex OBF 125`), or full expansion queries (`set.id:sv3pt5` for Scarlet & Violet 151).

### 📊 Sample Output

````json
{
  "card_name": "Umbreon VMAX",
  "set_code": "EVS",
  "set_name": "Evolving Skies",
  "collector_number": "215",
  "rarity": "Rare Rainbow",
  "printing_variant": "holofoil",
  "tcgplayer_market_usd": 945.50,
  "tcgplayer_low_usd": 880.00,
  "cardmarket_trend_eur": 760.00,
  "cardmarket_usd_equiv": 820.80,
  "price_momentum_7d_vs_30d_pct": 12.4,
  "dealer_buylist_cash_usd": 614.58,
  "dealer_buylist_credit_usd": 786.66,
  "us_eu_arbitrage_spread_usd": 124.70,
  "estimated_net_profit_usd": 6.51,
  "roi_percentage": 0.8,
  "arbitrage_signal": "ARBITRAGE_BUY_EU_SELL_US"
}



# Actor input Schema

## `cardQueries` (type: `array`):

Enter Pokemon card names (e.g. 'Charizard ex', 'Umbreon VMAX', 'Pikachu') or search filters (e.g. 'set.id:sv3pt5' for Scarlet & Violet 151).
## `minPriceUsd` (type: `number`):

Filter out bulk Pokemon cards below this USD threshold
## `includeReverseHolos` (type: `boolean`):

Whether to analyze Reverse Holofoil and 1st Edition printings alongside Normal/Holofoil versions
## `onlyShowArbitrageOpportunities` (type: `boolean`):

Filters out standard cards and only outputs strong US-EU arbitrage or high liquidity spreads.
## `maxCardsPerQuery` (type: `integer`):

Maximum number of Pokemon card printings to fetch per query search

## Actor input object example

```json
{
  "cardQueries": [
    "Umbreon VMAX",
    "Charizard ex",
    "Giratina V"
  ],
  "minPriceUsd": 5,
  "includeReverseHolos": true,
  "onlyShowArbitrageOpportunities": false,
  "maxCardsPerQuery": 25
}
````

# Actor output Schema

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

Dataset containing analyzed Pokemon TCG printings, TCGplayer USD prices, Cardmarket EUR trends, and arbitrage spreads.

# 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("b.arzola/pokemon-tcg-arbitrage-engine").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("b.arzola/pokemon-tcg-arbitrage-engine").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 b.arzola/pokemon-tcg-arbitrage-engine --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b.arzola/pokemon-tcg-arbitrage-engine"
        }
    }
}
```

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/OJMqlOIx227U70z22/builds/jqLc3O2Or3lrxCO0Q/openapi.json
