{
  "openapi": "3.0.1",
  "info": {
    "title": "Microsoft Store & Xbox Regional Price Comparator",
    "description": "Compare Microsoft Store and Xbox game/app prices across countries: local price, currency, discount, sale end date, Game Pass price, conversion to USD or any currency, PPP-adjusted price, cheapest market and price spread. No login.",
    "version": "0.1",
    "x-build-id": "kagC9ji5lQypHxlOD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~microsoft-store-regional-pricing/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-microsoft-store-regional-pricing",
        "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-regional-pricing/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-microsoft-store-regional-pricing",
        "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-regional-pricing/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-microsoft-store-regional-pricing",
        "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": {
          "mode": {
            "title": "What to compare",
            "enum": [
              "products",
              "search",
              "charts"
            ],
            "type": "string",
            "description": "Choose where the products come from. <b>Products</b>: your own list of Store IDs or links. <b>Search</b>: the top results for keywords. <b>Charts</b>: current deals or best-seller lists.",
            "default": "products"
          },
          "products": {
            "title": "Products",
            "type": "array",
            "description": "Microsoft Store product IDs (for example 9NKX70BBCDRN) or links from apps.microsoft.com, microsoft.com/store or xbox.com. Used in Products mode.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search in the Store (Search mode). The top results are compared.",
            "items": {
              "type": "string"
            }
          },
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "Store lists to compare (Charts mode).",
            "items": {
              "type": "string",
              "enum": [
                "deal",
                "topPaid",
                "topGrossing",
                "topFree",
                "mostPopular",
                "newAndRising",
                "topTrending"
              ],
              "enumTitles": [
                "Deals (on sale now)",
                "Top paid",
                "Best selling",
                "Top free",
                "Most popular",
                "New and rising",
                "Trending"
              ]
            },
            "default": [
              "deal"
            ]
          },
          "mediaType": {
            "title": "Games or apps",
            "enum": [
              "games",
              "apps",
              "all"
            ],
            "type": "string",
            "description": "Limits Search and Charts to games or apps. Charts need games or apps.",
            "default": "games"
          },
          "maxProductsPerInput": {
            "title": "Products per keyword / chart",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many products to take from each keyword or chart.",
            "default": 20
          },
          "maxProducts": {
            "title": "Max products in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many products (0 = no limit).",
            "default": 0
          },
          "markets": {
            "title": "Countries",
            "type": "array",
            "description": "2-letter country codes to compare, for example US, TR, AR, BR, IN, ID, JP. Use ALL for about 70 Store countries.",
            "items": {
              "type": "string"
            }
          },
          "baseMarket": {
            "title": "Reference country",
            "type": "string",
            "description": "Other countries are compared against this one (difference in %). Search and Charts are read from this country.",
            "default": "US"
          },
          "targetCurrency": {
            "title": "Convert prices to",
            "type": "string",
            "description": "3-letter currency code for converted prices, for example USD, EUR, IDR.",
            "default": "USD"
          },
          "includePpp": {
            "title": "Add purchasing-power (PPP) adjusted prices",
            "type": "boolean",
            "description": "Adds the World Bank price level of each country and the price adjusted for local purchasing power.",
            "default": true
          },
          "includePriceRows": {
            "title": "Add one row per product per country",
            "type": "boolean",
            "description": "Local price, discount, converted and PPP-adjusted price for every country. Turn off to get only the summary rows.",
            "default": true
          },
          "includeSummary": {
            "title": "Add one summary row per product",
            "type": "boolean",
            "description": "Cheapest and most expensive country, price spread, median price, countries where it is on sale or not sold.",
            "default": true
          },
          "includeUnavailable": {
            "title": "Include countries where the product is not sold",
            "type": "boolean",
            "description": "Keep a row for countries where the product is not listed or cannot be bought.",
            "default": true
          },
          "language": {
            "title": "Language of titles",
            "type": "string",
            "description": "Language for product titles, for example en-us.",
            "default": "en-us"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many requests run at the same time.",
            "default": 8
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with growing wait times when a request fails.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Usually not needed: prices do not depend on your IP address. If the Store starts blocking, the actor switches to Apify Residential proxy by itself. Set Residential here to use it from the start.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}