# App Store Review Brief Scraper (`rainminer/app-store-review-brief-scraper`) Actor

Turn public App Store reviews into a release brief: rating split, ranked complaint themes with counts, quoted complaints, and which complaints rose between the latest and previous app version. Counts are deterministic so every number can be checked against the review text.

- **URL**: https://apify.com/rainminer/app-store-review-brief-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.74 / 1,000 app briefs

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

## App Store Review Brief

Turns public App Store reviews into a release brief an app team can act on:
rating split of the recent sample, complaint themes ranked by how many negative
reviews mention them, short complaint quotes, and which complaints rose between
the latest and previous app version.

The counts are computed deterministically, without a language model, so any
number in the brief can be checked against the review text. On top of those
counts an optional AI layer writes the headline, the summary and a prioritised
fix list. It is a layer on measured data, not a substitute for it.

Reads Apple's public customer reviews feed. No login, no App Store Connect
account, no developer credentials.

### What you get

One dataset row per app (`kind: "brief"`):

- `rating`: average of the analysed sample, 1 to 5 star distribution, and the
  share of reviews at 1 or 2 stars
- `topComplaints`: themes ranked by the number of negative reviews that mention
  them, with each theme's share of negative reviews
- `complaintQuotes`: up to five excerpts from negative reviews with the theme
  each was classified as
- `versionComparison`: per-version slices for the two most recent versions, the
  themes that rose between them, and a plain note when there are too few reviews
  to compare
- `coverage`: newest and oldest review timestamp in the sample, and the versions
  seen
- `signals`: plain sentences built from the counts, ready to paste into a report

Optionally one row per review (`kind: "review"`) with the themes assigned.

### How themes are assigned, and why that matters

Themes come from a fixed keyword list per theme, matched on word boundaries, not
from a language model, and the same list is used whether or not the AI layer is
on. Two consequences, both deliberate:

- The same reviews always produce the same counts, so a number in the brief can be
  reproduced and checked.
- Every count can be audited against the review text, because each review row
  carries the themes it matched.

The lexicon is English only. Reviews in other languages are counted in the rating
split but usually match no theme, which is visible in the data rather than hidden.
Text-based themes cannot detect a complaint that never names it, so treat the
counts as a floor, not a total.

### Coverage, and the one thing that limits it

Apple serves at most about 450 recent reviews per app per country, across ten
pages of fifty. That is the ceiling, not a guarantee: Apple sometimes returns a
single page, or none, for a period, more often when a caller has requested many
pages recently.

This Actor refuses to sell a thin brief. If an app yields fewer reviews than the
coverage minimum (100 by default, `minReviewsForBrief`), you get one
`kind: "insufficient-coverage"` row stating how many reviews were available and
what was required, and no per-app event is charged for that app. Review rows are
not written or charged either in that case. Nothing is billed for work that was
not delivered.

### The optional AI layer

Off by one switch, and never able to invent numbers, because it only sees the
counts this Actor already computed.

- It receives the rating split, the ranked theme counts and up to eight complaint
  quotes, and returns a headline, a short summary, two to four prioritised fixes
  and a version regression callout.
- Its confidence is capped by the evidence, in code, not by its own opinion. A
  brief built on 50 reviews where the top theme has two mentions is reported as
  low confidence with a sentence saying why, even if the model claims otherwise.
- If the model is rate limited, errors, or returns anything that does not match
  the expected shape, the run still delivers the deterministic brief, reports
  `aiStatus` and charges nothing for the AI layer.
- It reports its own cost. Each brief row carries `aiUsage` with the model, prompt
  and completion tokens, and the USD cost OpenRouter reported for that call.
- Bring your own key in `openRouterApiKey` to bill model tokens to your account.
  Without a key the Actor returns the deterministic brief only and charges no AI
  event.

### How much it costs

You pay per event, never per run, and nothing at all for an app that Apple has no
reviews for:

| Event | Price | Charged when |
| --- | --- | --- |
| App brief | $0.00499 per brief | An app produced a complete brief, with counts, ranked themes, quotes and version comparison |
| Review row | $0.00099 per review | Only when `includeReviews` is on, once per review written to the dataset |
| AI brief | $0.00499 per brief | Only when you supply your own OpenRouter key and a validated narrative came back |

A typical run on one app with 150 reviews and the AI layer off, which is the
default, costs about half a cent and returns one brief. Turning on
`includeReviews` for the same app adds about 15 cents of review rows. Apple's
feed is free to read, so there is no proxy or platform usage billed on top of
these events.

### Input

| Field | Default | Meaning |
| --- | --- | --- |
| `appIds` | required | Numeric App Store app IDs, for example `389801252` |
| `country` | `us` | Storefront to read reviews from |
| `maxReviewsPerApp` | 150 | Ceiling on reviews analysed per app, 50 to 450 |
| `includeReviews` | `false` | Also write one row per review |
| `compareVersions` | `true` | Compare the two most recent versions |
| `minReviewsForBrief` | 100 | Refuse to produce a brief below this many reviews |
| `aiBrief` | `false` | Write the narrative layer on top of the counts. Needs your own OpenRouter key |
| `model` | `google/gemini-2.5-flash-lite` | Any OpenRouter model id |
| `openRouterApiKey` | empty | Your own key, so model tokens bill to you |

