# Apple App Store Charts

Apple charts endpoint: top-free, top-paid, top-grossing, most-played, top-subscriber, and top-episodes charts across store verticals with optional genre filters.

- **Documentation:** [https://scrappa.co/docs/apple-app-store-api/apple_app_store_charts](https://scrappa.co/docs/apple-app-store-api/apple_app_store_charts)
- **API group:** Apple App Store API
- **Endpoint:** `GET https://scrappa.co/api/apple/app-store/charts`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `store` | string | No | Apple store vertical: apps, mac, books, audiobooks, movies, tv, music, or podcasts. |
| `chart` | string | No | Chart type: top-free, top-paid, top-grossing, most-played, top-subscriber, or top-episodes. Music always serves the most-played albums chart; podcasts serve top shows (top-subscriber on request). The response echoes both the requested and the served chart type. |
| `genre` | string | No | Genre filter for feeds that support it: an Apple genre id, passed through to Apple's charts feeds as-is (Apple publishes genre ids per storefront). |
| `country` | string | No | Two-letter Apple storefront country code. Defaults to us. |
| `limit` | integer | No | Maximum number of chart items. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/apple/app-store/charts?store=apps&chart=top-free&country=us"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "apple_app_store_charts",
        "store": "apps",
        "chart": "top-free",
        "country": "us",
        "limit": 50
    },
    "chart": {
        "type": "top-free",
        "requested": "top-free",
        "items": [
            {
                "position": 1,
                "id": "284882215",
                "title": "Facebook",
                "artist": "Meta Platforms, Inc.",
                "url": "https://apps.apple.com/us/app/facebook/id284882215"
            }
        ]
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The product_id or another parameter failed validation. |
| 404 | Apple Product Not Found | The product is legitimately absent in the requested storefront. |
| 503 | Apple Upstream Unavailable | Apple could not be fetched through the configured proxy tiers after the full attempt budget. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
