# Google Play & App Store Scraper (`pintostudio/google-apple`) Actor

Scrape Google Play and the Apple App Store in one Actor: search apps, app details, reviews, ratings, similar apps, top charts, developer listings, categories, privacy and data safety, cross-store matching and a virality score. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/pintostudio/google-apple.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 $2.00 / 1,000 results

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 API Actor

One actor for both app stores. Search, app details, reviews, similar apps, charts, developer listings,
categories, a "find this app on the other store" matcher, and a virality score — all through a single
`operation` field in the input, no code required.

### Overview

This actor wraps Google Play and the App Store behind one consistent interface. Pick an `operation`, fill
in the handful of fields it needs, and run. The result is pushed to the actor's default dataset and also
saved to the key-value store under `OUTPUT`, so you can read either one.

Most operations take a `source` (`google` or `apple`); a few (`search`, `categories`, `match`) also accept
`all` to query both stores in one run.

### Input Configuration

#### Required for every run

| Parameter | Type | Description |
|---|---|---|
| `operation` | string | Which thing to do — see the table below. |

#### Operation reference

| `operation` | What it does | Needs | Also uses |
|---|---|---|---|
| `search` | Search for apps | `term` | `source`, `page`, `perPage`, `sort` |
| `suggest` | Autocomplete-style search suggestions | `term` | `source` |
| `appDetail` | Full app details | `appId` | `source` |
| `reviews` | App reviews | `appId` | `source`, `page`, `perPage`, `sort` |
| `similar` | Apps similar to a given one | `appId` | `source`, `page`, `perPage`, `sort` |
| `ratings` | Rating histogram | `appId` | `source` |
| `virality` | 0-100 "how viral right now" score | `appId` | `source` |
| `privacy` | Apple's declared privacy practices | `appId` | *(Apple only)* |
| `permissions` | Permissions the app requests | `appId` | *(Google only)* |
| `datasafety` | Developer's "Data safety" disclosure | `appId` | *(Google only)* |
| `developer` | All apps by a developer | `devId` | `source`, `page`, `perPage`, `sort` |
| `charts` | Top charts / collections | — | `source`, `collection`, `category`, `page`, `perPage` |
| `categories` | Category/genre names and ids | — | `source` (`all` works here) |
| `match` | Search both stores, pair up likely-same-app listings | `term` | `perPage` |
| `appMatch` | Find a known app's listing on the other store | `appId` | `source`, `perPage`, `minScore` |

#### All fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `operation` | string | `search` | Required. |
| `source` | string | `google` | `google`, `apple`, or `all` (search/categories/match only). |
| `term` | string | — | Search term. |
| `appId` | string | — | Google: package name (`com.whatsapp`). Apple: numeric id (`553834731`) or bundle id (`com.midasplayer.apps.candycrushsaga`). |
| `devId` | string | — | Google: developer display name (`WhatsApp LLC`). Apple: numeric developer id (`526656015`). |
| `country` | string | `us` | 2-letter store country code. |
| `lang` | string | — | Language code for localized results. |
| `page` | integer | `1` | 1-based page number. |
| `perPage` | integer | `20` | Results per page (max `100`). Also doubles as "candidates per store" on `match`/`appMatch`. |
| `sort` | string | varies | Apps lists: `relevance` | `rating` | `newest` | `title`. Reviews: `newest` | `oldest` | `highest` | `lowest`. |
| `collection` | string | `top-free` | Charts only — see Parameter Options below. |
| `category` | string | — | Charts only — see Parameter Options below. |
| `minScore` | number | `0.55` | `appMatch` only. Confidence floor below which `match` comes back `null`. |

### Parameter Options

#### `collection` (Charts)

- **Google**: a `google-play-scraper` constant, e.g. `TOP_FREE`, `TOP_PAID`, `TOP_GROSSING`.
- **Apple**: `top-free`, `top-paid`, `top-grossing` (fast path, iPhone only), or a classic
  `app-store-scraper` collection constant, e.g. `topfreeipadapplications`, `topgrossingmacapps`.

#### `category` (Charts)

- **Google**: a `google-play-scraper` constant, e.g. `GAME_ACTION`, `SOCIAL`.
- **Apple**: a numeric genre id, e.g. `6014` (Games).

#### `sort`

- **Search / Similar apps / Developer's apps / Charts**: `relevance` (default, the store's own order) |
  `rating` | `newest` | `title`.
- **Reviews**: `newest` (default) | `oldest` | `highest` | `lowest`. Only Google's `newest`/`highest`
  use the store's own native sort with full pagination; everything else (all of Apple's review sorting,
  plus Google's `oldest`/`lowest`) sorts over the 200 most recent reviews only — neither store exposes a
  way to start from the other end of an app's review history.

### Usage Examples

#### Search

```json
{ "operation": "search", "source": "google", "term": "whatsapp", "perPage": 10 }
```

#### App details

```json
{ "operation": "appDetail", "source": "apple", "appId": "553834731" }
```

#### Reviews, sorted

```json
{ "operation": "reviews", "source": "apple", "appId": "553834731", "page": 1, "perPage": 20, "sort": "oldest" }
```

