# Yu-Gi-Oh Cards Scraper (YGOPRODeck) (`ninhothedev/yugioh-scraper`) Actor

$0.5/1K 🔥 Fast Yu-Gi-Oh cards scraper! ATK, DEF, type, archetype, prices & images (YGOPRODeck). No key. JSON, CSV, Excel or API in seconds. Search or list cards & pull thousands for TCG apps & pricing ⚡

- **URL**: https://apify.com/ninhothedev/yugioh-scraper.md
- **Developed by:** [ninhothedev](https://apify.com/ninhothedev) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 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/actors/running/actors-in-store.md#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

## Yu-Gi-Oh Cards Scraper (YGOPRODeck)

Scrape **Yu-Gi-Oh! Trading Card Game** data from [YGOPRODeck](https://ygoprodeck.com/) — card
stats, types, prices and images — as clean, structured JSON. Fuzzy-search by name or pull exact
cards by name. No API key, no login, datacenter-proxy friendly.

Perfect for **deck builders, TCG price apps, card-value trackers, collectors and data scientists**
who need reliable Yu-Gi-Oh card data on demand.

### Features

- **Two modes** — `search` (fuzzy substring over card names) and `cards` (exact-name lookups).
- **Full card stats** — ATK, DEF, level, race, attribute, archetype, type and frame type.
- **Live prices** — TCGplayer and Cardmarket prices per card.
- **Images** — direct high-resolution card image URLs.
- **Clean JSON output** — one row per card, every field nullable, ready for CSV/Excel/API export.
- **Fast & cheap** — hits the official clean JSON API; runs on 512 MB, no residential proxy required.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `mode` | select | `search` (fuzzy name substring) or `cards` (exact names). |
| `query` | string | Substring to match in `search` mode, e.g. `dragon`. |
| `names` | array | Exact card names in `cards` mode, e.g. `["Dark Magician","Blue-Eyes White Dragon"]`. |
| `maxItems` | integer | Max cards to scrape (default 100, max 1000). |

#### Example input

```json
{
  "mode": "search",
  "query": "dragon",
  "maxItems": 100
}
```

```json
{
  "mode": "cards",
  "names": ["Dark Magician", "Blue-Eyes White Dragon"]
}
```

### Output

Each dataset item looks like:

```json
{
  "id": 46986414,
  "name": "Dark Magician",
  "type": "Normal Monster",
  "frame_type": "normal",
  "description": "The ultimate wizard in terms of attack and defense.",
  "atk": 2500,
  "def": 2100,
  "level": 7,
  "race": "Spellcaster",
  "attribute": "DARK",
  "archetype": "Dark Magician",
  "image": "https://images.ygoprodeck.com/images/cards/46986414.jpg",
  "tcgplayer_price": 0.24,
  "cardmarket_price": 0.02,
  "url": "https://ygoprodeck.com/card/?search=Dark%20Magician",
  "scraped_at": "2026-07-18T10:00:00+00:00"
}
```

### Pricing

Runs on the Apify platform pay-per-use. Expect roughly **~$0.5 per 1,000 cards** depending on
your plan — the actor uses a clean JSON API and 512 MB of memory, so runs are fast and cheap.

### Use cases

- **TCG & deck-builder apps** — power search, filters and card detail pages.
- **Card pricing & value tracking** — monitor TCGplayer / Cardmarket prices over time.
- **Collectors** — export your wishlist or collection with current prices and images.
- **Datasets & research** — build Yu-Gi-Oh datasets for analytics or ML.

### Comparison

| | This actor | Manual scraping | Unofficial libraries |
|--|--|--|--|
| Setup | None, just input | Write & maintain code | Install + code |
| Prices & images | Included | DIY | Sometimes |
| Structured JSON | Yes | DIY | Varies |
| Maintenance | Handled | You | Community |

### Related actors

- [Scryfall MTG Scraper](https://apify.com/ninhothedev/scryfall-mtg-scraper) — Magic: The Gathering cards.
- [BrickLink Scraper](https://apify.com/ninhothedev/bricklink-scraper) — LEGO parts, sets and prices.
- [Pokemon Scraper](https://apify.com/ninhothedev/pokemon-scraper) — Pokemon data and card info.
- [Discogs Scraper](https://apify.com/ninhothedev/discogs-scraper) — music releases and marketplace data.

**Keywords:** yugioh scraper, yu-gi-oh api, ygoprodeck, tcg card prices, card scraper, trading card
game, deck builder data, cardmarket prices, tcgplayer prices, yugioh dataset.

### Data & legal

This actor collects publicly available card data from YGOPRODeck. Use responsibly and comply with
YGOPRODeck's terms and applicable laws. Yu-Gi-Oh! is a trademark of its respective owners; this
actor is not affiliated with or endorsed by them.

# Actor input Schema

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

How to fetch cards. 'search' does a fuzzy substring search over card names using the query below. 'cards' looks up exact card names from the names list.

## `query` (type: `string`):

Substring to match against card names in 'search' mode (e.g. 'dragon' matches every card with 'dragon' in its name). Ignored in 'cards' mode.

## `names` (type: `array`):

List of exact card names to fetch in 'cards' mode, one card per name. Ignored in 'search' mode.

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

Maximum number of cards to scrape. Capped at 1000.

## Actor input object example

```json
{
  "mode": "search",
  "query": "dragon",
  "names": [
    "Dark Magician",
    "Blue-Eyes White Dragon"
  ],
  "maxItems": 100
}
```

# 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 = {
    "query": "dragon",
    "names": [
        "Dark Magician",
        "Blue-Eyes White Dragon"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ninhothedev/yugioh-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 = {
    "query": "dragon",
    "names": [
        "Dark Magician",
        "Blue-Eyes White Dragon",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("ninhothedev/yugioh-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 '{
  "query": "dragon",
  "names": [
    "Dark Magician",
    "Blue-Eyes White Dragon"
  ]
}' |
apify call ninhothedev/yugioh-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ninhothedev/yugioh-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/7f9O8HgLSbj1oJe0X/builds/6NbeHAbzHIchD27kf/openapi.json
