{
  "openapi": "3.0.1",
  "info": {
    "title": "TCGplayer Price Monitor & Scraper - Pokemon, Yu-Gi-Oh!, Magic",
    "description": "For card collectors, resellers and shops: schedule it hourly or daily and get only new cards, price drops and price rises from TCGplayer, with the old price. Market price, lowest price with shipping and listings in USD for Pokemon, Magic, Yu-Gi-Oh!, One Piece, Lorcana. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "f7G49i1pCHWf6Vvlh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~tcgplayer-price-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-tcgplayer-price-monitor",
        "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/neverempty~tcgplayer-price-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-tcgplayer-price-monitor",
        "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/neverempty~tcgplayer-price-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-tcgplayer-price-monitor",
        "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": "Cards to search (name, TCGplayer search URL or product URL)",
            "type": "array",
            "description": "One per line: a card or product name as you would type it on TCGplayer (charizard, black lotus, blue-eyes white dragon), the URL of a TCGplayer search page with your filters already set, or the URL of a product page to watch that exact card. Up to 50 searches and 1,000 product URLs per run. Leave it empty to run the example: 20 Pokemon products for charizard.",
            "items": {
              "type": "string"
            }
          },
          "monitoringMode": {
            "title": "Watch mode: only new cards, price drops and price rises",
            "type": "boolean",
            "description": "For schedules (hourly or daily). The first run returns the current products marked new and remembers their prices. Each later run returns only products that are new to the search (changeType new), cheaper than last time (price_drop) or pricier (price_up) with the previous price and the change in % , or have no listings left or dropped out of the search (removed). A run with no changes returns one free row that says so.",
            "default": false
          },
          "game": {
            "title": "Game",
            "type": "string",
            "description": "Only products from this game, as named on TCGplayer: pokemon, pokemon-japan, magic (or mtg), yugioh, one-piece-card-game, lorcana, flesh-and-blood-tcg, digimon-card-game, star-wars-unlimited and the other games TCGplayer lists. Empty = all games."
          },
          "setName": {
            "title": "Sets",
            "type": "array",
            "description": "Only products from these sets, as named on TCGplayer, for example Scarlet & Violet 151 or Bloomburrow. Empty = all sets.",
            "items": {
              "type": "string"
            }
          },
          "rarity": {
            "title": "Rarities",
            "type": "array",
            "description": "Only products with these rarities, as shown on TCGplayer, for example Special Illustration Rare, Mythic, Secret Rare. Empty = all rarities.",
            "items": {
              "type": "string"
            }
          },
          "productType": {
            "title": "Product type",
            "enum": [
              "all",
              "cards",
              "sealed"
            ],
            "type": "string",
            "description": "Single cards, sealed products, or both.",
            "default": "all"
          },
          "condition": {
            "title": "Card condition of the lowest price",
            "type": "array",
            "description": "The lowest price and the listing count use only listings in these conditions, for example Near Mint. Empty = any condition.",
            "items": {
              "type": "string",
              "enum": [
                "Near Mint",
                "Lightly Played",
                "Moderately Played",
                "Heavily Played",
                "Damaged",
                "Unopened"
              ]
            }
          },
          "language": {
            "title": "Card language of the lowest price",
            "type": "array",
            "description": "The lowest price and the listing count use only listings in these languages, for example English or Japanese. Empty = any language.",
            "items": {
              "type": "string"
            }
          },
          "printing": {
            "title": "Printing of the lowest price",
            "type": "array",
            "description": "The lowest price and the listing count use only listings with this printing, for example Normal, Holofoil, Reverse Holofoil, 1st Edition or Foil. Empty = any printing.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Market price from (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only products with a TCGplayer market price of at least this many US dollars, for example 20."
          },
          "maxPrice": {
            "title": "Market price up to (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only products with a TCGplayer market price of at most this many US dollars, for example 500."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "bestMatch",
              "bestSelling",
              "priceHighLow",
              "priceLowHigh",
              "nameAZ"
            ],
            "type": "string",
            "description": "The order TCGplayer lists the results in. With a maximum per search set, it decides which products you get and which ones a watch covers. When every product of a search is wanted, or in watch mode, best match and best selling are read in name order, so none are skipped and every watch run covers the same products.",
            "default": "bestMatch"
          },
          "maxResultsPerSearch": {
            "title": "Max products per search",
            "minimum": 1,
            "maximum": 9999,
            "type": "integer",
            "description": "How many products to return for each search (in watch mode: how many products to watch). Empty = 100. TCGplayer shows at most 9,999 per search; split larger searches by set. Each product is returned once per run, even if two searches overlap."
          },
          "compareOn": {
            "title": "Watch: which price to compare",
            "enum": [
              "lowestPrice",
              "lowestPriceWithShipping",
              "marketPrice"
            ],
            "type": "string",
            "description": "The price a watch compares with the last run to decide price_drop or price_up.",
            "default": "lowestPrice"
          },
          "minChangePercent": {
            "title": "Watch: smallest price change to report (%)",
            "minimum": 0,
            "maximum": 1000,
            "type": "number",
            "description": "Report a price drop or rise only when the price moved at least this much since it was last reported, for example 5 for 5%. Small moves add up: a card that drops 1% a day is reported once the total reaches this.",
            "default": 1
          },
          "includeUnchanged": {
            "title": "Watch: also return unchanged products",
            "type": "boolean",
            "description": "Return every watched product on every run, with changeType unchanged for those that did not move. Off = only changes (cheaper runs).",
            "default": false
          },
          "includeSellerCount": {
            "title": "Add the number of sellers",
            "type": "boolean",
            "description": "Fill sellerCount for each returned product. Takes one extra request per returned product, so runs take longer.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Give each scheduled task its own name so two watches of the same search keep separate memories."
          },
          "resetMonitoringState": {
            "title": "Start the watch over",
            "type": "boolean",
            "description": "Forget what this watch has already returned. The next run behaves like a first run.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}