# App Store + Google Play Review Export / Theme Miner (`isotonic/app-store-google-play-review-theme-miner`) Actor

Exports public App Store reviews and deterministic theme rows, with safe best-effort Google Play handling.

- **URL**: https://apify.com/isotonic/app-store-google-play-review-theme-miner.md
- **Developed by:** [Brian Keefe](https://apify.com/isotonic) (community)
- **Categories:** Developer tools, Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## App Store + Google Play Review Export / Theme Miner

Production-ready Apify Actor for exporting public Apple App Store customer reviews and deterministic theme rows. Google Play handling is intentionally safe and explicit: this MVP parses public URLs and package IDs, then emits an `unsupported_source` status row instead of faking or scraping unstable private review access.

### What it does

- Accepts Apple App Store URLs, Google Play URLs, Apple app IDs, and Google Play package IDs.
- Fetches Apple public customer review RSS pages by app ID and country.
- Parses JSON first and falls back to XML when needed.
- Filters by rating, `since`, and `maxReviews`.
- Emits raw review rows and separate theme rows.
- Uses deterministic local theme mining only. No LLMs or external AI APIs.
- Pushes rows to the default Apify dataset when run as an Actor.
- Exposes pure functions for deterministic tests.

### Public data and limitations

- Apple reviews are fetched only from public App Store RSS endpoints.
- No login, cookies, private APIs, mobile app reverse engineering, or bypass behavior is used.
- Apple RSS review availability is limited by Apple's public feed behavior and paging. This actor caps paging at 10 public RSS pages per app.
- Google Play review retrieval is not implemented here because this MVP avoids depending on unstable or unsupported public review access. If Google Play targets are provided and `includeGooglePlay` is `true`, the actor outputs explicit `source_status` rows with `unsupported_source`.

### Input

Compatible with `.actor/input_schema.json`.

Example:

```json
{
  "apps": [
    "https://apps.apple.com/us/app/slack/id618783545",
    "https://play.google.com/store/apps/details?id=com.Slack"
  ],
  "country": "us",
  "language": "en-US",
  "maxReviews": 25,
  "ratings": [1, 2, 3, 4, 5],
  "since": "2024-01-01",
  "includeGooglePlay": true
}
````

### Output rows

The dataset contains multiple row types.

- `review`: raw Apple review row with parsed metadata, source URL, and evidence text.
- `theme`: one row per matched deterministic theme.
- `source_status`: explicit unsupported-source row for Google Play targets.

Important fields:

- `rowType`
- `source`
- `status`
- `appId`
- `appKey`
- `country`
- `language`
- `reviewId`
- `title`
- `text`
- `rating`
- `reviewedAt`
- `themes`
- `themeEvidence`
- `textSentiment`
- `sentimentShift`
- `featureRequest`
- `competitorMentioned`
- `competitorNames`
- `sourceUrl`
- `evidence`

See `examples/sample-output.json`.

### Deterministic theme mining

The actor uses local keyword and rule-based classification for:

- Complaint themes like crashes, performance, notifications, billing, login/auth, ads, and UI/UX.
- Feature requests like dark mode, tablet support, export, and offline mode.
- Sentiment classification from text-only heuristics.
- Sentiment shift flags when rating and text disagree.
- Competitor-comparison-ready fields from explicit competitor name mentions.

### Local development

```bash
npm install
npm test
npm run smoke
```

Run the actor locally:

```bash
npm start
```

### Apify publish and run

Create a build on Apify when ready:

```bash
apify push
```

Run locally with Apify input:

```bash
apify run --input-file=examples/sample-input.json
```

### Project structure

- `.actor/actor.json`
- `.actor/input_schema.json`
- `src/index.js`
- `src/lib/*.js`
- `tests/`
- `tests/smoke/`
- `examples/`

### Notes for Hermes

- Repo is ready for publish, but intentionally not published from this workspace.
- Tests use static fixtures and mocked fetch only, so they do not depend on live App Store availability.

# Actor input Schema

## `apps` (type: `array`):

App URLs or IDs. Supports Apple App Store URLs, Google Play URLs, Apple numeric app IDs, or Google Play package IDs.

## `appUrls` (type: `array`):

Optional list of App Store or Google Play URLs.

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

Optional list of Apple numeric IDs or Google Play package IDs.

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

Two-letter App Store storefront country code.

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

Requested language tag, stored on output. Apple RSS review feed localization is limited.

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

Maximum number of Apple review rows to return across all apps after filtering.

## `ratings` (type: `array`):

Optional star ratings to keep.

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

Lowest star rating to keep when ratings is not provided.

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

Highest star rating to keep when ratings is not provided.

## `since` (type: `string`):

Only include reviews on or after this ISO date, for example 2024-01-01.

## `includeGooglePlay` (type: `boolean`):

If true, Google Play URLs and IDs are parsed and output as explicit unsupported status rows unless a stable public implementation is added.

## Actor input object example

```json
{
  "apps": [
    "https://apps.apple.com/us/app/slack/id618783545"
  ],
  "country": "us",
  "language": "en-US",
  "maxReviews": 100,
  "minRating": 1,
  "maxRating": 5,
  "includeGooglePlay": true
}
```

# 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 = {
    "country": "us",
    "language": "en-US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("isotonic/app-store-google-play-review-theme-miner").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 = {
    "country": "us",
    "language": "en-US",
}

# Run the Actor and wait for it to finish
run = client.actor("isotonic/app-store-google-play-review-theme-miner").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "country": "us",
  "language": "en-US"
}' |
apify call isotonic/app-store-google-play-review-theme-miner --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=isotonic/app-store-google-play-review-theme-miner",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "App Store + Google Play Review Export / Theme Miner",
        "description": "Exports public App Store reviews and deterministic theme rows, with safe best-effort Google Play handling.",
        "version": "1.0",
        "x-build-id": "kPfKp510fsm9JWQI2"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/isotonic~app-store-google-play-review-theme-miner/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-isotonic-app-store-google-play-review-theme-miner",
                "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/isotonic~app-store-google-play-review-theme-miner/runs": {
            "post": {
                "operationId": "runs-sync-isotonic-app-store-google-play-review-theme-miner",
                "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/isotonic~app-store-google-play-review-theme-miner/run-sync": {
            "post": {
                "operationId": "run-sync-isotonic-app-store-google-play-review-theme-miner",
                "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": {
                    "apps": {
                        "title": "App targets",
                        "type": "array",
                        "description": "App URLs or IDs. Supports Apple App Store URLs, Google Play URLs, Apple numeric app IDs, or Google Play package IDs.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "https://apps.apple.com/us/app/slack/id618783545"
                        ]
                    },
                    "appUrls": {
                        "title": "App URLs",
                        "type": "array",
                        "description": "Optional list of App Store or Google Play URLs.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "appIds": {
                        "title": "App IDs",
                        "type": "array",
                        "description": "Optional list of Apple numeric IDs or Google Play package IDs.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "country": {
                        "title": "Country",
                        "type": "string",
                        "description": "Two-letter App Store storefront country code.",
                        "default": "us"
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Requested language tag, stored on output. Apple RSS review feed localization is limited.",
                        "default": "en-US"
                    },
                    "maxReviews": {
                        "title": "Max reviews",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of Apple review rows to return across all apps after filtering.",
                        "default": 100
                    },
                    "ratings": {
                        "title": "Allowed ratings",
                        "type": "array",
                        "description": "Optional star ratings to keep.",
                        "items": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 5
                        }
                    },
                    "minRating": {
                        "title": "Minimum rating",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Lowest star rating to keep when ratings is not provided.",
                        "default": 1
                    },
                    "maxRating": {
                        "title": "Maximum rating",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Highest star rating to keep when ratings is not provided.",
                        "default": 5
                    },
                    "since": {
                        "title": "Since date",
                        "type": "string",
                        "description": "Only include reviews on or after this ISO date, for example 2024-01-01."
                    },
                    "includeGooglePlay": {
                        "title": "Include Google Play",
                        "type": "boolean",
                        "description": "If true, Google Play URLs and IDs are parsed and output as explicit unsupported status rows unless a stable public implementation is added.",
                        "default": true
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
