{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store Reviews Scraper for AI & Sentiment (175 Countries)",
    "description": "Scrape Apple App Store reviews from 175 country storefronts in one run. Clean text, detected language, star rating, app version and UTC date on every row - ready for sentiment analysis, LLMs and RAG. No reviewer names stored. Pay only for reviews delivered.",
    "version": "0.1",
    "x-build-id": "V2QyO74eaxEnY999S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/henrycrawl~app-store-reviews-ai/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-henrycrawl-app-store-reviews-ai",
        "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/henrycrawl~app-store-reviews-ai/runs": {
      "post": {
        "operationId": "runs-sync-henrycrawl-app-store-reviews-ai",
        "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/henrycrawl~app-store-reviews-ai/run-sync": {
      "post": {
        "operationId": "run-sync-henrycrawl-app-store-reviews-ai",
        "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": {
          "apps": {
            "title": "Apps",
            "type": "array",
            "description": "App Store URLs (https://apps.apple.com/us/app/instagram/id389801252) or numeric app IDs (389801252). Several apps per run are fine; duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries (storefronts)",
            "type": "array",
            "description": "Two-letter App Store country codes, e.g. [\"us\", \"gb\", \"jp\", \"de\", \"br\", \"vn\"]. Use \"all\" for every storefront (~175). Empty = the country in the app URL, or \"us\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerCountry": {
            "title": "Max reviews per country",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Apple publishes at most 500 reviews per app, country and sort order (10 pages x 50).",
            "default": 100
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "mostRecent",
              "mostHelpful"
            ],
            "type": "string",
            "description": "Most recent is best for monitoring and \"since date\" filtering; most helpful surfaces the reviews other users up-voted.",
            "default": "mostRecent"
          },
          "reviewsSince": {
            "title": "Only reviews since (date)",
            "type": "string",
            "description": "YYYY-MM-DD. With \"Most recent\" the scraper stops paging as soon as it reaches older reviews, which saves time and money."
          },
          "ratings": {
            "title": "Only these star ratings",
            "type": "array",
            "description": "e.g. [\"1\", \"2\"] for complaints only. Empty = all ratings. Filtered-out reviews are not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Only these review languages",
            "type": "array",
            "description": "Detected language codes, e.g. [\"en\", \"es\"]. Useful because many storefronts carry reviews in several languages. Empty = all. Filtered-out reviews are not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minWords": {
            "title": "Minimum words",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Skip very short reviews (\"good\", \"ok\") that add little to sentiment or topic analysis. 0 = keep everything. Skipped reviews are not charged.",
            "default": 0
          },
          "dedupeIdenticalText": {
            "title": "Remove identical review texts",
            "type": "boolean",
            "description": "Drop reviews whose text is identical to one already returned for the same app (copy-paste spam, cross-posted reviews). Not charged.",
            "default": false
          },
          "includeCountryRatings": {
            "title": "Add rating summary per country",
            "type": "boolean",
            "description": "Adds one free row per app and country with the average star rating, total number of ratings and the 5-to-1 star histogram from the public App Store page. Slower: Apple rate-limits that page.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel storefronts",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many country feeds are read at the same time. Keep it low to stay polite.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed for normal use. Enable only if Apple starts returning HTTP 403/429.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}