{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Play Scraper: App Reviews, Details & Search",
    "description": "Google Play reviews (newest first, by star rating, since a date, or only new since the last run), full app details (installs, rating histogram, developer email), keyword search, categories and similar apps. Resume large runs.",
    "version": "0.1",
    "x-build-id": "s6zsnwOYZyQQheO2q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shelfdata~google-play-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shelfdata-google-play-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/shelfdata~google-play-scraper/runs": {
      "post": {
        "operationId": "runs-sync-shelfdata-google-play-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/shelfdata~google-play-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-shelfdata-google-play-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",
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "title": "Select action to perform",
            "enum": [
              "scrapeReviews",
              "scrapeAppSearch",
              "scrapeAppUrls",
              "scrapeSimilarApps"
            ],
            "type": "string",
            "description": "What to collect: reviews of one app, apps matching search keywords, app details for a list of app URLs/IDs (category URLs also work), or apps similar to the given apps.",
            "default": "scrapeReviews"
          },
          "scrapeReviews.appId": {
            "title": "App ID",
            "type": "string",
            "description": "Google Play app ID: the `id=` value of the app URL, e.g. `com.whatsapp`. Used when action is **Scrape reviews**."
          },
          "scrapeReviews.lang": {
            "title": "Review language",
            "type": "string",
            "description": "Language of the reviews, e.g. `en`, `de`, `es`. Google Play groups reviews by the language they were written in, so this decides which reviews you get. Empty means `en`."
          },
          "scrapeReviews.country": {
            "title": "Country",
            "type": "string",
            "description": "Storefront country, e.g. `us`, `de`. It does not change which reviews are returned; use the review language for that. Empty means `us`."
          },
          "scrapeReviews.sort": {
            "title": "Review order",
            "enum": [
              "relevance",
              "newest",
              "rating"
            ],
            "type": "string",
            "description": "Order in which reviews are read. Use **Newest first** for monitoring and with **Reviews since**.",
            "default": "relevance"
          },
          "scrapeReviews.score": {
            "title": "Star rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only reviews with this star rating (1-5), filtered by Google Play itself, e.g. 1 to watch complaints. Empty returns all."
          },
          "scrapeReviews.since": {
            "title": "Reviews since",
            "type": "string",
            "description": "Only reviews published on or after this date (YYYY-MM-DD). Needs **Newest first**; reading stops at the first older review, so older reviews are never charged."
          },
          "onlyNewReviews": {
            "title": "Only new reviews since the last run",
            "type": "boolean",
            "description": "For scheduled monitoring of one app: reads newest first and remembers the newest review already returned (per app, language and star filter, in a key-value store named `google-play-reviews-state` in your account), so each run returns only reviews published since. The first run is the baseline: cap it with **Maximum records**.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "maxLength": 60,
            "type": "string",
            "description": "Keeps separate memories for different monitoring tasks that watch the same app.",
            "default": "default"
          },
          "scrapeAppSearch.keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Search keywords; each keyword returns the apps Google Play lists for it.",
            "items": {
              "type": "string"
            }
          },
          "scrapeAppSearch.country": {
            "title": "Country",
            "type": "string",
            "description": "Storefront country for the search, e.g. `us`, `in`, `de`. Empty means `us`."
          },
          "scrapeAppUrls.urls": {
            "title": "App URLs",
            "type": "array",
            "description": "App URLs or app IDs (`com.whatsapp`). `hl`/`gl` URL parameters set language and country. Category URLs such as `https://play.google.com/store/apps/category/WEATHER` return the apps in that category.",
            "items": {
              "type": "string"
            }
          },
          "scrapeSimilarApps.urls": {
            "title": "App URLs",
            "type": "array",
            "description": "App URLs or app IDs to find similar apps for.",
            "items": {
              "type": "string"
            }
          },
          "count": {
            "title": "Maximum records",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on records across the whole run (you pay per record). Empty means everything Google Play returns."
          },
          "cursor": {
            "title": "Start from cursor",
            "type": "string",
            "description": "Resume a previous run: paste the `lastCursor` value from that run's key-value store. Use the same action, apps and language.",
            "default": ""
          },
          "proxySource": {
            "title": "Proxy",
            "enum": [
              "owner",
              "apify_residential",
              "custom_pool"
            ],
            "type": "string",
            "description": "Built-in works for Google Play. Residential uses your own Apify Residential traffic.",
            "default": "owner"
          },
          "apifyProxyCountry": {
            "title": "Residential proxy country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country for `My Apify Residential proxies`.",
            "default": "US"
          },
          "apifyProxySessions": {
            "title": "Apify proxy sessions",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Sticky sessions (exits) to rotate over when one is refused.",
            "default": 3
          },
          "customProxyUrls": {
            "title": "My custom proxy list (secret)",
            "type": "string",
            "description": "For `My custom proxy list`: one http(s)://user:password@host:port per line (semicolons or a JSON array also work)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}