{
  "openapi": "3.0.1",
  "info": {
    "title": "Yu-Gi-Oh Card and Price Scraper",
    "description": "Search Yu-Gi-Oh cards by name, type, attribute, archetype, set, ATK, ban list or price. Get TCGplayer, Cardmarket, eBay, Amazon and CoolStuffInc prices, the price of every printing and rarity, and ban list status. Value a card list in one run. Export to CSV or Excel.",
    "version": "1.0",
    "x-build-id": "gQu6H60pmGw7QJgWN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parselab~yugioh-cards-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parselab-yugioh-cards-prices-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/parselab~yugioh-cards-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parselab-yugioh-cards-prices-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/parselab~yugioh-cards-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parselab-yugioh-cards-prices-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "cards",
              "collection",
              "sets"
            ],
            "type": "string",
            "description": "Cards searches the whole card database with filters. Collection looks up a list of cards and returns the price of each one, or of a chosen printing. Sets lists every set with release date and card count.",
            "default": "cards"
          },
          "names": {
            "title": "Card names",
            "type": "array",
            "description": "Search by name, for example Blue-Eyes or Dark Magician. Partial names work.",
            "items": {
              "type": "string"
            }
          },
          "cardNames": {
            "title": "Card list (collection mode)",
            "type": "array",
            "description": "One card per line for collection mode. Use the exact name, or the name with a set code after a pipe to price one printing, for example Dark Magician|LOB-EN005.",
            "items": {
              "type": "string"
            }
          },
          "cardTypes": {
            "title": "Card types",
            "type": "array",
            "description": "Types such as Effect Monster, Normal Monster, Fusion Monster, Synchro Monster, XYZ Monster, Link Monster, Pendulum Effect Monster, Spell Card or Trap Card.",
            "items": {
              "type": "string"
            }
          },
          "races": {
            "title": "Monster races or spell and trap types",
            "type": "array",
            "description": "Races such as Dragon, Spellcaster, Warrior or Fiend. For spells and traps use Continuous, Quick-Play, Equip, Field, Counter or Normal.",
            "items": {
              "type": "string"
            }
          },
          "attributes": {
            "title": "Attributes",
            "type": "array",
            "description": "DARK, LIGHT, EARTH, WATER, FIRE, WIND or DIVINE.",
            "items": {
              "type": "string"
            }
          },
          "archetype": {
            "title": "Archetype",
            "type": "string",
            "description": "Archetype name such as Blue-Eyes, Dark Magician, Salamangreat or Snake-Eye."
          },
          "setName": {
            "title": "Set name",
            "type": "string",
            "description": "Full set name such as Legend of Blue Eyes White Dragon. The price of each card is then the price of its printing in that set. In sets mode it filters the set list by part of the name."
          },
          "level": {
            "title": "Level, rank or link rating",
            "minimum": 0,
            "maximum": 13,
            "type": "integer",
            "description": "Only monsters with this level, rank or link rating."
          },
          "minAtk": {
            "title": "Minimum ATK",
            "minimum": 0,
            "type": "integer",
            "description": "Only monsters with at least this attack."
          },
          "maxAtk": {
            "title": "Maximum ATK",
            "minimum": 0,
            "type": "integer",
            "description": "Only monsters with at most this attack."
          },
          "minDef": {
            "title": "Minimum DEF",
            "minimum": 0,
            "type": "integer",
            "description": "Only monsters with at least this defense."
          },
          "maxDef": {
            "title": "Maximum DEF",
            "minimum": 0,
            "type": "integer",
            "description": "Only monsters with at most this defense."
          },
          "banlist": {
            "title": "Ban list",
            "enum": [
              "any",
              "tcg",
              "ocg",
              "goat"
            ],
            "type": "string",
            "description": "Keep only cards that appear on a ban list: TCG, OCG or GOAT. The status of the card (Banned, Limited, Semi-Limited) is in the result.",
            "default": "any"
          },
          "stapleOnly": {
            "title": "Staples only",
            "type": "boolean",
            "description": "Keep only cards that are marked as staples, meaning cards used in many decks.",
            "default": false
          },
          "minPriceUsd": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price in dollars. It uses the TCGplayer price of the card, or the price of the most expensive printing when a set name is given."
          },
          "maxPriceUsd": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price in dollars, measured the same way as the minimum price."
          },
          "sortBy": {
            "title": "Sort cards by",
            "enum": [
              "default",
              "priceDesc",
              "priceAsc",
              "atkDesc",
              "popularityDesc",
              "newest"
            ],
            "type": "string",
            "description": "Sorting by price reads all matching cards first. Popularity uses page views on the source site.",
            "default": "default"
          },
          "language": {
            "title": "Card text language",
            "type": "string",
            "description": "Language of card names and texts: en, fr, de, it or pt. English is the default.",
            "default": "en"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}