# app_store.top_charts

A top chart of Apple's App Store for a country: top free, paid or grossing apps, overall or in one category, for iPhone or iPad.

App Store top charts, one of the App stores scrapers.

| | |
| --- | --- |
| Id | `app_store.top_charts` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/app_store.top_charts/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `country` | string | no | The storefront, as a two-letter country code (default us). Prices, ratings and availability are per storefront. Limit: matches ^[A-Za-z]{2}$. Default: `"us"`. |
| `chart` | "free" \| "paid" \| "grossing" | no | Which chart: top free, top paid or top grossing apps. Default: `"free"`. |
| `category` | "books" \| "business" \| "developer_tools" \| "education" \| "entertainment" \| "finance" \| "food_and_drink" \| "games" \| "graphics_and_design" \| "health_and_fitness" \| "lifestyle" \| "magazines_and_newspapers" \| "medical" \| "music" \| "navigation" \| "news" \| "photo_and_video" \| "productivity" \| "reference" \| "shopping" \| "social_networking" \| "sports" \| "travel" \| "utilities" \| "weather" | no | One App Store category, e.g. games or finance; every category when not given. |
| `device` | "iphone" \| "ipad" | no | The iPhone chart or the iPad chart. Default: `"iphone"`. |
| `max_results` | integer | no | Return at most this many apps (Apple publishes 100). Limit: 1 to 100. Default: `100`. |

- `chart` is `free`, `paid` or `grossing`; `device` is `iphone` (the default) or `ipad`; `category` narrows the chart to one category, such as `games` or `finance`.
- A chart has at most 100 apps. A category with no chart of that kind is `ok` with zero records.
- `rank` is the app's place on the chart at the time of the run. Charts change through the day.

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `rank` | integer | The app's place on the chart, from 1. |
| `app_id` | string | Apple's numeric app id. |
| `bundle_id` | string or null | The app's bundle identifier. |
| `url` | string | The app's address on the App Store, in this storefront. |
| `title` | string | The app's name, as the storefront shows it. |
| `developer` | object | Who published the app. |
| `developer.name` | string or null | The developer's name, as the store shows it. |
| `developer.id` | string or null | Apple's numeric developer id, when the list gives one. |
| `developer.url` | string or null | The developer's page on the App Store, when the list links it. |
| `category` | string or null | The app's primary category, as named for the storefront. |
| `category_id` | string or null | Apple's id of that category, e.g. 6014 for Games. |
| `price` | object or null | The app's price in this storefront; amount 0 for a free app. |
| `price.amount` | number | The amount as the store states it; 0 for a free app. |
| `price.currency` | string or null | The currency code the store gives with the amount (it follows the country asked for). |
| `free` | boolean or null | True when `price` is 0, false when it is more; null when no price was read. |
| `summary` | string or null | The app's description, as the chart carries it. |
| `icon` | string or null | The address of the app's icon image (the largest the chart gives). |
| `released_at` | string (date-time) or null | The release date the chart gives for the app. |
| `chart` | string | The chart asked for: free, paid or grossing. |
| `device` | string | The device the chart is for: iphone or ipad. |
| `country` | string | The storefront, as a two-letter country code. |
| `fetched_at` | string (date-time) | When the chart was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/app_store.top_charts/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"country":"de","chart":"paid","category":"games","max_results":3}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "app_store.top_charts",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "country": "de",
    "chart": "paid",
    "category": "games",
    "max_results": 3
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "rank": 2,
      "app_id": "479516143",
      "bundle_id": "com.mojang.minecraftpe",
      "url": "https://apps.apple.com/de/app/minecraft/id479516143",
      "title": "Minecraft",
      "developer": {
        "name": "Mojang",
        "id": "479516146",
        "url": "https://apps.apple.com/de/developer/mojang/id479516146"
      },
      "category": "Spiele",
      "category_id": "6014",
      "price": {
        "amount": 3.99,
        "currency": "EUR"
      },
      "free": false,
      "summary": "Entdecke unendliche Welten und baue Alles, von einem einfachen Zuhause bis hin zu riesigen Schlössern. Spiele im Kreativmodus mit unbegrenzten Ressourcen oder grabe dich im Überlebensmodus tief in die Welt, während du Waffen und Rüstung … [truncated]",
      "icon": "https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/fb/a7/be/fba7bef5-248f-e255-da11-dd06a30e3828/AppIcon-0-0-1x_U007emarketing-0-10-0-85-220.png/100x100bb.png",
      "released_at": "2011-11-17T07:00:00Z",
      "chart": "paid",
      "device": "iphone",
      "country": "de",
      "fetched_at": "2026-11-19T18:07:38.404327Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `summary`: 2,521 characters, the first 236 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the App stores scrapers](https://docs.enrichednow.com/results-and-statuses.md#app-stores) are in their own section there.
