# Apple App Store Scraper - Search, App Details & Top Charts (`captainhandsome/apple-app-store-scraper`) Actor

Search the Apple App Store by keyword, look up apps by id or URL, and collect the top-free, top-paid and top-grossing charts for any country. Returns names, developers, prices, ratings, genres, versions, icons and links from Apple's public endpoints. No API key.

- **URL**: https://apify.com/captainhandsome/apple-app-store-scraper.md
- **Developed by:** [Joseph McRell](https://apify.com/captainhandsome) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.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

## Apple App Store Scraper — keyword search, app details & top charts

Get App Store data from Apple's own public endpoints: **keyword search**, **exact app
details by id**, and the **top-free / top-paid / top-grossing charts**, for any store
country. No API key, no login, no browser — so runs are fast, cheap and reliable.

### What you can do

1. **Keyword search** — enter keywords and a country, get the apps that rank for them,
   with ratings, prices, genres, versions and technical details.
2. **App details** — enter app ids or `apps.apple.com` URLs to get the exact app record.
3. **Top charts** — pick `top-free`, `top-paid` and/or `top-grossing` to get that country's
   chart with rank 1, 2, 3, … in order.
4. **Multi-country** — pass several country codes (`us`, `gb`, `de`, `jp`, …); each is
   queried separately and tagged in the `country` field.

### Output

`rowType` tells you what a row is: `app` (keyword search or lookup) or `chart` (top charts).
Chart rows carry `chart` and `rank`; app rows carry `foundBy` and `searchTerm`.

| Field | Meaning |
| --- | --- |
| `rowType` | `app` or `chart` |
| `chart`, `rank` | Chart name and position (chart rows) |
| `appId`, `bundleId` | Apple app id (trackId) and bundle id |
| `name`, `developer`, `sellerName` | App and developer names |
| `url`, `iconUrl` | App Store page and icon URL |
| `country`, `foundBy`, `searchTerm` | Store country, how the row was found, keyword |
| `price`, `formattedPrice`, `currency` | Price in the store's own currency (0 = free) |
| `rating`, `ratingsCount` | Average rating and number of ratings, all versions |
| `ratingCurrentVersion`, `ratingsCurrentVersion` | Rating for the current version |
| `primaryGenre`, `genres`, `contentRating` | Category and age rating |
| `version`, `released`, `updated` | Current version and dates |
| `minimumOsVersion`, `fileSizeBytes`, `languages` | Technical metadata |
| `description` | Description or chart summary — only when "Include app description" is on |

### Input examples

Search a keyword in two countries:

```json
{ "searchTerms": ["meditation timer"], "countries": ["us", "gb"], "limitPerTerm": 100 }
```

Top charts for three countries:

```json
{ "searchTerms": [], "charts": ["top-free", "top-grossing"], "countries": ["us", "de", "jp"], "limitPerChart": 200 }
```

Exact app details by id or URL:

```json
{ "searchTerms": [], "appIds": ["284882215", "https://apps.apple.com/us/app/duolingo/id570060128"] }
```

### Pricing

Pay per result: **$0.002 per row** (about $2 per 1,000 apps). Runs that return nothing are
not billed per result.

### Honest limits

- Data comes from Apple's public iTunes endpoints. Apple caps keyword search at 200
  results per term and each chart at 200 entries.
- Chart rows come from Apple's legacy top-charts feed: they include name, developer,
  category, price, icon, link and release date, but **not** ratings or version details.
  Chart rows therefore have `rating: null`; run those app ids through the lookup input if
  you need full app records.
- Keyword search returns whatever Apple returns for that country. If Apple returns nothing
  for a term or country, the log says so, and a run that produces zero rows in total fails
  loudly instead of silently charging for an empty dataset.
- The Actor reads only public data and does not log in to any account. Customer reviews are
  not included: Apple's public review feeds are not reliably available, and this Actor
  only ships data it can actually fetch.

# Actor input Schema

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

App Store search keywords. Each keyword returns up to 'Max results per keyword' apps per country. Defaults to a sample keyword so a run with no input still returns data.

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

Numeric Apple app ids (for example 284882215) or apps.apple.com URLs, to get exact app details instead of search results.

## `charts` (type: `array`):

Also collect the App Store top charts for each country. top-free, top-paid and top-grossing are available.

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

Two-letter App Store country codes (us, gb, de, fr, jp, ...). Each country is queried separately.

## `limitPerTerm` (type: `integer`):

How many apps to return for each keyword. Apple allows up to 200.

## `limitPerChart` (type: `integer`):

How many apps to return from each top chart. Apple allows up to 200.

## `includeDescription` (type: `boolean`):

Attach the full App Store description text (or the chart summary) to each row.

## Actor input object example

```json
{
  "searchTerms": [
    "meditation"
  ],
  "appIds": [],
  "charts": [],
  "countries": [
    "us"
  ],
  "limitPerTerm": 50,
  "limitPerChart": 50,
  "includeDescription": false
}
```

# Actor output Schema

## `items` (type: `string`):

App Store rows in the default dataset. rowType tells you whether a row is an app or a review.

# 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 = {
    "searchTerms": [
        "meditation"
    ],
    "appIds": [],
    "charts": [],
    "countries": [
        "us"
    ],
    "limitPerTerm": 50,
    "limitPerChart": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("captainhandsome/apple-app-store-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 = {
    "searchTerms": ["meditation"],
    "appIds": [],
    "charts": [],
    "countries": ["us"],
    "limitPerTerm": 50,
    "limitPerChart": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("captainhandsome/apple-app-store-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 '{
  "searchTerms": [
    "meditation"
  ],
  "appIds": [],
  "charts": [],
  "countries": [
    "us"
  ],
  "limitPerTerm": 50,
  "limitPerChart": 50
}' |
apify call captainhandsome/apple-app-store-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,captainhandsome/apple-app-store-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/aDcOParkmrJYa6Fup/builds/Y8js2snBcf00hdT4O/openapi.json
