# Apple Music, Podcast & Book Charts - Any Country (`loopchips/apple-media-charts`) Actor

Top songs, albums, music videos, playlists, podcasts, podcast episodes and books from any Apple storefront. Reads Apple's own published chart feeds, so the data comes from the source rather than a scraped page. Includes artist IDs, genres, release dates and high-resolution artwork.

- **URL**: https://apify.com/loopchips/apple-media-charts.md
- **Developed by:** [Loopchips](https://apify.com/loopchips) (community)
- **Categories:** Social media, News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 chart entries

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Apple Music, Podcast & Book Charts

Top songs, albums, music videos, playlists, podcasts, podcast episodes and books
for any Apple storefront.

This Actor reads Apple's own published chart feeds. The data comes from the
source rather than a scraped chart page, so it stays stable and stays clean.

### What you get

| Field | Description |
|---|---|
| `country` / `chart` / `chartLabel` | Which storefront and chart the row is from |
| `rank` | Position in that chart |
| `name` | Track, album, podcast or book title |
| `artistName` / `artistId` / `artistUrl` | Credited artist or author |
| `genres` | Genre labels as the storefront lists them |
| `releaseDate` | Release date where the feed provides it |
| `contentAdvisoryRating` | Explicit or clean marking |
| `artworkUrl100` / `artworkUrl600` | Artwork at two sizes |
| `url` | Direct link |
| `chartUpdatedAt` | When Apple last refreshed the chart |
| `scrapedAt` | Timestamp, so runs stack into a history |

### Charts

Top songs · Top albums · Top music videos · Top playlists · Top podcasts ·
Top podcast episodes · Top free books · Top paid books

Any two-letter storefront works: `kr`, `us`, `jp`, `gb`, `de`, and the rest.
Not every storefront publishes every chart; the Actor says so and moves on
rather than failing the run.

### Example input

```json
{
  "countries": ["kr", "us", "jp"],
  "charts": ["songs", "albums", "podcasts"],
  "maxItemsPerChart": 100
}
```

### Example output

```json
{
  "country": "KR",
  "chart": "songs",
  "chartLabel": "Top songs",
  "rank": 1,
  "id": "1443109064",
  "name": "Sunflower (Spider-Man: Into the Spider-Verse)",
  "artistName": "Post Malone & Swae Lee",
  "genres": "힙합/랩, 음악",
  "releaseDate": "2018-10-19",
  "artworkUrl600": "https://.../600x600bb.jpg",
  "url": "https://music.apple.com/kr/album/...",
  "scrapedAt": "2026-08-11T12:10:44.512Z"
}
```

### What people use it for

- **Label and artist tracking** - watch a release move across storefronts
- **Cross-market comparison** - the same week in KR, US and JP side by side
- **Podcast and publishing research** - what is charting, not what is promoted
- **Catalogue and recommendation building** - IDs, genres and artwork in one place

### Pricing

Pay per result. You are charged only for chart entries actually returned.

### Notes

- Transient feed errors are retried before a chart is reported as unavailable,
  so a run does not quietly come back short.
- `releaseDate` and `artistId` are empty for chart types where Apple does not
  publish them, such as podcasts. That is the feed's own shape.

# Actor input Schema

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

Two-letter country codes, for example kr, us, jp, gb, de. Any Apple storefront works.

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

Which charts to pull for each storefront. Not every storefront publishes every chart.

## `maxItemsPerChart` (type: `integer`):

How far down each chart to go. Apple publishes up to 100 for most charts.

## `requestDelayMs` (type: `integer`):

Pause between chart requests.

## Actor input object example

```json
{
  "countries": [
    "kr",
    "us"
  ],
  "charts": [
    "songs",
    "podcasts"
  ],
  "maxItemsPerChart": 100,
  "requestDelayMs": 400
}
```

# 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 = {
    "countries": [
        "kr",
        "us"
    ],
    "charts": [
        "songs",
        "podcasts"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("loopchips/apple-media-charts").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 = {
    "countries": [
        "kr",
        "us",
    ],
    "charts": [
        "songs",
        "podcasts",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("loopchips/apple-media-charts").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 '{
  "countries": [
    "kr",
    "us"
  ],
  "charts": [
    "songs",
    "podcasts"
  ]
}' |
apify call loopchips/apple-media-charts --silent --output-dataset

```

## MCP server setup

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

```

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/4ayqq6y3OIsGR3J0g/builds/b1Vs7A0X3Ldw3Ld3k/openapi.json
