{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Reviews Scraper",
    "description": "Scrape app reviews from the Apple App Store and Google Play in one run with one unified output. Ratings, text, version, developer replies, helpful votes, app details with rating histogram, star and date filters, only-new-reviews mode.",
    "version": "1.0",
    "x-build-id": "9CbxpQiWWWNTmo5g5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~app-store-google-play-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-app-store-google-play-reviews-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/zhtech~app-store-google-play-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-app-store-google-play-reviews-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/zhtech~app-store-google-play-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-app-store-google-play-reviews-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",
        "properties": {
          "apps": {
            "title": "Apps (URLs, IDs or package names)",
            "type": "array",
            "description": "Mix App Store and Google Play apps freely, the store is detected automatically. Accepted: App Store URLs (https://apps.apple.com/us/app/instagram/id389801252), App Store IDs (389801252 or id389801252), Google Play URLs (https://play.google.com/store/apps/details?id=com.whatsapp) and package names (com.whatsapp). A bare package name is treated as Google Play; prefix it with apple: (for example apple:com.burbn.instagram) to look up an iOS bundle ID instead.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search by app name",
            "type": "array",
            "description": "App names to look up, for example Spotify or Notion. Each name is searched in the stores selected below and the top match(es) are scraped. Uses the first country and language from the settings below for the search.",
            "items": {
              "type": "string"
            }
          },
          "searchStores": {
            "title": "Stores to search",
            "type": "array",
            "description": "Which stores to search when using \"Search by app name\". Pick both to get reviews for the same app from iOS and Android in one dataset.",
            "items": {
              "type": "string",
              "enum": [
                "appStore",
                "googlePlay"
              ],
              "enumTitles": [
                "Apple App Store",
                "Google Play"
              ]
            },
            "default": [
              "appStore",
              "googlePlay"
            ]
          },
          "searchResultsPerTerm": {
            "title": "Apps per search term",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many top search results to scrape for each app name, per store. 1 means only the best match.",
            "default": 1
          },
          "includeReviews": {
            "title": "Scrape reviews",
            "type": "boolean",
            "description": "Turn off to only collect app details (metadata, rating histogram, installs) without reviews.",
            "default": true
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app (per country and language)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of reviews saved for each app in each country (and each language for Google Play). Set 0 for no limit, the scraper then pages until the store has no more reviews.",
            "default": 100
          },
          "maxTotalReviews": {
            "title": "Max reviews in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on reviews for the whole run, across all apps. 0 means no overall cap.",
            "default": 0
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "mostRelevant",
              "mostFavorable",
              "mostCritical"
            ],
            "type": "string",
            "description": "Newest: latest reviews first (needed for date ranges and only-new mode). Most relevant: the store's own helpful/relevant ranking. Most favorable: highest ratings first. Most critical: lowest ratings first (on Google Play this pages 1 star, then 2 stars and so on, newest first).",
            "default": "newest"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two letter country codes, for example us, gb, de, jp, ng, cn. Each app is scraped once per country. Leave empty to use the country in the app URL, or us. App Store reviews are separate per country; Google Play mostly separates reviews by language.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Languages (Google Play)",
            "type": "array",
            "description": "Google Play review languages, for example en, de, es, pt-BR, ja. Each Google Play app is scraped once per language. Leave empty to use the language in the URL, or en. The App Store does not filter reviews by language.",
            "items": {
              "type": "string"
            }
          },
          "ratings": {
            "title": "Star ratings to include",
            "type": "array",
            "description": "Only keep reviews with these star ratings. Leave empty for all. On Google Play the filter is applied by the store itself, so it is fast. Filtered out reviews are never charged.",
            "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": "Only reviews posted on or after this date. Accepts YYYY-MM-DD or a relative value like 7 days, 2 weeks, 3 months. With newest first ordering the scraper stops paging as soon as it reaches older reviews, so you only pay for what you need."
          },
          "dateTo": {
            "title": "Reviews until (date)",
            "type": "string",
            "description": "Only reviews posted on or before this date (inclusive). Accepts YYYY-MM-DD or a relative value."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Only keep reviews whose title or text contains at least one of these words (case insensitive), for example crash, refund, login.",
            "items": {
              "type": "string"
            }
          },
          "onlyWithReplies": {
            "title": "Only reviews with a developer reply",
            "type": "boolean",
            "description": "Keep only reviews the developer has answered.",
            "default": false
          },
          "onlyNewReviews": {
            "title": "Only new reviews since the last run",
            "type": "boolean",
            "description": "Incremental mode for scheduled runs: remembers the newest review seen for every app, country and language, and on the next run only saves reviews newer than that. State is kept in the named key-value store app-reviews-state in your account. Forces newest first ordering.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Optional name to keep separate incremental state for different schedules or tasks that scrape the same app. Letters, digits and hyphens.",
            "default": "default"
          },
          "includeAppDetails": {
            "title": "Add app details records",
            "type": "boolean",
            "description": "Adds one record per app and country with type app: title, developer, rating, rating count, 1 to 5 star histogram, installs (Google Play), price, category, content rating, version, last updated, release date, icon and description. Charged as a separate app-details event.",
            "default": true
          },
          "appleVersionLookup": {
            "title": "App Store: add app version to reviews",
            "type": "boolean",
            "description": "Apple only publishes the reviewed app version in its RSS feed, which covers the latest 500 reviews per country. When on, the scraper merges it into matching reviews (a few extra requests per app). Older App Store reviews have version null.",
            "default": true
          },
          "deduplicate": {
            "title": "Remove duplicate reviews",
            "type": "boolean",
            "description": "Google Play can return the same review for several countries or languages. When on, each review is saved and charged only once per run.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Usually not needed: the store endpoints used are public and light. Enable Apify Proxy (datacenter is enough in most cases) if you scrape very large volumes or see rate limit errors.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxConcurrency": {
            "title": "Parallel apps",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many app, country and language combinations are processed at the same time.",
            "default": 3
          },
          "maxPagesPerApp": {
            "title": "Max pages per app (safety limit)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on review pages requested per app, country and language (up to 200 reviews per page, so the default scans up to 40,000 reviews). Raise it for full review history of very large apps. Protects run time when strict filters match very few reviews.",
            "default": 200
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff (and a fresh proxy session when a proxy is used) on rate limits, blocks, timeouts and server errors.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}