{
  "openapi": "3.0.1",
  "info": {
    "title": "Pokemon TCG Card and Price Scraper",
    "description": "Search Pokemon cards by name, set, rarity, type, illustrator, HP or legality and get TCGplayer prices in USD plus Cardmarket prices in EUR with 7 and 30 day trends. Look up a card list to value a collection. Includes attacks, abilities, images and 7 languages. Export to CSV or Excel.",
    "version": "1.0",
    "x-build-id": "7qpTWVWtGgl3WVgZe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parselab~pokemon-tcg-cards-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parselab-pokemon-tcg-cards-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~pokemon-tcg-cards-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parselab-pokemon-tcg-cards-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~pokemon-tcg-cards-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parselab-pokemon-tcg-cards-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. Sets lists every set with release date, card counts and legality.",
            "default": "cards"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of the card text. Tested languages are en, fr, es, de, it, pt-br and id. Prices are the same in every language, but not every set exists in every language.",
            "default": "en"
          },
          "names": {
            "title": "Card names",
            "type": "array",
            "description": "Search by name, for example Charizard or Pikachu. Partial names work.",
            "items": {
              "type": "string"
            }
          },
          "cardNames": {
            "title": "Card list (collection mode)",
            "type": "array",
            "description": "One card per line for collection mode. Use the name, the name with a set id after a pipe such as Charizard ex|sv03.5, or a card id such as sv03.5-199.",
            "items": {
              "type": "string"
            }
          },
          "sets": {
            "title": "Sets",
            "type": "array",
            "description": "Set ids such as sv03.5, sv08, swsh12 or base1. Run sets mode to see all ids.",
            "items": {
              "type": "string"
            }
          },
          "series": {
            "title": "Series",
            "type": "array",
            "description": "Series ids or names such as sv, swsh, sm, xy or base. Reading a series makes the run a little slower.",
            "items": {
              "type": "string"
            }
          },
          "rarities": {
            "title": "Rarities",
            "type": "array",
            "description": "Exact rarity names such as Special illustration rare, Illustration rare, Double rare, Ultra Rare, Holo Rare or Common.",
            "items": {
              "type": "string"
            }
          },
          "types": {
            "title": "Pokemon types",
            "type": "array",
            "description": "Fire, Water, Grass, Lightning, Psychic, Fighting, Darkness, Metal, Dragon, Fairy or Colorless.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Card categories",
            "type": "array",
            "description": "Pokemon, Trainer or Energy.",
            "items": {
              "type": "string"
            }
          },
          "stages": {
            "title": "Stages",
            "type": "array",
            "description": "Basic, Stage1 or Stage2.",
            "items": {
              "type": "string"
            }
          },
          "illustrators": {
            "title": "Illustrators",
            "type": "array",
            "description": "Illustrator names as printed on the card, for example Mitsuhiro Arita.",
            "items": {
              "type": "string"
            }
          },
          "regulationMarks": {
            "title": "Regulation marks",
            "type": "array",
            "description": "Letters printed on modern cards, such as G, H or I. They show which cards are legal in Standard play.",
            "items": {
              "type": "string"
            }
          },
          "minHp": {
            "title": "Minimum HP",
            "minimum": 0,
            "type": "integer",
            "description": "Only Pokemon with at least this many hit points."
          },
          "maxHp": {
            "title": "Maximum HP",
            "minimum": 0,
            "type": "integer",
            "description": "Only Pokemon with at most this many hit points."
          },
          "standardLegalOnly": {
            "title": "Standard legal only",
            "type": "boolean",
            "description": "Keep only cards that are legal in the Standard format today.",
            "default": false
          },
          "minPriceUsd": {
            "title": "Minimum market price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only cards whose TCGplayer market price is at least this many dollars. Cards without a price are skipped."
          },
          "maxPriceUsd": {
            "title": "Maximum market price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Only cards whose TCGplayer market price is at most this many dollars."
          },
          "sortBy": {
            "title": "Sort cards by",
            "enum": [
              "default",
              "priceUsdDesc",
              "priceUsdAsc",
              "trendEurDesc",
              "priceChange7dDesc"
            ],
            "type": "string",
            "description": "Sorting reads every matching card first, so the run takes longer when many cards match. Price change compares the Cardmarket trend price with the 7 day average.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}