{
  "openapi": "3.0.1",
  "info": {
    "title": "TCGplayer Scraper: Card Prices, Sales & Price History",
    "description": "TCGplayer card prices for Pokemon, Magic, Yu-Gi-Oh, Lorcana, One Piece and more: price by condition and printing, latest sales and 90-day history, by card name, set or URL. $2.10 per 1,000 cards.",
    "version": "0.0",
    "x-build-id": "DNm1OYQp3zzQSgbIj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~tcgplayer-card-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-tcgplayer-card-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/scrapebench~tcgplayer-card-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-tcgplayer-card-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/scrapebench~tcgplayer-card-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-tcgplayer-card-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": {
          "queries": {
            "title": "Card names",
            "type": "array",
            "description": "Card or product names to search, one per line (Charizard ex, Sol Ring, Dark Magician). Each search returns up to Maximum results products; a product found twice is returned and charged once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Card name (single)",
            "type": "string",
            "description": "One card name, for saved tasks and API calls that send a single value. Use Card names above for several."
          },
          "sets": {
            "title": "Sets",
            "type": "array",
            "description": "Whole sets to export, one per line, by the name TCGplayer shows (Commander Legends, Scarlet & Violet 151). With a card name too, the name is searched inside each set. Pick the game below for the surest match.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "set": {
            "title": "Set (single)",
            "type": "string",
            "description": "One set name, for saved tasks and API calls that send a single value."
          },
          "productUrls": {
            "title": "TCGplayer URLs or product ids",
            "type": "array",
            "description": "Product pages (https://www.tcgplayer.com/product/219058/...) or bare product ids, one per line. A TCGplayer search page URL works too: its words, game and set are used as the search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "game": {
            "title": "Game",
            "type": "string",
            "description": "Only this game: pokemon, magic, yugioh, lorcana, one-piece, pokemon-japan, digimon, flesh-and-blood, star-wars-unlimited, or any other TCGplayer product line. Empty means any game. With no name or set, returns the game's most valuable cards."
          },
          "cardsOnly": {
            "title": "Cards only",
            "type": "boolean",
            "description": "Leave on to skip sealed product (booster boxes, packs, tins) and supplies. Turn off to include them.",
            "default": true
          },
          "rarity": {
            "title": "Rarity",
            "type": "string",
            "description": "Only this rarity, as TCGplayer words it (Mythic, Secret Rare, Double Rare, Ultra Rare)."
          },
          "minPrice": {
            "title": "Minimum market price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products whose market price is at least this."
          },
          "maxPrice": {
            "title": "Maximum market price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products whose market price is at most this."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "auto",
              "market_price_desc",
              "market_price_asc",
              "relevance"
            ],
            "type": "string",
            "description": "auto: best match for a card name, most valuable first for a set or game.",
            "default": "auto"
          },
          "maxResults": {
            "title": "Maximum results per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on products for EACH card name or set. TCGplayer shows 10,000 results per search; a game-wide export above that is walked set by set.",
            "default": 100
          },
          "includeSales": {
            "title": "Latest sales",
            "type": "boolean",
            "description": "Also return each product's latest sales as rows: date, condition, printing, language, quantity, price and shipping. Charged per sale.",
            "default": false
          },
          "maxSalesPerCard": {
            "title": "Maximum sales per product",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap on sale rows per product, newest first (up to about 5 per condition).",
            "default": 25
          },
          "includeHistory": {
            "title": "Price history",
            "type": "boolean",
            "description": "Also return 90 days of price history per condition and printing, in 3-day steps: market price, quantity sold, low and high sale. Charged once per product.",
            "default": false
          },
          "compareWithPreviousRun": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Fill previous_price and price_change_pct from the last run that saw each product. The first run only saves prices.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: leave off. Turn on a proxy only if your runs are refused.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}