{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store Review History Scraper - All Storefronts",
    "description": "Apple caps App Store reviews at 500 per app per country. This Actor sweeps up to 175 storefronts, de-duplicates by review ID, normalizes timestamps to UTC and reaches far older reviews.",
    "version": "0.1",
    "x-build-id": "X4BlDzwUxscwNT2ci"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/linus009400~app-store-review-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-linus009400-app-store-review-history",
        "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/linus009400~app-store-review-history/runs": {
      "post": {
        "operationId": "runs-sync-linus009400-app-store-review-history",
        "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/linus009400~app-store-review-history/run-sync": {
      "post": {
        "operationId": "run-sync-linus009400-app-store-review-history",
        "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": {
          "appIds": {
            "title": "App Store apps",
            "minItems": 1,
            "type": "array",
            "description": "One entry per app. Accepts a numeric App Store id (310633997) or a full App Store URL (https://apps.apple.com/us/app/id310633997) - the id is extracted for you. Left empty, the Actor demonstrates itself on WhatsApp Messenger.",
            "default": [
              "310633997"
            ],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Storefronts",
            "type": "array",
            "description": "Two-letter storefront codes such as us, gb, jp, mn. Use ALL to sweep every one of the 175 catalogued storefronts - that is what reaches older reviews, because Apple stops each single storefront at 500. A sweep of every storefront takes a few minutes; a single storefront takes seconds. Storefronts that return nothing are listed in RUN_SUMMARY.skippedCountries.",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "mostrecent",
              "mosthelpful"
            ],
            "type": "string",
            "description": "mostrecent returns newest reviews first and is required for the Reviews since cutoff to stop paging early. mosthelpful returns Apple's helpfulness ranking instead.",
            "default": "mostrecent"
          },
          "dateFrom": {
            "title": "Reviews since",
            "type": "string",
            "description": "Optional cutoff, for example 2025-01-01. Reviews older than this are dropped. With Most recent sorting the Actor also stops paging a storefront as soon as a whole page predates the cutoff, which lowers your cost."
          },
          "includeAppProfile": {
            "title": "Include app profile",
            "type": "boolean",
            "description": "Emit one app metadata record per app (name, seller, current version, release dates, average rating). Turn this off if you only want review rows.",
            "default": true
          },
          "maxReviews": {
            "title": "Maximum reviews per app",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard stop on the total number of reviews collected per app. The run ends cleanly and RUN_SUMMARY.stoppedBy records that this limit was the reason. There is no second hidden cap."
          },
          "maxReviewsPerCountry": {
            "title": "Maximum reviews per storefront",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Apple itself stops at 500 per app per storefront (10 pages of 50), so 500 is the real ceiling. Lower it to sample many storefronts cheaply.",
            "default": 500
          },
          "maxApiCalls": {
            "title": "Maximum API calls",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard stop on requests sent to Apple, counting both review pages and metadata lookups. Protects against a runaway sweep.",
            "default": 6000
          },
          "concurrency": {
            "title": "Concurrent storefronts",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many storefronts are fetched at the same time. Apple throttles with HTTP 403, not only 429: a measured sweep at roughly 14 requests per second was throttled after 340 requests. 2 is the tested default. Raising it makes throttling more likely, and the Actor then slows itself down anyway.",
            "default": 2
          },
          "minRequestIntervalMs": {
            "title": "Minimum delay between requests (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Pacing shared across all concurrent workers. The Actor widens this automatically whenever Apple pushes back and narrows it again once responses are clean. Set 0 to disable pacing, which is only sensible for a one-storefront run.",
            "default": 220
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}