Find an app ID in the App Store URL: the number after `id`. For example
`apps.apple.com/us/app/instagram/id389801252` is `389801252`.

### Output example

```json
{
  "kind": "brief",
  "appName": "Example App",
  "reviewsAnalyzed": 450,
  "rating": { "averageOfSample": 2.7, "oneTwoStarSharePercent": 56.9 },
  "topComplaints": [
    { "label": "Ads and spam", "reviews": 104, "share": 40.6 },
    { "label": "Bugs and interface", "reviews": 58, "share": 22.7 }
  ],
  "versionComparison": {
    "comparisonEligible": true,
    "regressions": [
      { "label": "Ads and spam", "previousReviews": 21, "latestReviews": 39, "delta": 18 }
    ]
  }
}
```

### Limits worth knowing before you buy

- App Store only. Google Play is a different source with a different access path and
  is not part of this Actor.
- The AI layer is off by default and needs your own OpenRouter key. With no key
  the run returns the deterministic brief, charges no AI event, and sets
  `aiStatus` to `skipped-no-key` so nothing looks like a silent failure.
- Reviews are the most recent ones Apple serves, which for popular apps is days,
  not months. Use the `coverage` timestamps to see the window you actually got.
- Version comparison needs at least five reviews on each of the two most recent
  versions. Below that the per-version slices are still returned without a delta.
- Theme counts are keyword based, so a review that complains without naming the
  thing is not counted for that theme.
- The AI layer writes about the counts it is given. It is not a second opinion on
  the data and it does not read the reviews itself, so it cannot find a complaint
  the keyword list missed.
- Model output can vary between runs even at temperature zero. The counts, themes
  and quotes do not, which is why the auditable part of the row is the
  deterministic part.

### Local development

```bash
yarn install
yarn build
mkdir -p storage/key_value_stores/default
printf '%s' '{"appIds":["389801252"],"country":"us"}' > storage/key_value_stores/default/INPUT.json
node dist/main.js
```

# Actor input Schema

## `appIds` (type: `array`):

Numeric App Store app IDs, for example 389801252 for Instagram or 570060128 for Duolingo. Find an ID in the app's App Store URL, the number after id.

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

Two letter App Store country code. Reviews and app metadata are read from that country's storefront, so the same app can be analysed per market.

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

How many recent reviews to analyse per app, newest first. Apple serves at most about 450 per app per country. 150 keeps a first run cheap and still large enough for a usable brief.

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

Also write one dataset row per review with its assigned themes. Off by default so a run returns the brief only. Turning this on charges the per-review event in addition to the per-app event.

## `compareVersions` (type: `boolean`):

Compare the two most recent app versions and report which complaint themes rose. Needs at least 5 reviews on each of those versions, otherwise per-version slices are still reported without a delta.

## `aiBrief` (type: `boolean`):

Adds a written headline, summary and prioritised fix list on top of the deterministic counts. Needs your own OpenRouter API key: without one the run returns the deterministic brief, no AI event is charged, and the row says so. Costs one AI brief event per app plus the model tokens, which are reported in the output.

## `model` (type: `string`):

Any OpenRouter model id, for example google/gemini-2.5-flash-lite. Leave empty to use the default. If the model is rate limited, the Actor falls back to a measured alternative instead of failing the run.

## `openRouterApiKey` (type: `string`):

Required only when the AI brief is on. Use your own OpenRouter key so the model tokens bill to your account. The key is never written to the dataset or the logs.

## `minReviewsForBrief` (type: `integer`):

Advanced. Below this many reviews the app is skipped with an explicit row and nothing is charged, because a brief built on fewer reviews would be thin. Raise it when you need stronger evidence, or lower it to about 50 for apps with little review volume.

## Actor input object example

```json
{
  "appIds": [
    "570060128"
  ],
  "country": "us",
  "maxReviewsPerApp": 150,
  "includeReviews": false,
  "compareVersions": true,
  "aiBrief": false,
  "model": "google/gemini-2.5-flash-lite",
  "minReviewsForBrief": 100
}
```

# Actor output Schema

## `briefs` (type: `string`):

No description

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

No description

# 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 = {
    "appIds": [
        "570060128"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/app-store-review-brief-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 = { "appIds": ["570060128"] }

# Run the Actor and wait for it to finish
run = client.actor("rainminer/app-store-review-brief-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 '{
  "appIds": [
    "570060128"
  ]
}' |
apify call rainminer/app-store-review-brief-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/app-store-review-brief-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/OcPrAUMszXFvUZxSA/builds/LD403TcU9rgHaQpsa/openapi.json
