# Apple Music Charts Scraper (`aboo.script/music-apple-charts-scraper`) Actor

\[💰$3 / 1K] ⚡ Fast, cheap Apple Music charts scraper. No login, no API key. Get top songs, albums, playlists, music videos, city charts and daily Top 100 for any country, up to 200 ranks, with artist, album, ISRC, UPC, label, genres, release date and preview links.

- **URL**: https://apify.com/aboo.script/music-apple-charts-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Music Charts Scraper

![Apple Music Charts Scraper](https://i.ibb.co/k2q3zp2X/music-apple-charts-banner.png)

**Apple Music Charts Scraper** extracts the Apple Music top charts for any country from [Apple Music](https://music.apple.com/us/new/top-charts) into clean, structured data you can download as JSON, CSV, Excel, or HTML. Paste a top charts or chart playlist URL and get the rank, song or album title, artist, album, release date, ISRC, genres, preview link and artwork for every chart entry. No account or login required.

### Introduction

[Apple Music](https://music.apple.com/us/new/top-charts) is Apple's music streaming service, with more than 100 million songs in over 160 countries. Its Top Charts show the most played songs, albums, playlists and music videos in each country, plus daily Top 100 charts per country and Top 25 charts for major cities around the world.

This actor collects the same public chart information you see in your browser and turns it into a ready-to-use dataset. You can run it once, schedule it to run daily to follow chart movements, or connect it to your own tools.

### What data can you extract from Apple Music charts?

- 🏆 Chart position (rank), chart name, chart type, genre and country
- 🎵 Song, album, playlist or music video title and type
- 🎤 Artist name and artist page URL
- 💿 Album name and album URL, track and disc number
- 📅 Release date, duration and explicit flag
- 🔖 ISRC (songs and videos), UPC, record label and copyright (albums)
- ✍️ Composer names and genres
- 🎧 Audio quality (Dolby Atmos, lossless, hi-res lossless), lyrics availability, 4K and HDR for videos
- 📝 Editorial description, curator and last update date for playlists
- 🔗 Preview audio URL, artwork image URL and direct Apple Music link for every entry

### Use Cases

- 📈 **Music market research**: follow which songs, artists and genres are rising in each country.
- 🎯 **Artist and label tracking**: see where your artists or competitors chart, and at what position.
- 🌍 **Country comparisons**: compare the top songs of the US, UK, Japan, Germany or any other country side by side.
- 🗂️ **Chart history**: schedule daily runs and build your own archive of Apple Music chart positions.
- 🤖 **AI and automation**: feed clean, structured chart data into spreadsheets, dashboards, or AI workflows.

### How to scrape Apple Music charts step by step

1. Paste one or more Apple Music top charts or playlist URLs into **Start URLs**.
2. Optionally pick a **Genre** for the Top Songs, Top Albums and Top Music Videos charts.
3. Set **Maximum number of results** to how many chart entries you want per chart (0 for the whole chart).
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Start URLs**: Apple Music URLs to scrape. Supported pages:
  - The top charts page, for example `https://music.apple.com/us/new/top-charts`. It is split into its six charts: Top Songs, Top Albums, Top Playlists, Top Music Videos, City Charts and Daily Top 100.
  - A single chart, for example `https://music.apple.com/gb/new/top-charts/songs` (also `albums`, `playlists`, `music-videos`, `city-charts`, `daily-global-top-charts`).
  - A playlist, for example the "Top 100: Global", "Top 100: USA" or "Top 25: New York City" chart playlists. Each track is returned with its position in the playlist.
  - The two-letter code in the URL (`us`, `gb`, `jp`, `de`...) selects the country. Add `?l=en-US` to get titles in English where the site supports it.
- **Maximum number of results**: how many chart entries to collect for each chart or playlist. Use 0 to get the whole chart.
- **Genre**: genre of the Top Songs, Top Albums and Top Music Videos charts (for example Pop, Hip-Hop/Rap, Rock, K-Pop or Latin). The default is all genres.

### Input Examples

Scrape the US Top Songs chart and the Top 100: Global playlist:

```json
{
  "startUrls": [
    { "url": "https://music.apple.com/us/new/top-charts/songs" },
    {
      "url": "https://music.apple.com/us/playlist/top-100-global/pl.d25f5d1181894928af76c85c967f8f31"
    }
  ],
  "maxResults": 5,
  "genre": "34"
}
```

Get the full UK Top Albums chart for Rock:

```json
{
  "startUrls": [{ "url": "https://music.apple.com/gb/new/top-charts/albums" }],
  "maxResults": 0,
  "genre": "21"
}
```

### Output

Each chart entry is saved as one item in the dataset. Here is an example of a single item:

```json
{
  "url": "https://music.apple.com/us/album/thriller/269572838?i=269573303",
  "id": "269573303",
  "rank": 1,
  "type": "song",
  "name": "Thriller",
  "artistName": "Michael Jackson",
  "artistUrl": "https://music.apple.com/us/artist/michael-jackson/32940",
  "albumName": "Thriller",
  "albumUrl": "https://music.apple.com/us/album/thriller/269572838",
  "chartName": "Top Songs",
  "chartType": "topSongs",
  "chartGenre": "All genres",
  "country": "us",
  "genres": ["Pop", "R&B/Soul"],
  "releaseDate": "1982-11-29T00:00:00Z",
  "durationMs": 358807,
  "isExplicit": false,
  "isrc": "USSM19902989",
  "upc": null,
  "composerName": "Rod Temperton",
  "recordLabel": null,
  "copyright": null,
  "trackCount": null,
  "trackNumber": 4,
  "discNumber": 1,
  "audioTraits": ["atmos", "hi-res-lossless", "lossless", "lossy-stereo", "spatial"],
  "hasLyrics": true,
  "isSingle": null,
  "isCompilation": null,
  "has4K": null,
  "hasHDR": null,
  "curatorName": null,
  "playlistType": null,
  "isChartPlaylist": null,
  "lastModifiedDate": null,
  "description": null,
  "previewUrl": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/58/8c/cb/588ccb9a-ab79-4a38-43b5-d4c24ea42859/mzaf_2985674928587081140.plus.aac.ep.m4a",
  "artworkUrl": "https://is1-ssl.mzstatic.com/image/thumb/Music115/v4/32/4f/fd/324ffda2-9e51-8f6a-0c2d-c6fd2b41ac55/074643811224.jpg/1500x1500bb.jpg",
  "chartUrl": "https://music.apple.com/us/new/top-charts/songs"
}
```

The `chartType` field tells you which chart an item comes from: `topSongs`, `topAlbums`, `topPlaylists`, `topMusicVideos`, `cityCharts`, `dailyTop100` or `playlistTracks`.

You can download the dataset in JSON, CSV, Excel, XML, or HTML, or access it through the Apify API.

### Notes

- Top Songs and Top Albums go down to position 200. Daily Top 100 and City Charts list the chart playlists (about 100 to 120 of them); paste a playlist URL to get its tracks.
- The genre filter only applies to Top Songs, Top Albums and Top Music Videos. Top Playlists, City Charts, Daily Top 100 and playlists are not split by genre.
- Some genres are not available in every country; such a chart is skipped with a warning.
- Fields depend on the item type: ISRC and composer exist for songs, UPC, label and copyright for albums, curator and description for playlists. Fields that do not apply are returned as `null`.
- Titles use the language of the country page unless you add `?l=en-US` (or another language code) to the URL.
- Other Apple Music pages (artists, albums, search, rooms) are not supported and are skipped.

### Why use the Apple Music Charts Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 🌍 **Every country and every chart**: songs, albums, playlists, music videos, city charts and daily Top 100 in one actor.
- 📊 **Full charts**: get all 200 positions, not only the first page you see on screen.
- 🧹 **Clean data**: ranks and durations are numbers, dates use one standard format, and text is free of HTML.
- 💸 **Pay for what you need**: set a result limit per chart and keep every run small and cheap.
- 🔄 **Ready for automation**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many results can I scrape?

Set any number in **Maximum number of results**, or 0 for the whole chart. The limit applies to each chart or playlist separately, so the top charts page with a limit of 10 returns 10 entries for each of its six charts.

#### Do I need an Apple Music account?

No. The actor only collects publicly available chart data. You do not need to log in, subscribe, or provide any account details.

#### Can I track chart positions every day?

Yes. Use Apify Schedules to run the actor every day or week and keep the results to build your own chart history.

#### Why are some fields empty?

Each item type has its own details: songs have an ISRC and composer, albums have a UPC and record label, playlists have a curator and description. Fields that do not apply to an item, or that Apple Music does not show, are returned as `null`.

#### Can I request a new feature or filter?

Yes. Right now the actor supports chart and playlist URLs plus a genre filter. If you need other inputs, such as a list of countries or rank changes between runs, get in touch and they can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

### Need to scrape other music and entertainment platforms?

- [Ticketmaster Scraper](https://apify.com/aboo.script/ticketmaster-scraper): concerts and events with dates, venues and ticket prices.
- [Ticketmaster Presale Monitor](https://apify.com/aboo.script/ticketmaster-presale-monitor-scraper): upcoming presales and on-sale dates for concerts and shows.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

### Image Credit

Image credit: [Apple Music](https://music.apple.com/us/new/top-charts)

# Actor input Schema

## `startUrls` (type: `array`):

Apple Music top charts URLs (for example https://music.apple.com/us/new/top-charts, or one chart such as /us/new/top-charts/songs) or playlist URLs (for example Top 100: Global or Top 25: New York City). The two-letter code in the URL selects the country. The top charts overview URL is split into its six charts.

## `maxResults` (type: `integer`):

Maximum number of chart entries to scrape per chart or playlist. Use 0 for the whole chart.

## `genre` (type: `string`):

Genre of the Top Songs, Top Albums and Top Music Videos charts. Top playlists, city charts, daily top 100 and playlists are not split by genre.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://music.apple.com/us/new/top-charts/songs"
    },
    {
      "url": "https://music.apple.com/us/playlist/top-100-global/pl.d25f5d1181894928af76c85c967f8f31"
    }
  ],
  "maxResults": 5,
  "genre": "34"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://music.apple.com/us/new/top-charts/songs"
        },
        {
            "url": "https://music.apple.com/us/playlist/top-100-global/pl.d25f5d1181894928af76c85c967f8f31"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/music-apple-charts-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 = { "startUrls": [
        { "url": "https://music.apple.com/us/new/top-charts/songs" },
        { "url": "https://music.apple.com/us/playlist/top-100-global/pl.d25f5d1181894928af76c85c967f8f31" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/music-apple-charts-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 '{
  "startUrls": [
    {
      "url": "https://music.apple.com/us/new/top-charts/songs"
    },
    {
      "url": "https://music.apple.com/us/playlist/top-100-global/pl.d25f5d1181894928af76c85c967f8f31"
    }
  ]
}' |
apify call aboo.script/music-apple-charts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aboo.script/music-apple-charts-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/L8RBfB6M4qYm3a7rM/builds/iMlue3dtQ43YBnMGi/openapi.json
