{
  "openapi": "3.0.1",
  "info": {
    "title": "TCGplayer Scraper — Card Prices, History & Sales",
    "description": "Collect TCGplayer card market prices, listed medians, buylist bids, SKU price history and recent sales for Pokémon, Magic, Yu-Gi-Oh, One Piece and more. Search by product line or supply product IDs and URLs.",
    "version": "0.1",
    "x-build-id": "aLd3TH9lWfJpJmudq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s-r~tcgplayer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s-r-tcgplayer-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/s-r~tcgplayer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s-r-tcgplayer-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/s-r~tcgplayer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s-r-tcgplayer-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Search terms. Provide at least one query, product ID or product URL.",
            "items": {
              "type": "string"
            }
          },
          "productLine": {
            "title": "Productline",
            "enum": [
              "akora",
              "alpha-clash",
              "alternate-souls",
              "argent-saga-tcg",
              "bakugan-tcg",
              "battle-spirits-saga",
              "books",
              "bulk-lots",
              "card-sleeves",
              "card-storage-tins",
              "cardfight-vanguard",
              "chrono-clash-system",
              "collectible-storage",
              "cookierun-braverse-tcg",
              "cyberpunk-tcg",
              "d-and-d-miniatures",
              "deck-boxes",
              "dice-masters",
              "digimon-card-game",
              "dragoborne",
              "dragon-ball-super-ccg",
              "dragon-ball-super-fusion-world",
              "dragon-ball-z-tcg",
              "elestrals",
              "exodus-tcg",
              "final-fantasy-tcg",
              "flesh-and-blood-tcg",
              "force-of-will",
              "funko",
              "future-card-buddyfight",
              "gate-ruler",
              "godzilla-card-game",
              "grand-archive",
              "gundam-card-game",
              "heroclix",
              "hololive-official-card-game",
              "keyforge",
              "kryptik-tcg",
              "life-counters",
              "lightseekers-tcg",
              "lorcana-tcg",
              "magic",
              "metax-tcg",
              "metazoo",
              "munchkin-ccg",
              "my-little-pony-ccg",
              "naruto-card-game",
              "one-piece-card-game",
              "palworld-official-card-game",
              "playmats",
              "pokemon",
              "pokemon-japan",
              "protective-pages",
              "riftbound-league-of-legends-trading-card-game",
              "shadowverse-evolve",
              "sorcery-contested-realm",
              "star-wars-destiny",
              "star-wars-unlimited",
              "storage-albums",
              "supply-bundles",
              "tcgplayer-supplies",
              "the-caster-chronicles",
              "transformers-tcg",
              "union-arena",
              "universus",
              "warhammer-age-of-sigmar-champions-tcg",
              "weiss-schwarz",
              "wixoss",
              "wow",
              "yugioh",
              "zombie-world-order-tcg",
              "onepiece",
              "lorcana",
              "digimon",
              "fleshandblood",
              "starwars"
            ],
            "type": "string",
            "description": "TCGplayer product line slug. Aliases onepiece, lorcana, digimon, fleshandblood and starwars are accepted."
          },
          "productIds": {
            "title": "Product IDs",
            "type": "array",
            "description": "Positive TCGplayer product IDs, as integers or decimal strings. Duplicate IDs are processed once."
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "HTTPS tcgplayer.com/product/ URLs. Products are identified by their numeric ID.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sortby",
            "enum": [
              "bestMatch",
              "priceHighLow",
              "priceLowHigh",
              "aToZ"
            ],
            "type": "string",
            "description": "Search sort order.",
            "default": "bestMatch"
          },
          "maxResults": {
            "title": "Maxresults",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum unique products across all IDs, URLs and search queries, including cursor continuations. Price rows are additional.",
            "default": 50
          },
          "includePrices": {
            "title": "Includeprices",
            "type": "boolean",
            "description": "Include printing market prices, listed medians and SKU buylist prices.",
            "default": true
          },
          "includeHistory": {
            "title": "Includehistory",
            "type": "boolean",
            "description": "Emit one history price_point per SKU and price bucket. This can produce hundreds of rows per product.",
            "default": false
          },
          "historyRange": {
            "title": "Historyrange",
            "enum": [
              "month",
              "quarter",
              "semi-annual",
              "annual"
            ],
            "type": "string",
            "description": "History range: month uses daily buckets, quarter three-day buckets, semi-annual and annual weekly buckets.",
            "default": "quarter"
          },
          "includeSales": {
            "title": "Includesales",
            "type": "boolean",
            "description": "Emit recent sales as price_point rows for the product's SKU conditions, including Unopened for sealed products. Without SKU details, all six conditions are queried.",
            "default": false
          },
          "maxSalesPerProduct": {
            "title": "Maxsalesperproduct",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum sale rows per product. Anonymous source access exposes at most five sales per condition, up to 25 total.",
            "default": 25
          },
          "cursor": {
            "title": "Cursor",
            "maxLength": 300000,
            "type": "string",
            "description": "Continuation token returned by the previous request. Resend with the original input; omit on the first request."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}