# Ygoprodeck Yu Gi Oh Cards (`bigibyte/ygoprodeck-yu-gi-oh-cards`) Actor

Collect Yu-Gi-Oh card metadata, market prices, and set catalogs using fuzzy search, attributes, or archetypes. Export results to JSON, CSV, or Excel effortlessly.

- **URL**: https://apify.com/bigibyte/ygoprodeck-yu-gi-oh-cards.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

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

## YGOPRODeck Yu-Gi-Oh Cards

![YGOPRODeck Yu-Gi-Oh Cards cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/ygoprodeck-yu-gi-oh-cards-cover.png)

Collect structured **Yu-Gi-Oh! card and set information** with the YGOPRODeck Yu-Gi-Oh Cards Scraper. Search cards by name, filter by type, attribute, race, or archetype, and retrieve card set details and market price information. Export organized results in JSON, CSV, Excel, or other supported dataset formats.

### What This Actor Does

The YGOPRODeck Yu-Gi-Oh Cards Scraper collects card metadata, printing information, images, and available market prices from the YGOPRODeck card database.

Choose from three collection modes:

- **Card Search:** Find cards using full or partial name searches.
- **Card Filters:** Narrow results by archetype, card type, attribute, or race.
- **Card Sets:** Retrieve published Yu-Gi-Oh! card sets with their codes, card counts, release dates, and available images.

Card records include identifiers, names, descriptions, card types, attributes, statistics, set printings, image URLs, and price information. The actor supports pagination, duplicate prevention, request pacing, and error handling to help produce organized datasets.

### Collection Modes

| Mode | Description |
|---|---|
| `search` | Find cards using a partial or full card name. |
| `filter` | Collect cards matching selected archetype, type, attribute, and/or race filters. |
| `sets` | Retrieve available Yu-Gi-Oh! card set information. |

### Input Configuration

#### Input Example

```json
{
  "mode": "search",
  "fname": "dragon",
  "maxItems": 50,
  "requestDelayMs": 500
}
```

#### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Selects the collection mode: `search`, `filter`, or `sets`. |
| `fname` | String | Card name or partial name for fuzzy name searches. |
| `archetype` | String | Filters cards by archetype. |
| `type` | String | Filters cards by card type. |
| `attribute` | String | Filters cards by attribute. |
| `race` | String | Filters cards by race. |
| `maxItems` | Integer | Maximum number of successful records to collect per run. Hard maximum: 1,000. |
| `requestDelayMs` | Integer | Delay between requests in milliseconds. Default: `500`. |

Use the parameters relevant to your selected mode. Card search and filter modes support paginated collection, while set mode retrieves card set information.

### Output Data

The actor returns structured card records and set records, depending on the selected mode.

#### Card Output Example

