{
  "openapi": "3.0.1",
  "info": {
    "title": "Xbox Store Scraper",
    "description": "Scrape the official Xbox Store (xbox.com/games/store) - search games, browse the storefront with sort options, and fetch rich game detail (price, discount, ESRB rating, genres, platforms, media) by product ID.",
    "version": "1.0",
    "x-build-id": "em4ndeebPJFqHF1ue"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~xbox-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-xbox-store-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/crawlerbros~xbox-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-xbox-store-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/crawlerbros~xbox-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-xbox-store-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "browse",
              "byProductId"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text game title or keyword to search for."
          },
          "sortBy": {
            "title": "Sort by (mode=browse)",
            "enum": [
              "RELEVANCE",
              "RELEASE_DATE_DESC",
              "MOST_POPULAR",
              "PRICE_ASC",
              "PRICE_DESC",
              "MOST_WISHLISTED",
              "DISCOUNT_DESC",
              "TITLE_ASC",
              "TITLE_DESC"
            ],
            "type": "string",
            "description": "Sort order for the storefront browse listing.",
            "default": "MOST_POPULAR"
          },
          "productIds": {
            "title": "Product IDs (mode=byProductId)",
            "type": "array",
            "description": "Xbox Store product IDs, e.g. `9NP1P1WFS0LB` (found in a game's store URL: xbox.com/en-US/games/store/<slug>/<productId>).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "genre": {
            "title": "Genre filter",
            "enum": [
              "ANY",
              "Action & adventure",
              "Card & board",
              "Casino",
              "Classics",
              "Companion",
              "Educational",
              "Family & kids",
              "Fighting",
              "Multi-Player Online Battle Arena",
              "Music",
              "Other",
              "Platformer",
              "Puzzle & trivia",
              "Racing & flying",
              "Role playing",
              "Shooter",
              "Simulation",
              "Sports",
              "Strategy",
              "Tools",
              "Word"
            ],
            "type": "string",
            "description": "Only keep games tagged with this genre.",
            "default": "ANY"
          },
          "platform": {
            "title": "Platform filter",
            "enum": [
              "ANY",
              "XboxSeriesX|S",
              "XboxOne",
              "PC",
              "Handheld",
              "CloudGaming"
            ],
            "type": "string",
            "description": "Only keep games available on this platform.",
            "default": "ANY"
          },
          "ageRating": {
            "title": "Age rating filter",
            "enum": [
              "ANY",
              "EARLY_CHILDHOOD",
              "EVERYONE",
              "EVERYONE_10_PLUS",
              "TEEN",
              "MATURE_17_PLUS",
              "ADULTS_ONLY_18_PLUS",
              "RATING_PENDING",
              "RATING_PENDING_LIKELY_MATURE",
              "RATING_PENDING_LIKELY_TEEN",
              "UNRATED"
            ],
            "type": "string",
            "description": "Only keep games with this ESRB age rating. Applied server-side (narrows the SSR'd result page itself), so it can surface titles beyond the default top ~25.",
            "default": "ANY"
          },
          "subscription": {
            "title": "Subscription filter",
            "enum": [
              "ANY",
              "GAME_PASS_ULTIMATE",
              "GAME_PASS_PREMIUM",
              "GAME_PASS_ESSENTIAL",
              "GAME_PASS_CONSOLE",
              "GAME_PASS_PC",
              "EA_PLAY",
              "UBISOFT_PLUS"
            ],
            "type": "string",
            "description": "Only keep games included in this subscription (Game Pass tiers, EA Play, Ubisoft+). Applied server-side.",
            "default": "ANY"
          },
          "multiplayerFeature": {
            "title": "Multiplayer feature filter",
            "enum": [
              "ANY",
              "CROSS_PLATFORM_MULTIPLAYER",
              "CROSS_PLATFORM_COOP",
              "SINGLE_PLAYER",
              "ONLINE_MULTIPLAYER",
              "ONLINE_COOP",
              "LOCAL_COOP",
              "LOCAL_MULTIPLAYER"
            ],
            "type": "string",
            "description": "Only keep games supporting this multiplayer feature. Applied server-side.",
            "default": "ANY"
          },
          "technicalFeature": {
            "title": "Technical feature filter",
            "enum": [
              "ANY",
              "XBOX_ONE_X_ENHANCED",
              "OPTIMIZED_FOR_SERIES_X_S",
              "SMART_DELIVERY",
              "FOUR_K",
              "HDR",
              "SIXTY_FPS",
              "ONE_TWENTY_FPS",
              "RAY_TRACING"
            ],
            "type": "string",
            "description": "Only keep games supporting this technical feature. Applied server-side.",
            "default": "ANY"
          },
          "handheldCompatibility": {
            "title": "Handheld compatibility filter",
            "enum": [
              "ANY",
              "HANDHELD_OPTIMIZED",
              "MOSTLY_COMPATIBLE",
              "UNSUPPORTED",
              "NOT_TESTED"
            ],
            "type": "string",
            "description": "Only keep games with this handheld-device compatibility rating. Applied server-side.",
            "default": "ANY"
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Only keep games currently discounted. Applied server-side.",
            "default": false
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Drop games priced below this."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Drop games priced above this."
          },
          "freeOnly": {
            "title": "Free games only",
            "type": "boolean",
            "description": "Only keep games that are currently free.",
            "default": false
          },
          "minRating": {
            "title": "Min average rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Drop games with an average rating below this (1-5)."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Hard cap on emitted records. Note: `search`/`browse` return at most ~25 results per run (a single storefront page); use `byProductId` for larger batches by ID.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}