{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store & Google Play Reviews Scraper",
    "description": "Scrape Apple App Store and Google Play reviews into one schema, with incremental `since` sync and optional lexicon sentiment.",
    "version": "0.1",
    "x-build-id": "OdIsv74gkR99j41ra"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/djbrooks111~app-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-djbrooks111-app-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/djbrooks111~app-reviews/runs": {
      "post": {
        "operationId": "runs-sync-djbrooks111-app-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/djbrooks111~app-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-djbrooks111-app-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",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Apple numeric app ids (284882215), Android package names (com.spotify.music), or App Store / Google Play URLs. The store is detected from each value.",
            "default": [
              "284882215",
              "com.spotify.music"
            ],
            "items": {
              "type": "string"
            }
          },
          "store": {
            "title": "Store",
            "enum": [
              "auto",
              "apple",
              "google"
            ],
            "type": "string",
            "description": "auto (default) detects the store from each value. Force apple or google when an id is ambiguous.",
            "default": "auto"
          },
          "countries": {
            "title": "Storefronts / countries",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Two-letter codes, e.g. [\"us\",\"gb\",\"de\"]. Apple serves at most 500 reviews per storefront per sort, so adding storefronts is how you get more than 500. Pass [\"all\"] to walk all 115 App Store storefronts; Google Play is not fanned out that way (it does not partition reviews by storefront and each country costs a large page fetch), so Play uses the codes you list, or us.",
            "items": {
              "type": "string",
              "pattern": "^(?:[A-Za-z]{2}|all)$"
            },
            "default": [
              "us"
            ]
          },
          "language": {
            "title": "Language (Google Play)",
            "type": "string",
            "description": "Google Play `hl` language code for review text and the app title. Apple's feed has no language parameter.",
            "default": "en"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "recent",
              "helpful",
              "rating"
            ],
            "type": "string",
            "description": "recent (default), helpful, or rating. Apple has no rating-sorted feed and falls back to newest first.",
            "default": "recent"
          },
          "since": {
            "title": "Only reviews since",
            "type": "string",
            "description": "ISO date, e.g. 2026-09-01. Paging stops once reviews are older than this, which makes a scheduled run incremental. Forces newest-first ordering."
          },
          "includeAuthor": {
            "title": "Include reviewer name",
            "type": "boolean",
            "description": "Off by default. Reviewer display names are personal data; leave this off unless you have a lawful basis for collecting them.",
            "default": false
          },
          "sentiment": {
            "title": "Score sentiment",
            "type": "boolean",
            "description": "Add a lexicon-based positive/neutral/negative label and up to three topic keys per review. Charged as a separate `sentiment` event. No LLM is called.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on delivered reviews for this run. Default 100 keeps free trials cheap; raise it for production.",
            "default": 100
          },
          "maxCostUsd": {
            "title": "Max cost (USD)",
            "minimum": 0.0001,
            "type": "number",
            "description": "Hard stop: the run never charges more than this. Enforced before each request, not after.",
            "default": 5
          },
          "stateNamespace": {
            "title": "State namespace",
            "pattern": "^[a-z0-9-]{1,24}$",
            "type": "string",
            "description": "Optional suffix for this actor's cross-run state store, so separate schedules or test runs keep separate monitor baselines and watermarks (e.g. `prod`, `staging`)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Neither store needs a proxy for small runs, so none is used by default. Turn on the datacenter Apify Proxy for large Google Play pulls: Play throttles per IP after a few hundred pages. Residential is never required.",
            "default": {
              "useApifyProxy": false
            }
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "flat",
              "nested"
            ],
            "type": "string",
            "description": "flat (default): one level of keys. nested: keep objects.",
            "default": "flat"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}