# Google Play & App Store Reviews Scraper (`pintostudio/gapple-reviews`) Actor

Scrape user reviews from Google Play and the Apple App Store in one Actor. Get ratings, review text, dates and authors for any app by ID or search term, with deep pagination and newest, oldest, highest or lowest sorting. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/pintostudio/gapple-reviews.md
- **Developed by:** [Pinto Studio](https://apify.com/pintostudio) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 reviews

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 & App Store Review Scraper

Scrapes app reviews from Google Play and/or the App Store. One job, done properly: deep pagination past
both stores' usual limits, duplicate-safe even on very high-traffic apps, and if something goes wrong
partway through a long scrape, it keeps what it already found instead of throwing it all away.

### Overview

Give it an app (by id, or just a search term) and how many reviews you want. It fetches them page by page
and **pushes each page to the dataset as soon as it arrives** — not all at once at the end — so a run that
gets interrupted, times out, or hits a transient block from the store still leaves you with whatever it
managed to collect, not an empty dataset.

### Input Configuration

| Parameter | Type | Default | Description |
|---|---|---|---|
| `source` | string | `"google"` | `"google"`, `"apple"`, or `"all"` (scrapes both, tags each review with its `source`). |
| `appId` | string | — | Google: the package name (e.g. `com.whatsapp`). Apple: the numeric App Store id (e.g. `553834731`) or the bundle id (e.g. `com.midasplayer.apps.candycrushsaga`). |
| `term` | string | — | Used only when `appId` is empty: searches for this term and scrapes reviews for the first result. |
| `country` | string | `"us"` | 2-letter store country code. |
| `lang` | string | — | Language code for localized review text. |
| `sort` | string | `"newest"` | `"newest"`, `"oldest"`, `"highest"`, or `"lowest"` — see Parameter Options below. |
| `maxReviews` | integer | `100` | How many reviews to fetch (per store, if `source` is `"all"`). Max `2000`. |

One of `appId` or `term` is required.

### Parameter Options

#### `sort`

- **`newest`**: real pagination on both stores, no depth limit found (tested past 10,000 reviews deep on
  the App Store, well past the ~500-review cap the old `app-store-scraper` package was limited to).
- **`highest`** (Google only — Google supports a native "top rated" review sort; Apple doesn't): same
  real, deep pagination.
- **`oldest`** / **`lowest`**, and *all* of Apple's sorting (its reviews endpoint has no working sort
  parameter at all — verified directly against the live endpoint, every sort value comes back in the
  identical order): drawn from the 200 most recent reviews only, sorted locally. Neither store's API can
  be asked to start counting from the other end of an app's review history, so `maxReviews` above 200
  won't get you more reviews for these sort orders — it'll just sort the same 200 differently.

#### Picking the app

Prefer `appId` when you have it — it's a direct hit. `term` is there for convenience (search once, scrape
reviews for whatever comes back first); if the first search result isn't the app you meant, use `appId`
instead to be exact.

### Output Format

Each review is pushed to the dataset as its own row:

```json
{
  "source": "apple",
  "id": "9902716079",
  "userName": "Goldenmom12",
  "title": "Very Frustrating",
  "text": "I do not get why a game is made to be no fun...",
  "score": 5,
  "version": "1.303.0",
  "date": "2023-05-07T16:16:48Z",
  "url": "https://apps.apple.com/us/app/id553834731"
}
```

The run's `OUTPUT` (key-value store) holds a summary, not the reviews themselves:

```json
{
  "appId": "553834731",
  "term": null,
  "source": "apple",
  "sort": "newest",
  "maxReviews": 260,
  "totalReviews": 260,
  "byStore": { "apple": 260 },
  "partial": false,
  "errors": {}
}
```

If a store got blocked partway through, `partial` is `true` and `errors` names which store and why —
check `byStore` to see how many you actually got from each before deciding whether to re-run.

### Data Storage

1. **Dataset**: one row per review, pushed incrementally as each page is fetched.
2. **Key-Value Store**: the run summary above, under the key `OUTPUT`.

### Error Handling

- Missing both `appId` and `term`, or an invalid `source`/`sort`, fails the run immediately with a clear
  message — nothing is fetched.
- A transient block from either store is retried automatically (several attempts, with backoff, and
  through a proxy too if one is configured) before it's ever treated as a real failure.
- If a store still can't be reached after that, the run keeps going (or, for `source: "all"`, keeps the
  *other* store's results) rather than discarding everything. The run only fails outright if **nothing at
  all** could be fetched — check `OUTPUT.errors` either way to see what happened per store.
- Every review in the dataset is deduplicated by id within the run, so a page-boundary overlap (both
  stores can occasionally shift a review across two page fetches on very high-traffic apps — a feed-churn
  quirk, not a bug here) never shows up as a duplicate row.

### Performance Tips

1. Use `appId` instead of `term` when you have it — skips the extra search lookup.
2. Keep `maxReviews` to what you actually need; `sort` other than `newest`/`highest` doesn't go past 200
   reviews anyway (see Parameter Options).
3. `source: "all"` doubles the work (two independent scrapes) — use a single `source` when you only need
   one store.

### Integration Examples

#### JavaScript/Node.js

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const run = await client.actor('YOUR_ACTOR_ID').call({
  source: 'apple',
  appId: '553834731',
  maxReviews: 500,
  sort: 'newest'
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Got ${items.length} reviews`);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("YOUR_ACTOR_ID").call(run_input={
    "source": "google",
    "appId": "com.whatsapp",
    "maxReviews": 500,
    "sort": "highest"
})

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(f"Got {len(items)} reviews")
```

### Support

If you have any questions or encounter any issues, please consult the Apify documentation or reach out to
us through one of the following channels:

- **Telegram**: [@pintoflow](https://t.me/pintoflow)
- **Email**: <pintoflowpt@gmail.com>
- **Apify Platform**: You can also contact us directly through this platform.

# Actor input Schema

## `source` (type: `string`):

Which store to scrape reviews from. "all" scrapes both and tags each review with its source.

## `appId` (type: `string`):

Google: the package name (e.g. com.whatsapp). Apple: the numeric App Store id (e.g. 553834731) or the bundle id (e.g. com.midasplayer.apps.candycrushsaga). Leave empty to resolve the app from "Search term" instead.

## `term` (type: `string`):

Used only when App ID is empty: the actor searches for this term on the selected store(s) and scrapes reviews for the first result.

## `country` (type: `string`):

2-letter store country code.

## `lang` (type: `string`):

Language code for localized review text. Leave empty for the store's default.

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

"newest" and "highest" (Google only) use the store's own real pagination and can go as deep as Max reviews allows. "oldest"/"lowest", and all of Apple's sorting, are drawn from the 200 most recent reviews only (see README) — Max reviews above 200 won't get you more for those.

## `maxReviews` (type: `integer`):

How many reviews to fetch (per store, if Source is "all"). Fetched and saved to the dataset incrementally, a page at a time, so a run that stops early still keeps what it already found.

## Actor input object example

```json
{
  "source": "google",
  "country": "us",
  "sort": "newest",
  "maxReviews": 100
}
```

# Actor output Schema

## `reviews` (type: `string`):

Dataset items with the scraped reviews.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("pintostudio/gapple-reviews").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("pintostudio/gapple-reviews").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 '{}' |
apify call pintostudio/gapple-reviews --silent --output-dataset

```

## MCP server setup

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

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/EKtKvM4ammSejWBVx/builds/uzoaKzFUQzeugHmfy/openapi.json
