# MTGGoldfish Scraper - MTG Card Prices & Price History (`lulzasaur/mtggoldfish-scraper`) Actor

Look up Magic: The Gathering card prices on MTGGoldfish by name. Paper (tabletop) USD + MTGO tix prices for every printing, plus daily price history, trend stats, spread, highest buylist and foil multiplier.

- **URL**: https://apify.com/lulzasaur/mtggoldfish-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 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

## MTGGoldfish Scraper — MTG Card Prices & Price History

Look up Magic: The Gathering card prices on [MTGGoldfish](https://www.mtggoldfish.com) by card name. For every printing of a card (set, promo, foil, borderless, etched, and other treatments) you get the current **paper (tabletop) USD price**, the current **MTGO tix price**, **daily price history**, and rich trend statistics.

### Features

- **Search by card name** — partial names work; every matching printing is returned with set, set code, collector number, finish and treatment tags
- **Paper + MTGO prices** — current tabletop USD price and Magic Online tix price for each printing
- **Daily price history** — configurable window (default 30 days, up to the full multi-year series MTGGoldfish tracks) for both paper and MTGO
- **Trend statistics** — daily change, weekly change, all-time high, all-time low
- **Market depth signals** — buylist spread %, highest buylist offer, foil multiplier
- **Card images and canonical MTGGoldfish price-page URLs**

### Input

```json
{
    "cardNames": ["Ragavan, Nimble Pilferer", "Sheoldred, the Apocalypse"],
    "maxPrintingsPerCard": 6,
    "includePriceHistory": true,
    "historyDays": 30
}
```

| Field | Type | Default | Description |
|---|---|---|---|
| `cardNames` | array | `["Ragavan, Nimble Pilferer"]` | Card names to look up (partial names OK) |
| `maxPrintingsPerCard` | integer | `6` | Max printings (set/finish variants) per card name |
| `includePriceHistory` | boolean | `true` | Include daily price history arrays |
| `historyDays` | integer | `30` | Most recent days of history per record (`0` = full history) |

### Output

One record per printing:

```json
{
    "name": "Ragavan, Nimble Pilferer",
    "cardId": "Ragavan, Nimble Pilferer [MH2]",
    "set": "Modern Horizons 2",
    "setCode": "MH2",
    "cardNumber": 138,
    "finish": "Regular",
    "tags": [],
    "paperPrice": 47.17,
    "paperCurrency": "USD",
    "paperDailyChange": -0.37,
    "paperWeeklyChange": -0.72,
    "paperAllTimeHigh": 96.61,
    "paperAllTimeLow": 23.64,
    "spreadPercent": 41,
    "highestBuylist": 28.0,
    "foilMultiplier": 1.33,
    "onlinePriceTix": 8.36,
    "paperPriceHistory": [{ "date": "2026-07-27", "price": 47.43 }],
    "onlinePriceHistory": [{ "date": "2026-07-27", "price": 8.36 }],
    "imageUrl": "https://cards.mtggoldfish.com/images/.../card_image.webp",
    "url": "https://www.mtggoldfish.com/price/modern-horizons-2/138/ragavan-nimble-pilferer",
    "searchQuery": "Ragavan, Nimble Pilferer"
}
```

### Use cases

- **Collection valuation** — price an MTG collection with a single batch run
- **Price alerts & trend tracking** — monitor spikes, buyouts and reprint dips with daily history
- **Arbitrage** — compare retail price against highest buylist and spread
- **MTGO finance** — track tix prices alongside paper
- **Deck pricing** — feed decklists in as card names and sum the results

### Notes

- Prices are MTGGoldfish market prices (paper in USD, online in MTGO tix).
- Cards with no recorded price data are skipped rather than emitted as empty rows.
- Proxies are usually unnecessary; the endpoints used are served openly.

# Actor input Schema

## `cardNames` (type: `array`):

Magic: The Gathering card names to look up (e.g. 'Ragavan, Nimble Pilferer', 'Black Lotus'). Partial names work — each query is matched against MTGGoldfish's card search and matching printings are returned.

## `maxPrintingsPerCard` (type: `integer`):

Maximum number of printings (set/finish variants) to scrape per card name. Popular cards can have 20+ printings across sets, promos, foils and special treatments.

## `includePriceHistory` (type: `boolean`):

If enabled, includes a daily price history array (date + price) for both paper and MTGO in each record.

## `historyDays` (type: `integer`):

Number of most recent days of price history to include per record (MTGGoldfish tracks years of daily prices). Set to 0 for the full available history.

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

Proxy settings. MTGGoldfish serves its search and price-history endpoints openly, so proxies are usually not needed.

## Actor input object example

```json
{
  "cardNames": [
    "Ragavan, Nimble Pilferer"
  ],
  "maxPrintingsPerCard": 6,
  "includePriceHistory": true,
  "historyDays": 30,
  "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 = {
    "cardNames": [
        "Ragavan, Nimble Pilferer"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/mtggoldfish-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 = { "cardNames": ["Ragavan, Nimble Pilferer"] }

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/mtggoldfish-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 '{
  "cardNames": [
    "Ragavan, Nimble Pilferer"
  ]
}' |
apify call lulzasaur/mtggoldfish-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/KykhDmU2nzdsTjfwl/builds/QHSysD4zbP3fCGbht/openapi.json