#### Virality score

```json
{ "operation": "virality", "source": "google", "appId": "com.whatsapp" }
```

#### Charts

```json
{ "operation": "charts", "source": "apple", "collection": "top-free", "perPage": 10 }
```

#### Find the same app on the other store

```json
{ "operation": "appMatch", "source": "google", "appId": "com.whatsapp" }
```

#### Search both stores and pair up matches

```json
{ "operation": "match", "term": "spotify", "perPage": 8 }
```

### Output Format

The actor pushes one record to the dataset per run, and saves the same object to the key-value store
under `OUTPUT`. The exact shape depends on `operation` — e.g. a list operation (`search`, `reviews`,
`similar`, `developer`, `charts`) looks like this:

```json
{
  "term": "whatsapp",
  "source": "google",
  "page": 1,
  "perPage": 3,
  "sort": "relevance",
  "hasMore": true,
  "results": [
    {
      "source": "google",
      "id": "com.whatsapp",
      "title": "WhatsApp",
      "developer": { "name": "WhatsApp LLC" },
      "score": 4.62,
      "free": true
    }
  ]
}
```

while `virality` looks like this:

```json
{
  "source": "google", "appId": "com.whatsapp", "score": 90, "label": "viral",
  "breakdown": { "ratings": 246898046, "averageScore": 4.62, "ageDays": 5860, "reviewsPerDay": 42136.28, "updatedDaysAgo": 2, "chartPosition": null }
}
```

`label` is one of `viral`, `trending`, `steady`, `slow`, `dormant`. This is a relative, point-in-time
heuristic for comparing apps against each other — not a trained model and not a guaranteed forecast.

Every normalized app/review object keeps the provider's original raw shape under `raw` for anything not
promoted to the common fields.

### Data Storage

1. **Dataset**: the full result object for this run.
2. **Key-Value Store**: the identical object, saved under the key `OUTPUT`, for callers that just want
   "give me the result of this run" without touching the dataset.

### Error Handling

An invalid or missing required field (e.g. no `term` on `search`, no `appId` on `appDetail`) fails the run
with a descriptive message in the log — check the run's log for exactly what was missing or invalid.
Transient upstream blips (both stores occasionally rate-limit or hiccup under load) are retried
automatically with backoff before the run ever sees them.

### Performance Tips

1. Keep `perPage` reasonable (≤ 50-100) — faster responses, less data moved for nothing.
2. Use `source=google` or `source=apple` instead of `all` when you only need one store; `all` runs both
   searches and waits for the slower one.
3. Cache results you don't need fresh every time — app metadata, charts, and categories don't change
   minute to minute.
4. Don't expect `sort=oldest`/`sort=lowest` on reviews to cover an app's entire history — see Parameter
   Options above.

### 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({
  operation: 'appDetail',
  source: 'google',
  appId: 'com.whatsapp'
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("YOUR_ACTOR_ID").call(run_input={
    "operation": "search",
    "source": "all",
    "term": "candy crush",
    "perPage": 10
})

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items[0]["results"])
```

### 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

## `operation` (type: `string`):

Which thing to do.

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

Which store. "all" only applies to Search, Categories and Match search.

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

Required for Search, Autocomplete suggestions, and Match search.

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

Required for App details, Reviews, Similar apps, Ratings, Virality score, Privacy, Permissions, Data safety, and Match app. 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).

## `devId` (type: `string`):

Required for Developer's apps. Google: the developer's display name as shown on Play (e.g. "WhatsApp LLC"). Apple: the numeric developer/artist id (e.g. 526656015).

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

2-letter store country code.

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

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

## `page` (type: `integer`):

1-based page number. Applies to Search, Reviews, Similar apps, Developer's apps, and Charts.

## `perPage` (type: `integer`):

Applies to Search, Reviews, Similar apps, Developer's apps, and Charts. Also used by Match search/Match app as "candidates to consider per store".

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

Search / Similar apps / Developer's apps / Charts: "relevance" (default), "rating", "newest", or "title". Reviews: "newest" (default), "oldest", "highest", or "lowest". Leave empty for the default.

## `collection` (type: `string`):

Charts only. Google: a google-play-scraper collection constant (e.g. TOP_FREE, TOP_PAID, TOP_GROSSING). Apple: "top-free", "top-paid", "top-grossing", or a classic app-store-scraper collection constant (e.g. topfreeipadapplications).

## `category` (type: `string`):

Charts only. Google: a google-play-scraper category constant (e.g. GAME_ACTION). Apple: a numeric genre id.

## `minScore` (type: `number`):

Match app only. Confidence threshold (0-1) below which "match" comes back null.

## Actor input object example

```json
{
  "operation": "search",
  "source": "google",
  "country": "us",
  "page": 1,
  "perPage": 20,
  "collection": "top-free",
  "minScore": 0.55
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset record with the operation result.

## `output` (type: `string`):

Same result as a single JSON record.

# 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/google-apple").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/google-apple").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/google-apple --silent --output-dataset

```

## MCP server setup

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

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/42cFtg8c4nBqSAO06/builds/WNC8LPB3ou0TtEXsC/openapi.json
