{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Play Store & Reviews Scraper ($0.10/1k)",
    "description": "Extract Android app metadata, ratings, install bands, localized pricing, changelogs, and paginated Google Play user reviews with developer replies over direct HTTPS.",
    "version": "1.0",
    "x-build-id": "EMajq6PDW4d9TnRNA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tsun_tsun~google-play-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tsun_tsun-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/tsun_tsun~google-play-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tsun_tsun-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/tsun_tsun~google-play-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tsun_tsun-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": {
          "appInputs": {
            "title": "Google Play Package IDs or App URLs",
            "type": "array",
            "description": "Target Android apps to scrape. Accepts bare package IDs (e.g. com.openai.chatgpt, com.spotify.music) or full Google Play URLs (https://play.google.com/store/apps/details?id=com.openai.chatgpt&gl=DE&hl=de). URL gl/hl parameters are honored when countries/language are not explicitly set.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Google Play Search Terms",
            "type": "array",
            "description": "Keywords to search on Google Play Store (e.g. 'ai assistant', 'budget tracker', 'language learning'). Discovered package IDs are deduplicated against appInputs per country.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Country Codes (gl)",
            "type": "array",
            "description": "Two-letter ISO 3166-1 alpha-2 country codes passed to Google Play as gl (e.g. ['US'], ['US', 'GB', 'DE', 'JP']; 'UK' maps to 'GB'). Leave empty to honor ?gl= on input URLs and default to ['US'] for bare package IDs and searchTerms.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "language": {
            "title": "Language Code (hl)",
            "type": "string",
            "description": "Language tag passed to Google Play as hl (e.g. 'en', 'de', 'fr', 'es', 'ja', 'pt-BR'). Leave empty to honor ?hl= on input URLs and default to 'en' for bare package IDs and searchTerms.",
            "default": ""
          },
          "includeAppProfile": {
            "title": "Include App Profile Records",
            "type": "boolean",
            "description": "Emit a full app_profile metadata record (ratings, install band, pricing, IAP/ads flags, version, developer contact, description, screenshots) for each verified app per country (billed as app-analyzed).",
            "default": true
          },
          "includeReviews": {
            "title": "Include User Reviews",
            "type": "boolean",
            "description": "Paginate Google Play user reviews via batchexecute and emit matching review records including developer replies and app versions (billed as review-scraped).",
            "default": true
          },
          "sort": {
            "title": "Review Sort Order",
            "enum": [
              "newest",
              "mostRelevant",
              "rating"
            ],
            "type": "string",
            "description": "Order requested from Google Play's review endpoint: newest first (newest), most helpful/relevant (mostRelevant), or sorted by rating (rating).",
            "default": "newest"
          },
          "minRating": {
            "title": "Minimum Star Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with a star rating greater than or equal to this value (1 to 5). Setting minRating equal to maxRating enables server-side exact-star filtering on Google Play.",
            "default": 1
          },
          "maxRating": {
            "title": "Maximum Star Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with a star rating less than or equal to this value (1 to 5). Pair minRating=1 and maxRating=2 to isolate negative feedback and crash reports.",
            "default": 5
          },
          "postedWithinDays": {
            "title": "Posted Within Last N Days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep only reviews published within the past N days. Under sort='newest', pagination stops early once a full page is older than this cutoff. Set to 0 for no date limit.",
            "default": 0
          },
          "minThumbsUp": {
            "title": "Minimum Helpful Votes",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Keep only reviews with at least this many thumbs-up helpfulness votes. Set to 0 to keep all reviews regardless of vote count.",
            "default": 0
          },
          "keywords": {
            "title": "Review Keyword Filter",
            "type": "array",
            "description": "Optional case-insensitive keywords matched against the review body text using OR logic (e.g. ['crash', 'billing', 'login']). Leave empty to keep all reviews.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "requireDeveloperReply": {
            "title": "Require Developer Reply",
            "type": "boolean",
            "description": "When enabled, keep only reviews that include a public response from the app developer.",
            "default": false
          },
          "maxAppsPerSearch": {
            "title": "Max Apps Per Search Term",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum number of unique Android package IDs extracted per search term per country (1 to 30).",
            "default": 5
          },
          "maxReviewsPerApp": {
            "title": "Max Reviews Per App (Per Country)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum matching reviews to extract per app per country (0 to 5000). Each batchexecute page retrieves up to 100 reviews.",
            "default": 100
          },
          "concurrency": {
            "title": "Worker Concurrency",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Number of apps processed in parallel (1 to 6). Keep between 2 and 4 for fast throughput without triggering Google Play rate limits.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}