```json
{
  "cardId": 28596933,
  "name": "A Wingbeat of Giant Dragon",
  "cardType": "Spell Card",
  "humanReadableCardType": "Normal Spell",
  "frameType": "spell",
  "desc": "Return 1 Level 5 or higher Dragon-Type monster you control to the hand, and if you do, destroy all Spell and Trap Cards on the field.",
  "race": "Normal",
  "ygoprodeckUrl": "https://ygoprodeck.com/card/a-wingbeat-of-giant-dragon-2435",
  "cardSets": [
    {
      "set_name": "Dark Beginning 2",
      "set_code": "DB2-EN159",
      "set_rarity": "Common",
      "set_rarity_code": "(C)",
      "set_price": "1.27"
    }
  ],
  "cardImages": [
    {
      "image_url": "https://images.ygoprodeck.com/images/cards/28596933.jpg",
      "image_url_small": "https://images.ygoprodeck.com/images/cards_small/28596933.jpg",
      "image_url_cropped": "https://images.ygoprodeck.com/images/cards_cropped/28596933.jpg"
    }
  ],
  "cardPrices": [
    {
      "cardmarket_price": "0.07",
      "tcgplayer_price": "0.11",
      "ebay_price": "0.99",
      "amazon_price": "0.50",
      "coolstuffinc_price": "0.25"
    }
  ],
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

#### Main Card Fields

| Field | Description |
|---|---|
| `cardId` | Unique card identifier. |
| `name` | Card name. |
| `cardType` | Card type, such as Spell Card, Monster Card, or Trap Card. |
| `humanReadableCardType` | Readable card classification. |
| `frameType` | Card frame category. |
| `desc` | Card description or effect text. |
| `race` | Card race or category provided by the source. |
| `attribute` | Card attribute, when available. |
| `archetype` | Associated card archetype, when available. |
| `cardSets` | Set printings, codes, rarities, and set prices. |
| `cardImages` | Available card image URLs. |
| `cardPrices` | Market price information from supported sources. |
| `ygoprodeckUrl` | Card information page. |
| `scrapedAt` | Timestamp when the record was collected. |

#### Card Set Information

In `sets` mode, the actor collects available set information, including:

- Set name
- Set code
- Card count
- TCG release date
- Set image URL, when available

### Use Cases

- **Deck Research:** Find cards by name and compare their descriptions, types, and available market prices.
- **Archetype Collections:** Build structured card lists for Blue-Eyes, Dark Magician, and other Yu-Gi-Oh! archetypes.
- **Card Set Catalogs:** Collect set names, codes, card counts, and release dates for collection management.
- **Market Price Research:** Gather available price snapshots from supported marketplaces for research and comparison.
- **Card Database Development:** Build searchable card databases, collection tools, and gaming applications.
- **Content and Community Projects:** Prepare card lists and structured information for blogs, fan sites, and research projects.
- **Scheduled Data Refreshes:** Run the actor periodically to refresh card and set information.

### Usage and Limits

- **Collection modes:** Supports card name search, card filtering, and card set collection.
- **Search options:** Use partial card names for fuzzy searches.
- **Filtering:** Combine archetype, type, attribute, and race filters where supported.
- **Maximum records:** Up to 1,000 successful records per run.
- **Pagination:** Card modes retrieve additional results using pagination until the item cap or available results are reached.
- **Duplicate handling:** Duplicate card IDs and set codes are skipped within a run.
- **Price availability:** Market prices depend on the information available from the source and may be missing or outdated.

### Frequently Asked Questions

**What information can I collect?**

You can collect Yu-Gi-Oh! card details, descriptions, types, attributes, archetypes, statistics, set printings, image URLs, and available market prices. You can also retrieve card set information.

**Can I search for cards by partial name?**

Yes. Use the `search` mode and provide a partial or full card name through `fname`.

**Can I filter cards by archetype or type?**

Yes. The `filter` mode supports archetype, type, attribute, and race filters.

**Can I collect complete card set information?**

Yes. Select `sets` mode to retrieve available set names, codes, card counts, release dates, and set images.

**Does the actor collect market prices?**

Yes. Card records include available price fields from supported sources, such as Cardmarket, TCGplayer, eBay, Amazon, and CoolStuffInc. Prices are source-provided snapshots and should not be treated as guaranteed live market quotes.

**Can I export the results to Excel or CSV?**

Yes. Apify datasets support JSON, CSV, Excel, and other available export formats.

**How many records can I collect per run?**

You can collect up to 1,000 successful records per run. Use `maxItems` to control the size of your dataset.

**Can I schedule automatic collection?**

Yes. Use Apify Schedules to refresh card searches, filtered collections, or card set datasets at your preferred intervals.

### Related Tools

Explore more BigiByte data collection tools:

- **Valorant Assets Scraper:** Collect agents, weapons, maps, bundles, and related game asset information.
- **HowLongToBeat Scraper:** Retrieve video game information and community statistics.
- **AniList Anime Scraper:** Collect anime catalog information and related metadata.
- **Microsoft Store Apps Scraper:** Gather app listings, ratings, descriptions, and publisher details.

Need a scraper tailored to your business, research, or data collection workflow? **BigiByte** builds custom web scrapers and data solutions to help you collect, organize, and export structured information efficiently.

Visit [BigiByte](https://bigibyte.com) to explore custom scraping solutions.

### Trademark Notice

YGOPRODeck, Yu-Gi-Oh!, Konami, and all related names, logos, card artwork, and trademarks belong to their respective owners. These names are used only to identify the source and subject of the collected information. Their use does not imply affiliation, sponsorship, endorsement, or partnership.

### Disclaimer

The YGOPRODeck Yu-Gi-Oh Cards Scraper is an independent data collection tool. It is not affiliated with, endorsed by, sponsored by, or officially associated with YGOPRODeck, Konami, or their owners. Collected information is provided for research and informational purposes. Users are responsible for reviewing applicable terms, licensing conditions, intellectual property rights, and other requirements before using or redistributing collected data.

### Is Web Scraping Legal?

This actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal Data:** Follow applicable privacy laws, including GDPR and CCPA, when collecting or processing personal information.
- **Copyrighted Content:** Card artwork, descriptions, images, and other creative materials may be protected by copyright. Check applicable permissions before reusing or redistributing them.
- **Platform Terms and Rate Limits:** Respect the source's terms, usage restrictions, and stated request limits.

This information is provided for general educational purposes only and does not constitute legal advice.

For more information, read Apify's guide: [Is Web Scraping Legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to collect. Search by fuzzy name, filter cards, or list card sets.

## `fname` (type: `string`):

Fuzzy card name (`fname=`). Used in search mode.

## `archetype` (type: `string`):

Archetype filter (`archetype=`). Used in filter mode.

## `cardType` (type: `string`):

Card type filter (`type=`), for example Effect Monster. Used in filter mode.

## `attribute` (type: `string`):

Attribute filter (`attribute=`). Used in filter mode.

## `race` (type: `string`):

Race filter (`race=`). Used in filter mode.

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

Stop after this many successful rows. Hard max is 1000.

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

Milliseconds to wait between requests. Raise if you see 429.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "search",
  "fname": "dragon",
  "archetype": "Blue-Eyes",
  "maxItems": 100,
  "requestDelayMs": 500,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

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

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "fname": "dragon",
    "archetype": "Blue-Eyes"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/ygoprodeck-yu-gi-oh-cards").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 = {
    "fname": "dragon",
    "archetype": "Blue-Eyes",
}

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/ygoprodeck-yu-gi-oh-cards").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 '{
  "fname": "dragon",
  "archetype": "Blue-Eyes"
}' |
apify call bigibyte/ygoprodeck-yu-gi-oh-cards --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/ygoprodeck-yu-gi-oh-cards"
        }
    }
}
```

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/KDiaG3bsvaz76Y03f/builds/kDhL1lqDAIT1Kyoiv/openapi.json
