{
  "openapi": "3.0.1",
  "info": {
    "title": "Microsoft Store Add-ons, DLC & In-App Purchase Analyzer",
    "description": "Map any Xbox / Microsoft Store game's monetization: every add-on, DLC, virtual-currency pack and edition with price, sale, Game Pass discount, release date and description, plus a per-game summary (price ladder, DLC cost, edition tiers). Multi-country. No login.",
    "version": "0.1",
    "x-build-id": "o8euzkCM3uhnN0WUd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~microsoft-store-addons-dlc-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-microsoft-store-addons-dlc-analyzer",
        "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/fanndev~microsoft-store-addons-dlc-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-microsoft-store-addons-dlc-analyzer",
        "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/fanndev~microsoft-store-addons-dlc-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-microsoft-store-addons-dlc-analyzer",
        "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": {
          "products": {
            "title": "Games or apps",
            "type": "array",
            "description": "Microsoft Store product IDs (e.g. 9NNX1VVR3KNQ) or any apps.microsoft.com / xbox.com / microsoft.com store URL. You can paste an edition or an add-on too: it is traced back to its base game (see 'Trace editions and add-ons to the base game').",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "Find products by keyword (e.g. 'Call of Duty'). The top results of each search are analysed (see 'Results per search or chart').",
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "Store charts",
            "type": "array",
            "description": "Analyse the top products of Microsoft Store charts, for example Top grossing to see how the best-earning games monetize. Read in the first country of 'Countries'.",
            "items": {
              "type": "string",
              "enum": [
                "topGrossing",
                "topPaid",
                "topFree",
                "mostPopular",
                "deal",
                "newAndRising",
                "topTrending"
              ],
              "enumTitles": [
                "Top grossing",
                "Top paid",
                "Top free",
                "Most popular",
                "Deals",
                "New and rising",
                "Trending"
              ]
            }
          },
          "mediaType": {
            "title": "Search / chart type",
            "enum": [
              "games",
              "apps",
              "all"
            ],
            "type": "string",
            "description": "What searches and charts return. Charts use Games when 'Games and apps' is chosen.",
            "default": "games"
          },
          "maxProductsPerSearch": {
            "title": "Results per search or chart",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many products to analyse from each search keyword and each chart.",
            "default": 5
          },
          "markets": {
            "title": "Countries",
            "type": "array",
            "description": "2-letter country codes. Prices, currencies and availability are read for each country (one set of rows per country). Example: US, GB, DE, BR, ID.",
            "default": [
              "US"
            ],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "2-letter language code for titles and descriptions (en, de, fr, ja, ...). Falls back to the country's own language when a combination is not offered.",
            "default": "en"
          },
          "addOnTypes": {
            "title": "Add-on types",
            "type": "array",
            "description": "Which add-ons to keep. DLC = expansions, packs, season passes and other one-time unlocks. Consumables = virtual currency, boosts and other items that can be bought again.",
            "items": {
              "type": "string",
              "enum": [
                "dlc",
                "consumable",
                "other"
              ],
              "enumTitles": [
                "DLC / permanent unlocks (Durable)",
                "Consumables / virtual currency",
                "Other"
              ]
            },
            "default": [
              "dlc",
              "consumable",
              "other"
            ]
          },
          "includeAddOns": {
            "title": "Add-on rows",
            "type": "boolean",
            "description": "One row per add-on per country.",
            "default": true
          },
          "includeEditions": {
            "title": "Edition and bundle rows",
            "type": "boolean",
            "description": "One row per edition or bundle that contains the game (Standard, Deluxe, Premium, multi-game bundles), with its contents.",
            "default": true
          },
          "includeSummary": {
            "title": "Monetization summary rows",
            "type": "boolean",
            "description": "One row per game per country: add-on counts by type, price points, total DLC cost, virtual-currency pack ladder, edition ladder, release cadence.",
            "default": true
          },
          "includeProductRow": {
            "title": "Base game row",
            "type": "boolean",
            "description": "One row per game per country with its own price and details.",
            "default": true
          },
          "includeDescriptions": {
            "title": "Descriptions",
            "type": "boolean",
            "description": "Include full and short descriptions. Turn off for smaller rows.",
            "default": true
          },
          "resolveToBaseGame": {
            "title": "Trace editions and add-ons to the base game",
            "type": "boolean",
            "description": "When an input is an edition (e.g. 'Deluxe Edition') or an add-on, analyse the base game it belongs to, so you get its full add-on catalog. Turn off to analyse the exact product you entered.",
            "default": true
          },
          "pcStoreSupplement": {
            "title": "Also check the PC Microsoft Store list",
            "type": "boolean",
            "description": "Adds add-ons that only the Microsoft Store app lists (one extra request per game per country).",
            "default": true
          },
          "maxAddOnsPerProduct": {
            "title": "Max add-ons per game",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all add-ons. Lower it for a quick sample of very large catalogs.",
            "default": 0
          },
          "maxProducts": {
            "title": "Max games in total",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit. Caps the number of games analysed per run after searches and charts are combined.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Requests in flight at once.",
            "default": 8
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff for network errors, 429 and 5xx.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed normally: the Store answers direct connections, and after two blocked requests the actor switches to Apify Residential proxy by itself. Set a proxy here to always use it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}