# TikTok Music Charts Scraper (`automation-lab/tiktok-music-charts-scraper`) Actor

Get TikTok's own music charts by country: Top 50, Viral 50 and genre playlists with rank, rank change, new entries, video count, commercial-use flag and top videos per sound. No login.

- **URL**: https://apify.com/automation-lab/tiktok-music-charts-scraper.md
- **Developed by:** [Automation Lab](https://apify.com/automation-lab) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 chart sounds

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

## TikTok Music Charts Scraper

Get TikTok's own music charts for any supported country: the **Top 50**, the **Viral 50** and every genre playlist TikTok shows that country, with **rank**, **rank change since your last run**, **new entries**, **how many videos use each sound**, the **commercial-use flag** and, if you want, the **top videos per sound**. Many countries in one run. No TikTok account, cookies or API key.

### What does TikTok Music Charts Scraper do?

TikTok curates music charts inside its app for each market: "US Top 50", "UK Viral 50", "TikTok 50 - Türkiye", "TikTok 50 Africa", Brazil's "#Funk" and "#Sertanejo", Mexico's "Regional Mexicano" and many more. This Actor reads those charts the way the TikTok app does and saves one row per sound per chart and country.

- ✅ **Top 50 and Viral 50** charts per country, plus genre and mood playlists
- ✅ **Many countries in one run**: US, GB, BR, MX, TR, NG, CA, AU, FR, IT, ES and more
- ✅ **Rank change and new entries**: each run is compared with the previous run of the same monitor
- ✅ **Stable sound IDs** for day-over-day history in your own database
- ✅ **Video count**: how many TikTok videos use the sound
- ✅ **Commercial-use flag**: whether business accounts and ads may use the sound
- ✅ **Top videos per sound** (optional): video URL, creator, plays, likes, comments and shares
- ✅ Title, artist, album, duration, language, release date, cover image and audio preview link

### Who is it for?

- 🎵 **Labels, distributors and artist managers** tracking which songs are charting on TikTok in each market, day by day
- 📈 **Music marketers and A\&R** spotting new entries and climbing sounds before they peak
- 🎬 **Creators and creator agencies** picking trending sounds for content, with the commercial-use flag for brand work
- 🏢 **Brands and social media teams** finding chart sounds that are cleared for business accounts
- 📊 **Analysts and researchers** building a history of TikTok music charts across countries

### Why use it?

- **The charts TikTok itself curates**, not an estimate from sampled videos
- **Built for schedules**: run daily or weekly and get rank change, new entries and first-seen dates without keeping your own diff logic
- **One run, many countries**: one row format for every market, ready for a spreadsheet or database
- **Fast and light**: a typical run finishes in under a minute with no browser
- **Honest results**: countries without their own charts are skipped and named, never filled with another country's data

### What data can you extract?

| Field | Description |
| --- | --- |
| `country` | Two-letter country code of the chart |
| `chartType` | `top` (Top 50), `viral` (Viral 50) or `playlist` (genre or mood list) |
| `chartName`, `chartId` | The chart's name in TikTok and its stable ID |
| `rank` | Position on the chart, 1 = top |
| `previousRank`, `rankChange` | Position in this monitor's previous run, and places gained (positive) or lost (negative) |
| `isNewEntry` | `true` when the sound was not on this chart in the previous run (every sound on a monitor's first run) |
| `firstSeenAt`, `previousCheckAt` | When this monitor first saw the sound on the chart, and when it last checked the chart |
| `soundId`, `soundUrl` | TikTok's sound ID and the sound's page on TikTok |
| `title`, `artist`, `album` | Song details |
| `durationSeconds`, `language`, `releaseDate`, `isNewRelease`, `themeTags` | More song details when TikTok has them |
| `videoCount` | How many TikTok videos use the sound |
| `isCommercialMusic` | `true` when TikTok marks the sound as commercial music that business accounts may use |
| `isOriginalSound` | `true` for a creator's original sound rather than a released song |
| `coverUrl`, `audioUrl` | Cover image and TikTok's audio preview link (TikTok's links expire after some time) |
| `topVideos` | With top videos on: the most popular videos using the sound, with URL, creator, description, date, plays, likes, comments and shares |
| `scrapedAt` | When the run read the chart |

### Getting started

1. Open the Actor in Apify Console.
2. Add your **Countries**, such as `US`, `GB` and `BR`.
3. Pick the **Charts**: Top 50, Viral 50, playlists or all three.
4. Click **Start** and download the results as JSON, CSV or Excel, or read them through the API.
5. To track the charts, save the input as a Task and add a daily **Schedule**.

### Input parameters

| Parameter | Default | Description |
| --- | --- | --- |
| `countries` | `["US"]` | Two-letter country codes. |
| `charts` | `["top", "viral"]` | `top`, `viral` and/or `playlist`. |
| `maxSoundsPerChart` | `12` | Positions per chart, from #1 down. TikTok shows the first 12 without a login. |
| `maxResults` | `1000` | Stop after this many rows in total. |
| `commercialOnly` | `false` | Keep only sounds cleared for commercial use. |
| `newEntriesOnly` | `false` | Keep only sounds that are new on their chart since this monitor's previous run. |
| `includeTopVideos` | `false` | Add the top videos for each sound. |
| `topVideosPerSound` | `3` | Top videos per sound, up to 12. |
| `monitorName` | `default` | The chart history a run compares with. Use one name per schedule. |

### Example input: daily Top 50 and Viral 50 in four markets

```json
{
    "countries": ["US", "GB", "BR", "MX"],
    "charts": ["top", "viral"]
}
```

### Example input: new chart entries with their top videos

```json
{
    "countries": ["US", "GB", "TR", "NG"],
    "charts": ["top", "viral"],
    "newEntriesOnly": true,
    "includeTopVideos": true,
    "topVideosPerSound": 3,
    "monitorName": "daily-new-entries"
}
```

### Example input: sounds brands may use, from every Brazilian playlist

```json
{
    "countries": ["BR"],
    "charts": ["top", "viral", "playlist"],
    "commercialOnly": true
}
```

### Output example

```json
{
    "country": "US",
    "chartType": "top",
    "chartName": "US Top 50",
    "chartId": "7245341979050396417",
    "rank": 1,
    "previousRank": 3,
    "rankChange": 2,
    "isNewEntry": false,
    "firstSeenAt": "2026-11-16T07:15:30.013Z",
    "previousCheckAt": "2026-11-17T07:15:12.840Z",
    "soundId": "7370364561877321729",
    "title": "Stolen From Each Other",
    "artist": "Nova Charisma",
    "album": "Metropolitan",
    "durationSeconds": 60,
    "videoCount": 23059,
    "isCommercialMusic": true,
    "isOriginalSound": false,
    "language": "English",
    "themeTags": ["Autumn", "Travel"],
    "releaseDate": "2023-08-09",
    "isNewRelease": false,
    "soundUrl": "https://www.tiktok.com/music/Stolen-From-Each-Other-7370364561877321729",
    "coverUrl": "https://p16-sg.tiktokcdn.com/aweme/720x720/tos-alisg-v-2774/oIY2izADvBABAFBhWorlKYEw0isZWe8AEoiEAc.jpeg",
    "audioUrl": "https://sf16-ies-music-sg.tiktokcdn.com/obj/tos-alisg-ve-2774/ok1AKKzqOisRinuWiWBbZIMBlwzoeb3ADLvFq4",
    "scrapedAt": "2026-11-18T07:15:30.013Z",
    "topVideos": [
        {
            "videoId": "7704391436216618253",
            "videoUrl": "https://www.tiktok.com/@whitezmbie/video/7704391436216618253",
            "description": "he is just so adorable #fyp",
            "createdAt": "2026-11-04T18:54:24.000Z",
            "authorUsername": "whitezmbie",
            "authorName": "s",
            "playCount": 1563246,
            "likeCount": 263206,
            "commentCount": 455,
            "shareCount": 90893
        }
    ]
}
```

### Which countries are covered?

TikTok curates charts for most markets it serves from its global app, for example:

| Region | Countries with a Top 50 or Viral 50 chart (checked November 2026) |
| --- | --- |
| North America | US, CA, MX |
| Europe | GB, IE, PT, TR, RO, UA, RU, IL |
| South America | BR, AR, CO, CL, PE |
| Africa and Middle East | NG, EG, SA, AE |
| Oceania | AU, NZ |
| South Asia | IN, PK |

Other markets such as DE, FR, IT, ES, NL, PL, SE, ZA and KE have genre and mood playlists but no Top 50 or Viral 50; choose `playlist` for them. TikTok gives **Japan, Korea, Taiwan and most of Southeast Asia** (ID, PH, VN, TH, MY, SG) no charts of their own here: the Actor skips them and names them in the run's status message instead of returning another country's chart. TikTok changes its charts and their names from time to time; the `chartName` field always shows TikTok's current name.

### How many results you get

TikTok shows the **first 12 positions** of each chart to an app that is not logged in, and this Actor does not log in. So a Top 50 chart gives positions 1 to 12, the most-watched part of the chart. A run with `top` and `viral` in one country gives up to 24 rows; adding `playlist` usually adds 50 to 200 more per country. You pay only for the rows you get.

### How much does it cost to scrape TikTok music charts?

Pricing is pay per event:

- **$0.002** once per run;
- **$0.00225 per sound row** at the FREE and BRONZE tiers, $0.002025 at SILVER and **$0.0018** at GOLD and above;
- top videos are included in the sound row's price.

| Job | Rows | Estimated charge (FREE tier) |
| --- | ---: | ---: |
| Top 50 + Viral 50, one country | 24 | `$0.002 + 24 × $0.00225` |
| Top 50 + Viral 50, ten countries | about 200 | `$0.002 + 200 × $0.00225` |
| Every chart and playlist, one country | about 150 | `$0.002 + 150 × $0.00225` |

A daily Top 50 + Viral 50 run for one country is 30 runs of 24 rows a month. Apify bills by your plan's tier; see the Actor's pricing tab for your price.

### Scheduling chart monitoring

1. Save your input as a Task with a `monitorName`, such as `daily-us-gb`.
2. Add a Schedule, for example every day at 08:00 UTC.
3. Each run compares the charts with the previous run of the same monitor and fills `previousRank`, `rankChange`, `isNewEntry` and `firstSeenAt`.
4. Turn on `newEntriesOnly` to receive only new chart entries, or keep every row and merge them on `country` + `chartId` + `soundId` + date.

The history is kept in a named key-value store in your Apify account (`tiktok-music-charts-<monitorName>`). Delete that store to start a monitor afresh.

### Integration ideas

- Send new chart entries to Slack or email with an Apify integration
- Append every daily run to Google Sheets or BigQuery to build your own TikTok chart history
- Turn on top videos to see which creators drive each charting sound
- Use `isCommercialMusic` to give brand content teams a list of trending sounds they may use

### Run with the Apify API using cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~tiktok-music-charts-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"countries": ["US", "GB"], "charts": ["top", "viral"]}'
```

### Run with JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('automation-lab/tiktok-music-charts-scraper').call({
    countries: ['US', 'GB'],
    charts: ['top', 'viral'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Run with Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("automation-lab/tiktok-music-charts-scraper").call(run_input={
    "countries": ["US", "GB"],
    "charts": ["top", "viral"],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["country"], item["rank"], item["title"], item["artist"])
```

### Use with Apify MCP

Add the Actor as an MCP tool in Claude Code:

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/tiktok-music-charts-scraper"
```

#### Claude Desktop, Cursor, and VS Code setup

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=automation-lab/tiktok-music-charts-scraper"
    }
  }
}
```

Example prompts:

- "Get today's TikTok Top 50 and Viral 50 for the US, UK and Brazil and list the songs that appear in all three."
- "Which sounds on the TikTok charts in Mexico are cleared for commercial use?"
- "Show the new entries on the US TikTok charts since yesterday with their top videos."

### Limitations

- Only the first 12 positions of each chart, because TikTok shows no more without a login.
- No charts for Japan, Korea, Taiwan and most of Southeast Asia; these countries are skipped.
- TikTok does not publish the chart's date or a 7-day or 30-day window: each row is the chart as TikTok shows it at `scrapedAt`.
- Rank change needs a previous run of the same monitor; on a monitor's first run `previousRank` is empty and every sound is a new entry.
- `audioUrl` and `coverUrl` are TikTok's links and can expire; save the files if you need them later.

### Responsible use and legality

This Actor reads public chart information that TikTok shows in its app without an account. It does not log in, does not collect private data and does not download audio. Song recordings are protected by copyright: use the data for research, monitoring and planning, and clear rights before reusing any music. Creator usernames in `topVideos` are personal data under some laws, such as the GDPR; process them only with a legitimate reason. Follow TikTok's terms and the laws that apply to you. This Actor is not affiliated with or endorsed by TikTok.

Failed operations send sanitized diagnostic input, exceptions and Actor, build and run IDs to our private GlitchTip service so we can repair faults. Secret fields and URL queries are removed, and reports are retained for 30 days.

### Troubleshooting

#### "TikTok has no music charts for JP"

TikTok answers some countries with another market's playlists. The Actor detects that and skips the country so you never get another country's chart under the wrong label. Use a nearby supported market instead.

#### "Country codes must be two letters"

Use ISO 3166-1 alpha-2 codes: `US`, `GB`, `BR`, not `USA` or `United Kingdom`.

#### I got 0 rows with "Only new chart entries"

Nothing entered the selected charts since the previous run of that monitor. That run is charged only the start fee.

#### The country has no Top 50 or Viral 50

Some markets only have genre playlists. The status message names them; add `playlist` to `charts`.

### FAQ

#### Is this the same as TikTok Creative Center's music chart?

No. TikTok removed the popular-music list from Creative Center. This Actor reads the music charts TikTok curates inside its app for each country.

#### Can I get positions 13 to 50?

Not without a TikTok login, which this Actor does not use. Positions 1 to 12 are the part of the chart that moves the most and matters most for trend spotting.

#### Do I need a TikTok account or cookies?

No.

#### Can I get the history before my first run?

No. The history starts with your first run of a monitor. Schedule the Actor daily and keep the datasets to build it.

#### Does it use a browser?

No. It reads TikTok's data over plain HTTP, which keeps it fast and cheap.

### Related Automation Lab Actors

- [TikTok Scraper](https://apify.com/automation-lab/tiktok-scraper) for TikTok videos, profiles and hashtags.
- [TikTok Trends Scraper](https://apify.com/automation-lab/tiktok-trends-scraper) for trending hashtags, videos and Explore sounds.
- [TikTok Creative Center Scraper](https://apify.com/automation-lab/tiktok-creative-center-scraper) for Creative Center hashtag trends and top ads.

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/tiktok-music-charts-scraper/changelog.md

# Actor input Schema

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

Two-letter country codes (ISO 3166-1), such as US, GB, BR, MX, TR or NG. Each country has its own TikTok charts. Countries TikTok gives no charts of their own (Japan, Korea and most of Southeast Asia) are skipped and named in the status message.

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

Top: the country's Top 50 ("US Top 50", "TikTok 50 - Türkiye"). Viral: the country's Viral 50. Playlists: every other music list TikTok shows that country, such as #NewMusic, Pop, Rap or Phonk. Some countries have no Top or Viral chart; the status message names them.

## `maxSoundsPerChart` (type: `integer`):

How many positions to take from each chart, from #1 down. TikTok shows the first 12 positions of each chart without a login, so 12 is the most.

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

Stop after this many sound rows in total, across all countries and charts.

## `commercialOnly` (type: `boolean`):

Keep only sounds TikTok marks as commercial music, which business accounts and ads may use.

## `newEntriesOnly` (type: `boolean`):

Keep only sounds that were not on the same chart in your previous run of this monitor. The first run of a monitor returns every sound and remembers them.

## `includeTopVideos` (type: `boolean`):

Add the most popular videos using each sound, with creator, plays and likes. Takes one extra request per sound.

## `topVideosPerSound` (type: `integer`):

How many top videos to add to each sound when top videos are on.

## `monitorName` (type: `string`):

Name of the chart history this run compares with, for rank change and new entries. Runs with the same name share history; use a different name for each separate schedule. Letters, digits and hyphens.

## Actor input object example

```json
{
  "countries": [
    "US",
    "GB"
  ],
  "charts": [
    "top",
    "viral"
  ],
  "maxSoundsPerChart": 12,
  "maxResults": 20,
  "commercialOnly": false,
  "newEntriesOnly": false,
  "includeTopVideos": false,
  "topVideosPerSound": 3,
  "monitorName": "default"
}
```

# Actor output Schema

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

Chart sounds in TikTok rank order: country, chart, rank, rank change, new entry, title, artist, video count, commercial-use flag and sound URL.

# 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": [
        "US",
        "GB"
    ],
    "charts": [
        "top",
        "viral"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/tiktok-music-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 = {
    "countries": [
        "US",
        "GB",
    ],
    "charts": [
        "top",
        "viral",
    ],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/tiktok-music-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 '{
  "countries": [
    "US",
    "GB"
  ],
  "charts": [
    "top",
    "viral"
  ],
  "maxResults": 20
}' |
apify call automation-lab/tiktok-music-charts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/tiktok-music-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/fdC1MHV77IpickYmF/builds/UKb8IQhYu198cptlR/openapi.json
