{
  "openapi": "3.0.1",
  "info": {
    "title": "LigaPokemon Scraper: Pokémon Card Prices in BRL, Decks & Drops",
    "description": "Pokémon card and sealed product prices from LigaPokemon, Brazil's top TCG marketplace, in BRL (preço de cartas Pokémon). Batch searches, deck lists with totals, exact-printing lookup, supply depth, last sale, deal scores, USD/EUR conversion and price-drop monitoring.",
    "version": "0.1",
    "x-build-id": "3MfF5x9fQa9utRd7a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~ligapokemon-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-ligapokemon-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/getascraper~ligapokemon-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-ligapokemon-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/getascraper~ligapokemon-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-ligapokemon-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": {
          "startUrls": {
            "title": "LigaPokemon links",
            "type": "array",
            "description": "Optional. Paste LigaPokemon card pages, sealed-product pages or search links. Each link gives you exactly that item, with no searching.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "decklist": {
            "title": "Card list (deck, binder or wishlist)",
            "type": "string",
            "description": "One card per line, for example \"4 Charizard ex (125/197) OBF\" or \"2x Pikachu V\". Quantity, collector number and set code are optional; with a number or set code only that exact printing is returned. You also get each line's value and the grand total. Lines that match nothing are listed in the run summary and are not charged.",
            "default": ""
          },
          "queries": {
            "title": "Card or product searches",
            "minItems": 0,
            "maxItems": 100,
            "type": "array",
            "description": "Card or sealed-product names to search for, one per entry (for example \"Charizard ex\" or \"Booster Box Escarlate e Violeta\"). Add up to 100 and get them all back from one run. Use \"Name (number/size)\" such as \"Pikachu ex (001/021)\" to jump straight to one printing.",
            "default": [
              "Charizard ex",
              "Pikachu ex (001/021)"
            ],
            "items": {
              "type": "string"
            }
          },
          "itemTypes": {
            "title": "What to return",
            "enum": [
              "all",
              "cards",
              "products"
            ],
            "type": "string",
            "description": "Single cards, sealed products, or both.",
            "default": "all"
          },
          "editionCodes": {
            "title": "Set codes",
            "type": "array",
            "description": "Only keep cards from these sets, for example OBF or SVC. Leave empty for all sets.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "any",
              "DE",
              "ES",
              "FR",
              "ID",
              "EN",
              "IT",
              "JP",
              "KO",
              "PT",
              "PTEN",
              "RU",
              "TH",
              "TW"
            ],
            "type": "string",
            "description": "Printed language. Filters seller offers, and sealed products by the language shown in their name. The market price range of single cards covers all languages. Accepts a code (EN, PT, JP) or a word such as english.",
            "default": "any"
          },
          "condition": {
            "title": "Card condition",
            "enum": [
              "any",
              "M",
              "NM",
              "SP",
              "MP",
              "HP",
              "D"
            ],
            "type": "string",
            "description": "Only keep seller offers in this condition. Applies to seller offers when they are turned on; the market price range always covers all conditions.",
            "default": "any"
          },
          "minAvgPriceBrl": {
            "title": "Minimum average price (BRL)",
            "minimum": 0,
            "type": "number",
            "description": "Skip items whose average price is below this. Leave empty for no minimum."
          },
          "maxAvgPriceBrl": {
            "title": "Maximum average price (BRL)",
            "minimum": 0,
            "type": "number",
            "description": "Skip items whose average price is above this. Leave empty for no maximum."
          },
          "onlyWithListings": {
            "title": "Only items for sale now",
            "type": "boolean",
            "description": "Skip items that currently have no seller listing and so no price.",
            "default": false
          },
          "maxProductsPerQuery": {
            "title": "Items per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many matches to return for each search, in LigaPokemon's own order. More than one page of results is loaded automatically when needed.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum rows for the whole run",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Stops the run after this many rows. 0 means no limit beyond the per-search limit.",
            "default": 0
          },
          "fetchDetails": {
            "title": "Add full market detail",
            "type": "boolean",
            "description": "Opens each item's own page to add supply counts (listings, sellers, by condition, language and finish), rarity, prices per finish and the last sale. One extra page per item, so runs take longer.",
            "default": false
          },
          "includeLastSale": {
            "title": "Include last sale",
            "type": "boolean",
            "description": "Adds the most recent completed sale shown on the item page (date, quantity, price range). Needs full market detail.",
            "default": true
          },
          "includeOffers": {
            "title": "Include seller offers",
            "type": "boolean",
            "description": "Adds one row per seller listing: seller, city, state, rating, verification, tracked shipping, condition, language and finish. LigaPokemon scrambles each listing's exact price and quantity on the page, so those two fields stay empty rather than guessed; use the price range for pricing. Offer rows count as results.",
            "default": false
          },
          "maxOffersPerItem": {
            "title": "Offers per item",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Most seller offers to return for each item.",
            "default": 25
          },
          "convertTo": {
            "title": "Also show prices in",
            "enum": [
              "none",
              "USD",
              "EUR",
              "USD_EUR"
            ],
            "type": "string",
            "description": "Adds converted price columns using the latest European Central Bank reference rate (no account needed). The rate date is included in every row.",
            "default": "none"
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Give this watchlist a name and schedule the run. Each run is compared with the previous one and every row is marked NEW, PRICE_DROP, PRICE_RISE, BACK_IN_STOCK, OUT_OF_STOCK or UNCHANGED. Use the same name and the same searches each time. Leave empty for a one-off run.",
            "default": ""
          },
          "onlyChanges": {
            "title": "Only return changes",
            "type": "boolean",
            "description": "With a monitor name, return only items that are new or changed since the last run. Unchanged items are not returned or charged.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "LigaPokemon only answers Brazilian IP addresses, so Brazilian residential proxy is required. Leave the default as it is.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "BR"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}