{
  "openapi": "3.0.1",
  "info": {
    "title": "Microsoft Store Scraper - Windows App Rankings & Reviews",
    "description": "Windows app market intelligence from the Microsoft Store: top free/paid/best-selling rankings by category, license & pricing model, free trial, in-app purchases, latest version, release notes, x64/ARM64 support, and user reviews filtered by stars and date. No login.",
    "version": "0.1",
    "x-build-id": "hvfwR4ycfYNJyLKjK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~microsoft-store-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-microsoft-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/fanndev~microsoft-store-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-microsoft-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/fanndev~microsoft-store-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-microsoft-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": "What to scrape",
            "enum": [
              "charts",
              "search",
              "publisher",
              "appDetails",
              "reviews",
              "similarApps",
              "categories"
            ],
            "type": "string",
            "description": "charts reads 'Charts' + 'Categories'; search reads 'Search terms'; publisher reads 'Publisher names'; appDetails, reviews and similarApps read 'Apps'.",
            "default": "charts"
          },
          "charts": {
            "title": "Charts",
            "type": "array",
            "description": "Mode 'charts'. Each chart holds up to ~500 apps per category. 'Best rated' is not a Store chart: it re-ranks the Most popular chart by average rating (see 'Min. ratings for Best rated').",
            "items": {
              "type": "string",
              "enum": [
                "topFree",
                "topPaid",
                "topGrossing",
                "mostPopular",
                "topTrending",
                "newAndRising",
                "deal",
                "bestRated"
              ],
              "enumTitles": [
                "Top free",
                "Top paid",
                "Best selling (top grossing)",
                "Most popular",
                "Trending",
                "New and rising",
                "Deals / on sale",
                "Best rated (Most popular re-ranked by stars)"
              ]
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Mode 'charts'. Category names as shown in the Store, optionally with a subcategory: 'Developer tools > Database'. Empty = all categories. Run mode 'categories' for the full list.",
            "items": {
              "type": "string"
            }
          },
          "mediaType": {
            "title": "Department",
            "enum": [
              "apps",
              "games"
            ],
            "type": "string",
            "description": "Modes 'charts', 'search' and 'categories'.",
            "default": "apps"
          },
          "maxItemsPerChart": {
            "title": "Max apps per chart / category",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The Store stops each chart at about 500 apps.",
            "default": 100
          },
          "minRatingCount": {
            "title": "Min. ratings for Best rated",
            "minimum": 0,
            "type": "integer",
            "description": "Chart 'bestRated' only: skip apps with fewer ratings, so a single 5-star vote cannot top the list.",
            "default": 100
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Mode 'search'. Keywords, as typed in the Store search box.",
            "items": {
              "type": "string"
            }
          },
          "searchCategory": {
            "title": "Search: category filter",
            "type": "string",
            "description": "Mode 'search'. Optional category, e.g. 'Productivity' or 'Developer tools'."
          },
          "priceType": {
            "title": "Search: price filter",
            "enum": [
              "all",
              "free",
              "paid",
              "sale"
            ],
            "type": "string",
            "description": "Mode 'search'.",
            "default": "all"
          },
          "publisherNames": {
            "title": "Publisher names",
            "type": "array",
            "description": "Mode 'publisher'. The publisher name exactly as shown on the app page (e.g. 'Microsoft Corporation'). Exact matches are kept when the Store returns any.",
            "items": {
              "type": "string"
            }
          },
          "apps": {
            "title": "Apps (product IDs or Store URLs)",
            "type": "array",
            "description": "Modes 'appDetails', 'reviews' and 'similarApps'. Product IDs (9N... or XP...) or any apps.microsoft.com / microsoft.com store link.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Add full details to chart / search rows",
            "type": "boolean",
            "description": "Modes 'charts', 'search', 'publisher', 'similarApps': add license model, free trial, in-app purchases, latest version, release notes and x64/ARM64 support to every row. About 2 extra requests per app.",
            "default": false
          },
          "includeBadges": {
            "title": "Include badges",
            "type": "boolean",
            "description": "Mode 'appDetails': add Store badges such as 'Built for Copilot+ PC' and 'Uses AI features'.",
            "default": false
          },
          "reviewSort": {
            "title": "Reviews: sort order",
            "enum": [
              "mostRecent",
              "oldest",
              "mostHelpful",
              "highestRated",
              "lowestRated"
            ],
            "type": "string",
            "description": "Mode 'reviews'. The Store serves up to ~10,000 reviews per sort order; use 'Oldest first' to reach older ones. With 'Most recent' + 'From date' the run stops at the first older review.",
            "default": "mostRecent"
          },
          "reviewVersions": {
            "title": "Reviews: app versions",
            "enum": [
              "all",
              "latest"
            ],
            "type": "string",
            "description": "Mode 'reviews'. The apps.microsoft.com page shows only reviews of the current version; 'All versions' returns the full review history.",
            "default": "all"
          },
          "ratings": {
            "title": "Reviews: star ratings",
            "type": "array",
            "description": "Mode 'reviews'. Keep only these star ratings. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "dateFrom": {
            "title": "Reviews: from date",
            "type": "string",
            "description": "Mode 'reviews'. YYYY-MM-DD, or relative like '30 days' / '6 months'."
          },
          "dateTo": {
            "title": "Reviews: to date",
            "type": "string",
            "description": "Mode 'reviews'. YYYY-MM-DD (inclusive)."
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app",
            "minimum": 0,
            "type": "integer",
            "description": "Mode 'reviews'. 0 = all reviews the Store returns.",
            "default": 200
          },
          "onlyWithText": {
            "title": "Reviews: only with text",
            "type": "boolean",
            "description": "Mode 'reviews'. Skip star-only reviews with no written text.",
            "default": false
          },
          "includeReviewsSummary": {
            "title": "Reviews: add rating summary",
            "type": "boolean",
            "description": "Mode 'reviews'. One extra row per app with the 1-5 star histogram and review counts.",
            "default": true
          },
          "country": {
            "title": "Country (Store market)",
            "type": "string",
            "description": "2-letter market code: US, GB, DE, IN, ID, JP... Rankings, prices and reviews are per market.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Locale for titles, descriptions and release notes, e.g. en-us, de-de, ja-jp.",
            "default": "en-us"
          },
          "maxItemsPerInput": {
            "title": "Max apps per search term / publisher",
            "minimum": 0,
            "type": "integer",
            "description": "Modes 'search', 'publisher', 'similarApps' (similar apps stop at 50). 0 = all.",
            "default": 100
          },
          "maxItems": {
            "title": "Max records in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run. 0 = no cap.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Used for app details and enrichment.",
            "default": 5
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Polite pause before each request.",
            "default": 0.1
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries per request with a fresh connection and exponential backoff.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not required: the Microsoft Store serves this data without a proxy. If the Store starts blocking, the run switches to Apify RESIDENTIAL proxy on its own. Select 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}