{
  "openapi": "3.0.1",
  "info": {
    "title": "GTA 6 Scraper",
    "description": "Track any PS5 or Xbox Series X|S game's price, pre-orders and stock on PlayStation Store and Microsoft Store in dozens of countries, with price-drop and restock alerts between runs and the game's latest news. Amazon and Best Buy optional. Ready-made example: GTA VI.",
    "version": "0.1",
    "x-build-id": "MHRRCFPZ2WPuqPlkZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/badr_xba~gta-6-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-badr_xba-gta-6-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/badr_xba~gta-6-scraper/runs": {
      "post": {
        "operationId": "runs-sync-badr_xba-gta-6-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/badr_xba~gta-6-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-badr_xba-gta-6-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": {
          "game_name": {
            "title": "Game name",
            "type": "string",
            "description": "The game to track, as the stores spell it. Aliases are added automatically (\"Grand Theft Auto VI\" also matches \"GTA 6\" and \"GTA VI\"; typing \"GTA 6\" works too).",
            "default": "Grand Theft Auto VI"
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Consoles to track. PS5 and Xbox Series X|S offers are always kept apart.",
            "items": {
              "type": "string",
              "enum": [
                "PS5",
                "Xbox Series X|S"
              ],
              "enumTitles": [
                "PS5",
                "Xbox Series X|S"
              ]
            },
            "default": [
              "PS5",
              "Xbox Series X|S"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "ISO 3166 country codes (FR, US, GB or UK, DE, JP, BR...), or ALL for every market of the selected sources (about 70 PlayStation Store and 40 Microsoft Store markets: several minutes and many more billed offers than the default). A country a source does not serve gives a row with source_status \"unsupported_market\" (not billed).",
            "default": [
              "FR",
              "US",
              "UK"
            ],
            "items": {
              "type": "string"
            }
          },
          "sellers": {
            "title": "Stores",
            "type": "array",
            "description": "playstation_store and microsoft_store need no key. bestbuy (United States only) is added automatically when you give a Best Buy API key. amazon is optional: see \"Include Amazon\".",
            "items": {
              "type": "string",
              "enum": [
                "playstation_store",
                "microsoft_store",
                "bestbuy",
                "amazon"
              ],
              "enumTitles": [
                "PlayStation Store",
                "Microsoft Store (Xbox)",
                "Best Buy (US, API key)",
                "Amazon (optional)"
              ]
            },
            "default": [
              "playstation_store",
              "microsoft_store"
            ]
          },
          "editions": {
            "title": "Editions",
            "type": "array",
            "description": "Editions to keep: Standard, Deluxe, Ultimate, Collector, Gold, Complete, GOTY, Limited, Special, Premium, Launch, Steelbook, or ALL. Standard and collector's editions are never mixed.",
            "default": [
              "Standard"
            ],
            "items": {
              "type": "string"
            }
          },
          "include_collectors_editions": {
            "title": "Include collector's editions",
            "type": "boolean",
            "description": "Keep Collector's editions even if they are not in \"Editions\".",
            "default": true
          },
          "include_console_bundles": {
            "title": "Include console bundles",
            "type": "boolean",
            "description": "Keep console + game bundles (Amazon / Best Buy listings). They are reported with edition \"Console bundle\", never as the game.",
            "default": false
          },
          "include_preorders": {
            "title": "Include pre-orders",
            "type": "boolean",
            "description": "Keep offers that are pre-orders (availability \"preorder\").",
            "default": true
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "track",
              "one_off"
            ],
            "type": "string",
            "description": "track: keep a history and report changes since the previous run (schedule the task). one_off: a single snapshot, nothing stored.",
            "default": "track"
          },
          "compare_previous_run": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Adds a \"change\" object to each offer and one row per event (PRICE_DROP, PRICE_RISE, BACK_IN_STOCK, OUT_OF_STOCK, NEW_OFFER, OFFER_REMOVED, SELLER_CHANGE, EDITION_CHANGE, NOT_SEEN_IN_SEARCH for Amazon search listings, informational).",
            "default": true
          },
          "max_results_per_source": {
            "title": "Maximum offers per store and country",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Upper limit of offer rows per store and country (1-100).",
            "default": 20
          },
          "include_amazon": {
            "title": "Include Amazon (optional)",
            "type": "boolean",
            "description": "Off by default. Reads Amazon search result pages through an Apify RESIDENTIAL proxy in the marketplace's country. Anti-bot pages are never solved: a blocked marketplace is reported as \"blocked\" and not billed. Amazon result pages do not show stock, so Amazon availability is always \"unverified\".",
            "default": false
          },
          "bestbuy_api_key": {
            "title": "Best Buy API key",
            "type": "string",
            "description": "Your free key from developer.bestbuy.com. Without it Best Buy rows say \"needs_api_key\". United States only."
          },
          "news_enabled": {
            "title": "Latest news",
            "type": "boolean",
            "description": "Adds the game's latest headlines from official feeds (Take-Two, PlayStation Blog, Xbox Wire) and gaming media (IGN, GameSpot, Eurogamer, Polygon, VGC, Gamekult).",
            "default": true
          },
          "news_max_items": {
            "title": "Maximum news items",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Newest first.",
            "default": 30
          },
          "news_only_new": {
            "title": "Only new news items",
            "type": "boolean",
            "description": "Output only items that are new or updated since the previous run.",
            "default": false
          },
          "show_product_images": {
            "title": "Show product images in the report",
            "type": "boolean",
            "description": "Off: cards show a generic platform tile. On: the store's own product image is loaded in your browser (nothing is re-hosted). The dataset always keeps product_image_url.",
            "default": false
          },
          "history_store_name": {
            "title": "History store name",
            "type": "string",
            "description": "Named key-value store that keeps the history between runs.",
            "default": "video-game-price-tracker-history"
          },
          "watchlist_id": {
            "title": "Watchlist ID",
            "type": "string",
            "description": "Optional label that keeps a separate history for this task (e.g. one per customer)."
          },
          "playstation_concept_id": {
            "title": "PlayStation Store concept ID (advanced)",
            "type": "string",
            "description": "Optional: the number in store.playstation.com/.../concept/<ID>. Use it when the game's name is not found automatically."
          },
          "xbox_product_ids": {
            "title": "Microsoft Store product IDs (advanced)",
            "type": "array",
            "description": "Optional: 12-character IDs from xbox.com/.../games/store/<name>/<ID>, one per edition.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}