# Google Play Store & Reviews Scraper ($0.10/1k) (`tsun_tsun/google-play-reviews-scraper`) Actor

Extract Android app metadata, ratings, install bands, localized pricing, changelogs, and paginated Google Play user reviews with developer replies over direct HTTPS.

- **URL**: https://apify.com/tsun_tsun/google-play-reviews-scraper.md
- **Developed by:** [tsun tsun](https://apify.com/tsun_tsun) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.07 / 1,000 google play reviews

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Play Store & Reviews Scraper ($0.10/1k)

Extract structured Android app profiles and paginated customer reviews from Google Play over native Node.js HTTPS keep-alive connections inside a 256 MB container, with zero headless browsers and `$0` proxy fees.

Pass Android package IDs, full Google Play URLs (including localized `?gl=` and `?hl=` parameters), or search keywords. The Actor reads `AF_initDataCallback` (`ds:5`) for 31 normalized `app_profile` fields and paginates `batchexecute` (`oCPfdb`) at up to 100 reviews per POST request for `review` records with developer replies, thumbs-up counts, and app versions.

### How it works

Instead of scrolling DOM drawers in Chrome or matching HTML with backtracking regexes, the scraper talks directly to Google Play's two public data surfaces:

- Linear `ds:5` metadata parser: scans balanced JSON brackets in O(n) time to extract rating score (4 decimals), total ratings and review counts, install bands (`"1,000,000,000+"` and numeric `minInstalls`), localized upfront price and currency, IAP/ads flags, developer ID/email/website, privacy policy URL, version, release/update dates, cleaned description, changelog (`whatsNew`), icon, and deduplicated screenshots.
- Paginated `batchexecute` (`oCPfdb`) review stream: fetches up to 100 reviews per cursor token, captures `developerReply`, `developerReplyAt`, `appVersion`, and `thumbsUpCount`, and streams each matching page straight to `Actor.pushData`.
- Server-side and pre-push filtering: supports `minRating`, `maxRating`, `postedWithinDays`, `minThumbsUp`, case-insensitive `keywords`, and `requireDeveloperReply`. Setting `minRating === maxRating` forwards the exact star filter directly to Google Play server-side; under `sort: "newest"`, pagination stops early once a full page falls before `postedWithinDays`. Filtered-out and duplicate reviews are dropped before billing.
- Storefront localization and discovery: combines direct `appInputs` with `searchTerms` across ISO country codes (`gl`) and listing languages (`hl`), honors `?gl=` and `?hl=` embedded in input URLs when `countries`/`language` are not explicitly overridden, and deduplicates targets per `(packageId, country, language)`.

### Use cases

- Release regression monitoring: run daily schedules with `sort: "newest"`, `minRating: 1`, `maxRating: 2`, and `postedWithinDays: 2` to catch version-specific crash spikes grouped by `appVersion`.
- Competitor ASO and localized pricing tracking: combine `searchTerms` with multi-country `countries` (`US`, `GB`, `DE`, `JP`) to track category placements, localized prices, IAP/ads flags, and update cadence.
- Support SLA and voice-of-customer audits: filter with `keywords` (`["billing", "login", "refund"]`) or `requireDeveloperReply: true` to compare developer response coverage and common complaints.
- On-demand Android review analysis for AI agents: attach via Apify MCP (`?tools=`) so Claude Code or Cursor can summarize recent low-star feedback and developer replies directly from live store data.

### Measured Cloud & local benchmarks

Measured with zero proxies over direct HTTPS keep-alive connections:

| Environment | Workload | Output Records | Peak RAM | Wall-Clock Time |
| :--- | :--- | :--- | :--- | :--- |
| **256 MB Apify Cloud** | Live app profile + paginated reviews (`com.openai.chatgpt`, `US / en`) | `11` records (`1` `app_profile` + `10` `review`) | **`38.7 MB`** | **`2.08 s`** |
| **Local Node.js 22** (`concurrency: 3`) | 4 direct inputs (3 live + 1 HTTP 404) + 1 search term (`maxAppsPerSearch: 2`), `maxReviewsPerApp: 120`, `sort: "mostRelevant"` | `5` `app_profile` + `600` `review` (81 with developer replies, 588 with `appVersion`) | Streaming | **`2.58 s`** (~233 reviews/sec) |

Default container memory is `256 MB` (`128 MB` minimum, `512 MB` maximum). Because every review page streams to the dataset as soon as it arrives, memory stays flat even when extracting 5,000 reviews per app.

### Input parameters

Provide at least one entry in `appInputs` or `searchTerms`. Neither field sets a hidden default during API or MCP runs (`appInputs` only prefills `["com.openai.chatgpt"]` in the Apify Console UI for quick testing).

| Parameter | Type | Default | Limits | Description |
| :--- | :--- | :--- | :--- | :--- |
| `appInputs` | `string[]` | *(none)* | any package IDs/URLs | Android package IDs (`com.openai.chatgpt`) or Google Play URLs (`?gl=`/`?hl=` honored when not overridden). |
| `searchTerms` | `string[]` | *(none)* | any queries | Search queries run on Google Play (`c=apps`) per country to discover matching package IDs. |
| `countries` | `string[]` | `[]` | ISO alpha-2 (`UK` -> `GB`) | Country codes passed as `gl`. Empty honors `?gl=` on input URLs and defaults to `["US"]` for bare IDs and `searchTerms`. |
| `language` | `string` | `""` | BCP-47 short tag | Language tag passed as `hl` (`en`, `de`, `fr`, `es`, `ja`, `pt-BR`). Empty honors `?hl=` on input URLs and defaults to `"en"`. |
| `includeAppProfile` | `boolean` | `true` | `true` / `false` | Emit an `app_profile` record for each verified app per country (billed as `app-analyzed`). |
| `includeReviews` | `boolean` | `true` | `true` / `false` | Paginate and emit matching `review` records (billed as `review-scraped`). |
| `sort` | `string` | `"newest"` | `newest`, `mostRelevant`, `rating` | Review sort order sent to Google Play. |
| `minRating` | `integer` | `1` | `1` to `5` | Minimum star rating. Equal `minRating` and `maxRating` enables server-side exact-star filtering. |
| `maxRating` | `integer` | `5` | `1` to `5` | Maximum star rating (`minRating > maxRating` swaps automatically). |
| `postedWithinDays` | `integer` | `0` | `0` to `3650` | Keep only reviews published in the last N days (`0` disables age filtering). Stops early under `sort: "newest"`. |
| `minThumbsUp` | `integer` | `0` | `0` to `1000000` | Keep only reviews with at least N helpful thumbs-up votes (`0` disables vote filtering). |
| `keywords` | `string[]` | `[]` | any strings | Case-insensitive OR keyword filter matched against each review's `body` text. |
| `requireDeveloperReply` | `boolean` | `false` | `true` / `false` | Keep only reviews that include a public developer response. |
| `maxAppsPerSearch` | `integer` | `5` | `1` to `30` | Maximum unique package IDs extracted per search term per country. |
| `maxReviewsPerApp` | `integer` | `100` | `0` to `5000` | Maximum matching reviews collected per app per country. |
| `concurrency` | `integer` | `3` | `1` to `6` | Parallel app workers. Keep at `2-4` for fast throughput without rate limits. |

#### Example input

```json
{
  "appInputs": [
    "com.openai.chatgpt",
    "https://play.google.com/store/apps/details?id=com.spotify.music"
  ],
  "searchTerms": ["ai assistant"],
  "countries": ["US", "GB"],
  "language": "en",
  "includeAppProfile": true,
  "includeReviews": true,
  "sort": "newest",
  "minRating": 1,
  "maxRating": 3,
  "postedWithinDays": 14,
  "minThumbsUp": 2,
  "keywords": ["crash", "billing", "login"],
  "requireDeveloperReply": false,
  "maxAppsPerSearch": 3,
  "maxReviewsPerApp": 200,
  "concurrency": 3
}
```

### Example output

Both record types share the default dataset and are distinguished by `recordType`. A run summary JSON (`appsProcessed`, `appProfilesPushed`, `reviewsPushed`, `notFound`, `errors`, `durationMs`) is also saved to the default Key-Value Store under `OUTPUT`.

#### App profile (`recordType: "app_profile"`)

```json
{
  "recordType": "app_profile",
  "packageId": "com.openai.chatgpt",
  "appName": "ChatGPT",
  "developer": "OpenAI",
  "developerId": "7577165439232992817",
  "developerEmail": "support@openai.com",
  "developerWebsite": "https://help.openai.com",
  "privacyPolicyUrl": "https://openai.com/policies/privacy-policy",
  "category": "Productivity",
  "rating": 4.7815,
  "ratingCount": 69698054,
  "reviewCount": 214079,
  "installs": "1,000,000,000+",
  "minInstalls": 1000000000,
  "price": 0,
  "currency": "USD",
  "isFree": true,
  "offersIap": true,
  "containsAds": true,
  "contentRating": "Teen",
  "version": "1.2026.321",
  "updatedAt": "2026-11-21T20:18:46.000Z",
  "releasedAt": "2023-07-21T23:44:28.000Z",
  "description": "Introducing ChatGPT for Android: OpenAI's latest advancements at your fingertips.",
  "whatsNew": "Minor fixes and improvements",
  "iconUrl": "https://play-lh.googleusercontent.com/T9J8e9oxxPd600j_KPM4KK2GHfNpUpGBdTy8lHPXBXpOUfGusRuZXj0UMgFNrP8we6LVt9V-AibEgcLootE6VK4",
  "screenshotUrls": [
    "https://play-lh.googleusercontent.com/29Ke3337zH310guLREGkQUo9x1h4pr3c8sZqRqqW8xmPlHI_TQK9EJWB_zzIICFk8LAMME6ewkPqtunHKTd9IQ"
  ],
  "country": "US",
  "language": "en",
  "storeUrl": "https://play.google.com/store/apps/details?id=com.openai.chatgpt&hl=en&gl=US",
  "scrapedAt": "2026-11-25T04:45:17.071Z"
}
```

#### User review with developer reply (`recordType: "review"`)

```json
{
  "recordType": "review",
  "packageId": "com.spotify.music",
  "appName": "Spotify: Music and Podcasts",
  "developer": "Spotify AB",
  "reviewId": "f115d486-be74-4b29-8b3f-29030bc91d60",
  "authorName": "Bryan Christopher",
  "authorAvatarUrl": "https://play-lh.googleusercontent.com/a-/ALV-UjWopTG22KTTQBRD3l42YbvYmTx6RyrdnBEqwX7_xR9r_nD5AEAF",
  "rating": 2,
  "body": "This will be the first time in 12 yrs that I have been dissatisfied with Spotify. For about 2 months, now, Spotify has been glitching. I subscribe to premium and for a while I have to endure the music stopping between each song, often forcing me to push play or select next track. I am also unable to add songs to my playlists. Unsubscribing.",
  "publishedAt": "2026-09-03T23:46:07.000Z",
  "thumbsUpCount": 94,
  "developerReply": "Hi, we hear you. We'd recommend following the troubleshooting steps on \"Spotify pauses / music stops\" at community.spotify.com. Updating the app to the latest version might also help with not being able to add songs.",
  "developerReplyAt": "2026-09-04T16:02:42.000Z",
  "appVersion": "9.1.78.2218",
  "sort": "mostRelevant",
  "country": "US",
  "language": "en",
  "storeUrl": "https://play.google.com/store/apps/details?id=com.spotify.music&hl=en&gl=US",
  "scrapedAt": "2026-11-25T04:45:17.657Z"
}
```

#### Output field reference

| Field | Record | Type | Description |
| :--- | :--- | :--- | :--- |
| `recordType` | Both | `string` | `"app_profile"` or `"review"`. |
| `packageId` | Both | `string` | Android package identifier (e.g. `com.openai.chatgpt`). |
| `appName` / `developer` | Both | `string`, `string \| null` | Localized app title and publisher display name. |
| `country` / `language` / `storeUrl` | Both | `string` | Storefront `gl` code, `hl` language tag, and canonical Google Play URL. |
| `developerId` / `developerEmail` / `developerWebsite` | `app_profile` | `string \| null` | Google Play developer ID, public support email, and website URL. |
| `privacyPolicyUrl` / `category` / `contentRating` | `app_profile` | `string \| null` | Privacy policy link, primary store category, and age rating label. |
| `rating` / `ratingCount` / `reviewCount` | `app_profile` | `number \| null` | Average star score (4 decimals), total star ratings, and written review count. |
| `installs` / `minInstalls` | `app_profile` | `string \| null`, `number \| null` | Display install band (`"1,000,000,000+"`) and numeric lower bound (`1000000000`). |
| `price` / `currency` / `isFree` | `app_profile` | `number \| null`, `string \| null`, `boolean` | Upfront purchase price in major currency units, ISO currency code, and free flag. |
| `offersIap` / `containsAds` | `app_profile` | `boolean` | Whether the listing declares in-app purchases or ads. |
| `version` / `updatedAt` / `releasedAt` | `app_profile` | `string \| null` | Current Android version (`null` when Play Store reports "Varies with device") and ISO-8601 dates. |
| `description` / `whatsNew` | `app_profile` | `string`, `string \| null` | Cleaned plain-text listing description and release notes with HTML breaks and entities decoded. |
| `iconUrl` / `screenshotUrls` | `app_profile` | `string \| null`, `string[]` | Store icon artwork and deduplicated screenshot URLs. |
| `reviewId` | `review` | `string` | Unique Google Play review UUID used for deduplication per `(packageId, country, language)`. |
| `authorName` / `authorAvatarUrl` | `review` | `string \| null` | Reviewer display name and profile avatar URL. |
| `rating` / `body` / `thumbsUpCount` | `review` | `number`, `string`, `number` | Star rating (`1-5`), review text, and helpful votes count. |
| `publishedAt` / `appVersion` / `sort` | `review` | `string \| null`, `string` | Review ISO-8601 UTC timestamp, app version at review time, and sort mode used. |
| `developerReply` / `developerReplyAt` | `review` | `string \| null` | Developer response text and ISO-8601 UTC response timestamp, when present. |
| `scrapedAt` | Both | `string` | ISO-8601 UTC timestamp when the record was extracted. |

### Pay-Per-Event pricing

Billing uses two independent Pay-Per-Event charges with **$0 start fee**, **$0 compute fee**, and **$0 proxy cost**. Missing 404 apps, invalid inputs, duplicate reviews, and filtered-out reviews always cost `$0`.

| Event | Free (0%) | Bronze (-10%) | Silver (-20%) | Gold+ (-30%) |
| :--- | :--- | :--- | :--- | :--- |
| **Google Play app profile** (`app-analyzed`, per app) | `$0.0020` (`$2.00 / 1k`) | `$0.0018` (`$1.80 / 1k`) | `$0.0016` (`$1.60 / 1k`) | `$0.0014` (`$1.40 / 1k`) |
| **Google Play review** (`review-scraped`, per review) | `$0.00010` (`$0.10 / 1k`) | `$0.00009` (`$0.09 / 1k`) | `$0.00008` (`$0.08 / 1k`) | `$0.00007` (`$0.07 / 1k`) |

On Apify's Free plan, the included **$5/month free credit** covers **up to 50,000 Google Play reviews/month** at `$0.10 / 1k` (`includeAppProfile: false`) or **2,500 app profiles/month** at `$2.00 / 1k` (`includeReviews: false`). Sample run costs on the Free plan:

- 10 apps + 1,000 reviews each (10 profiles + 10,000 reviews): `$0.02 + $1.00 = $1.02` (`$0.714` on Gold+).
- 500 app profiles only (`includeReviews: false`): `$1.00` (`$0.70` on Gold+).
- 5,000 reviews only (`includeAppProfile: false`): `$0.50` (`$0.35` on Gold+).

Profile and review budgets are tracked independently, so exhausting your `app-analyzed` allowance does not stop remaining `review-scraped` pushes that still fit inside your run's `maxTotalChargeUsd`.

### Use with AI agents via MCP

Connect this Actor directly to Claude Code, Claude Desktop, Cursor, or any Streamable HTTP MCP client using Apify's canonical `?tools=` endpoint.

#### Claude Code

```bash
claude mcp add --transport http apify-google-play \
  "https://mcp.apify.com/?tools=tsun_tsun/google-play-reviews-scraper" \
  --header "Authorization: Bearer $APIFY_TOKEN"
```

#### Claude Desktop & Cursor

```json
{
  "mcpServers": {
    "apify-google-play": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=tsun_tsun/google-play-reviews-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

Example prompt: *"Pull the last 7 days of 1-star and 2-star US Google Play reviews for `com.spotify.music` that mention crashes or playback glitches, group them by `appVersion`, and list which ones already received a developer reply."*

### API usage

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/tsun_tsun~google-play-reviews-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "appInputs": ["com.openai.chatgpt"],
    "countries": ["US"],
    "language": "en",
    "includeAppProfile": true,
    "includeReviews": true,
    "sort": "newest",
    "maxReviewsPerApp": 50
  }'
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("tsun_tsun/google-play-reviews-scraper").call(
    run_input={
        "appInputs": ["com.openai.chatgpt", "com.spotify.music"],
        "countries": ["US"],
        "language": "en",
        "sort": "mostRelevant",
        "minRating": 1,
        "maxRating": 2,
        "requireDeveloperReply": True,
        "maxReviewsPerApp": 50,
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["recordType"] == "review":
        print(
            f"[{item['rating']}* v{item['appVersion']}] "
            f"{item['authorName']} (+{item['thumbsUpCount']}): {item['body'][:100]}"
        )
```

#### JavaScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('tsun_tsun/google-play-reviews-scraper').call({
    appInputs: ['com.openai.chatgpt'],
    searchTerms: ['ai assistant'],
    countries: ['US', 'DE'],
    language: 'en',
    sort: 'newest',
    maxAppsPerSearch: 3,
    maxReviewsPerApp: 100,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const profiles = items.filter((item) => item.recordType === 'app_profile');
const reviews = items.filter((item) => item.recordType === 'review');
console.log(`Collected ${profiles.length} app profiles and ${reviews.length} reviews.`);
```

### Frequently asked questions

#### How are `?gl=` and `?hl=` handled on full Google Play URLs?

If you pass a localized URL such as `https://play.google.com/store/apps/details?id=com.openai.chatgpt&gl=DE&hl=de` and leave `countries` (`[]`) and `language` (`""`) empty, the Actor automatically targets `DE` and `de` while defaulting bare package IDs and `searchTerms` to `US` and `en`. Whenever you explicitly provide `countries` or `language` in input, those explicit parameters take precedence.

#### How does exact-star filtering save pagination calls?

When `minRating` equals `maxRating` (for example both set to `1`), the scraper passes `[null, 1]` inside Google Play's `batchexecute` RPC payload so Google Play filters on that star rating server-side instead of paginating through unrelated 5-star reviews.

#### Am I charged for 404 package IDs, duplicate reviews, or filtered-out reviews?

No. Missing apps return HTTP 404, appear under `notFound` in Key-Value Store `OUTPUT`, and cost `$0`. All review filters (`minRating`, `maxRating`, `postedWithinDays`, `minThumbsUp`, `keywords`, `requireDeveloperReply`) and UUID deduplication run before `Actor.pushData`, so dropped items cost `$0`.

#### Why does this run under 40 MB RAM without proxies?

It avoids headless browsers entirely, parses the `ds:5` script block with a linear balanced-bracket scanner rather than building a full DOM tree, and streams each 100-review `batchexecute` page straight to the dataset over keep-alive HTTPS (`38.7 MB` peak RAM in 256 MB Cloud tests). Keep `concurrency` at `2-4` to stay well inside anonymous rate limits.

### When not to use this Actor

- Exact download counts or revenue analytics: public Google Play pages publish install bands (`"100,000,000+"`) and star/review totals only. Exact installs, retention, crash rates, and IAP revenue remain private inside Google Play Console.
- Full historical archival of millions of reviews for a single app: `maxReviewsPerApp` caps at `5,000` (max 100 paginated requests per target) to keep runs fast and within anonymous rate limits. For ongoing tracking, schedule daily runs with `sort: "newest"` and `postedWithinDays: 1` or `2`.
- Private beta tracks or authenticated Play Store actions: closed testing tracks, pre-registration perks, or posting developer replies require authenticated Google Play Developer API credentials.
- iOS App Store monitoring: this Actor targets Android listings on `play.google.com` only. Pair it with [Apple App Store & Reviews Scraper (iOS Apps & Ratings)](https://apify.com/tsun_tsun/app-store-reviews-scraper) for iOS parity.

### Runtime & limits

- Hardcodes `https://play.google.com` host validation (including redirects), drains 3xx redirect bodies safely with a `64 KB` cap, caps plain and decompressed responses at `10 MB`, enforces 15-second timeouts, retries `429`/`5xx` with `Retry-After` backoff, and drains cleanly on abort.

### Related Actors

| Actor | What it covers |
| :--- | :--- |
| [Apple App Store & Reviews Scraper (iOS Apps & Ratings)](https://apify.com/tsun_tsun/app-store-reviews-scraper) | Monitor iOS app metadata, ratings, and filtered App Store reviews on the same zero-proxy architecture. |
| [Shopify Store & Products Scraper (Prices & Apps)](https://apify.com/tsun_tsun/shopify-store-intel) | Extract Shopify product catalogs, variant pricing, discount percentages, installed apps, and public contacts. |
| [WooCommerce Store & Product Scraper (Prices & Plugins)](https://apify.com/tsun_tsun/woocommerce-store-intel) | Extract WooCommerce catalogs, minor-unit decimal prices, discount percentages, and WordPress plugin stacks. |
| [Website Contact, Email MX/DMARC & Tech Stack Enricher](https://apify.com/tsun_tsun/website-lead-tech-enricher) | Enrich developer websites with public contact emails, DNS MX/SPF/DMARC, ATS detection, and 70 tech stack signatures. |
| [Google News & Universal RSS/Atom Feed Scraper](https://apify.com/tsun_tsun/google-news-rss-intelligence) | Track press coverage, outage news, and competitor launch announcements with decoded canonical publisher URLs. |
| [Apify Automation Toolkit](https://pie527645-cloud.github.io/apify-automation-toolkit/) | Free interactive utilities, MCP configuration generators, and n8n/workflow templates for pairing these Actors. |

# Changelog

This Actor's version history is a separate document: https://apify.com/tsun_tsun/google-play-reviews-scraper/changelog.md

# Actor input Schema

## `appInputs` (type: `array`):

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.

## `searchTerms` (type: `array`):

Keywords to search on Google Play Store (e.g. 'ai assistant', 'budget tracker', 'language learning'). Discovered package IDs are deduplicated against appInputs per country.

## `countries` (type: `array`):

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.

## `language` (type: `string`):

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.

## `includeAppProfile` (type: `boolean`):

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).

## `includeReviews` (type: `boolean`):

Paginate Google Play user reviews via batchexecute and emit matching review records including developer replies and app versions (billed as review-scraped).

## `sort` (type: `string`):

Order requested from Google Play's review endpoint: newest first (newest), most helpful/relevant (mostRelevant), or sorted by rating (rating).

## `minRating` (type: `integer`):

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.

## `maxRating` (type: `integer`):

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.

## `postedWithinDays` (type: `integer`):

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.

## `minThumbsUp` (type: `integer`):

Keep only reviews with at least this many thumbs-up helpfulness votes. Set to 0 to keep all reviews regardless of vote count.

## `keywords` (type: `array`):

Optional case-insensitive keywords matched against the review body text using OR logic (e.g. \['crash', 'billing', 'login']). Leave empty to keep all reviews.

## `requireDeveloperReply` (type: `boolean`):

When enabled, keep only reviews that include a public response from the app developer.

## `maxAppsPerSearch` (type: `integer`):

Maximum number of unique Android package IDs extracted per search term per country (1 to 30).

## `maxReviewsPerApp` (type: `integer`):

Maximum matching reviews to extract per app per country (0 to 5000). Each batchexecute page retrieves up to 100 reviews.

## `concurrency` (type: `integer`):

Number of apps processed in parallel (1 to 6). Keep between 2 and 4 for fast throughput without triggering Google Play rate limits.

## Actor input object example

```json
{
  "appInputs": [
    "com.openai.chatgpt",
    "https://play.google.com/store/apps/details?id=com.spotify.music"
  ],
  "searchTerms": [
    "ai assistant",
    "budget tracker"
  ],
  "countries": [
    "US",
    "GB",
    "DE"
  ],
  "language": "en",
  "includeAppProfile": true,
  "includeReviews": true,
  "sort": "newest",
  "minRating": 1,
  "maxRating": 5,
  "postedWithinDays": 14,
  "minThumbsUp": 5,
  "keywords": [
    "crash",
    "billing",
    "login"
  ],
  "requireDeveloperReply": false,
  "maxAppsPerSearch": 5,
  "maxReviewsPerApp": 100,
  "concurrency": 3
}
```

# Actor output Schema

## `summary` (type: `string`):

JSON summary written to the default Key-Value Store under key OUTPUT, including counts of processed apps, pushed profiles and reviews, filtered or duplicate skips, budget flags, not-found apps, and errors.

## `records` (type: `string`):

Default dataset containing normalized app_profile and review records extracted from Google Play Store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "appInputs": [
        "com.openai.chatgpt"
    ],
    "searchTerms": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("tsun_tsun/google-play-reviews-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "appInputs": ["com.openai.chatgpt"],
    "searchTerms": [],
}

# Run the Actor and wait for it to finish
run = client.actor("tsun_tsun/google-play-reviews-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "appInputs": [
    "com.openai.chatgpt"
  ],
  "searchTerms": []
}' |
apify call tsun_tsun/google-play-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tsun_tsun/google-play-reviews-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3UxarroiL6MQnaGv0/builds/EMajq6PDW4d9TnRNA/openapi.json
