{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Reviews Scraper (with per-app summary)",
    "description": "Scrape App Store and Google Play reviews in one run from app links, IDs or names. Loops over 174 App Store countries to beat Apple's 500-review cap and adds a per-app summary: rating by version, trend, 1-2 star share, top complaints. No API key or proxy.",
    "version": "1.0",
    "x-build-id": "NejLDGBS7P0a7jeSf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ravensource~app-store-google-play-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ravensource-app-store-google-play-reviews",
        "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/ravensource~app-store-google-play-reviews/runs": {
      "post": {
        "operationId": "runs-sync-ravensource-app-store-google-play-reviews",
        "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/ravensource~app-store-google-play-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-ravensource-app-store-google-play-reviews",
        "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 (App Store / Google Play links or IDs)",
            "type": "array",
            "description": "Array of strings, one app per item. Accepted values: an App Store URL (https://apps.apple.com/us/app/whatsapp-messenger/id310633997), a Google Play URL (https://play.google.com/store/apps/details?id=com.whatsapp), an App Store ID (310633997 or id310633997), a Play package name (com.whatsapp), or an explicit prefix (apple:310633997, play:com.whatsapp). Mix both stores. Prefer a link or ID over a name. If the user names an app without a URL, put that name in searchTerms instead of inventing an ID. The exact prefilled 2-app sample is a preview that returns 20 recent reviews per app and never saves tracking memory.",
            "default": [
              "https://apps.apple.com/us/app/whatsapp-messenger/id310633997",
              "https://play.google.com/store/apps/details?id=com.duolingo"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search by app name",
            "type": "array",
            "description": "Optional array of app names (for example 'Duolingo') used only when the user did not provide a link or ID. The top search result in each selected store is used and recorded in OUTPUT — verify it is the right app. Leave empty when `apps` already has links or IDs.",
            "items": {
              "type": "string"
            }
          },
          "searchStore": {
            "title": "Search in",
            "enum": [
              "both",
              "apple",
              "play"
            ],
            "type": "string",
            "description": "Which store(s) to search when searchTerms is used: 'both' (default), 'apple', or 'play'. Ignored if searchTerms is empty.",
            "default": "both"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Array of two-letter country codes (us, gb, de, in, br...) or the single value 'all' for every App Store country (174 storefronts). App Store: each country is a separate pool of up to 500 reviews, so more countries return more reviews (past Apple's 500 cap). Google Play: used as the region (gl); regions that serve the same reviews as an earlier one are skipped. Default if omitted: ['us'].",
            "default": [
              "us"
            ],
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Google Play languages",
            "type": "array",
            "description": "Google Play language codes such as en, es, de, pt, or pt-BR. Each language is fetched for each country above. App Store reviews are per country and ignore this field. Default if omitted: ['en'].",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerApp": {
            "title": "Max reviews per app",
            "minimum": 0,
            "maximum": 200000,
            "type": "integer",
            "description": "Integer cap on reviews output per app, across all countries and languages (0 = no limit). Default 100. App Store gives up to 500 reviews per country; Google Play has no such cap. Lower this for cheap test or agent runs.",
            "default": 100
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "mostRelevant"
            ],
            "type": "string",
            "description": "Enum: 'newest' (default, required for reviewsSince and newOnly to stop paging early) or 'mostRelevant' (Apple 'most helpful' / Play 'most relevant').",
            "default": "newest"
          },
          "reviewsSince": {
            "title": "Only reviews since",
            "type": "string",
            "description": "Optional date cutoff. Skip reviews older than an absolute date (2026-10-01) or a relative window ('30 days', '2 weeks', '6 months'). Omit if the user did not ask for a date filter. With sort = newest, paging stops once older reviews are reached."
          },
          "includeSummary": {
            "title": "Per-app summary",
            "type": "boolean",
            "description": "Boolean, default true. When true, add one 'app-summary' record per app (average rating, 1-2 star share, rating by version, trend, top complaint and praise phrases, developer reply rate). Charged as one 'app-summary' event per app at $0.02, on top of the $0.006 start fee and $0.0002 per review. Set false if the user only wants review rows.",
            "default": true
          },
          "newOnly": {
            "title": "New reviews only (tracking)",
            "type": "boolean",
            "description": "Boolean, default false. When true, each app's review IDs are remembered in a named key-value store, and only reviews never returned before are output. The first run is a paid backfill up to 'Max reviews per app' (reviews + summary + start fee). Later runs with nothing new output nothing and charge only the $0.006 start fee (no review or summary charges). With sort = newest, paging stops once it reaches reviews from earlier runs.",
            "default": false
          },
          "stateKey": {
            "title": "Tracking key",
            "type": "string",
            "description": "String name of this watchlist's memory (used only with 'New reviews only'). Default 'default'. Runs that share the same key share already-returned review IDs. Use a different key per schedule or per user request. Change the key to start a fresh backfill.",
            "default": "default"
          },
          "includeReviewerNames": {
            "title": "Include reviewer names",
            "type": "boolean",
            "description": "Boolean, default false. Leave false unless the user explicitly asks for reviewer names or nicknames. Names are personal data and are not stored when this is off. If you turn it on, the user is responsible for having a lawful basis (GDPR/CCPA).",
            "default": false
          },
          "stateStoreName": {
            "title": "Tracking store name",
            "type": "string",
            "description": "Name of the named key-value store that holds tracking memory in your Apify account. Named stores are kept indefinitely.",
            "default": "app-reviews-tracker-state"
          },
          "maxConcurrency": {
            "title": "Max parallel apps",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many apps to process in parallel (1-8). Requests to Apple and Google are also spaced out per host to respect rate limits.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}