# YouTube Charts Scraper (`aboo.script/charts-youtube-scraper`) Actor

\[💰$2 / 1K] ⚡ Fast YouTube Charts scraper. No login, no API key. Top songs, artists, music videos, trending, Shorts songs and podcasts for any country, weekly, daily or past dates: rank, previous rank, weeks on chart, views, artists, songwriters, producers, label and links.

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

## Pricing

from $1.40 / 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

## YouTube Charts Scraper

![YouTube Charts Scraper](https://i.ibb.co/VcPBG77W/charts-youtube-banner.png)

**YouTube Charts Scraper** extracts the official [YouTube Charts](https://charts.youtube.com/) into clean, structured data you can download as JSON, CSV, Excel, or HTML. Paste a chart URL or list the countries you want, and get the rank, last week's rank, weeks on chart, views, artists, songwriters, label, and YouTube links for every entry. No account or login required.

### Introduction

[YouTube Charts](https://charts.youtube.com/) is YouTube's official music and podcast chart site. It ranks the most played songs, artists, and music videos on YouTube every week and every day, for the whole world and for each country, plus trending music videos, the top songs used in Shorts, and the most watched podcast shows.

This actor collects the same public chart data you see in your browser and turns it into a ready-to-use dataset. Run it once, schedule it every week to build your own chart history, or connect it to your own tools.

### What data can you extract from YouTube Charts?

- 🏆 Rank, previous rank, rank change, new entry flag, and weeks (or days) on chart
- 👀 Views for the chart period and the change in views since the previous period
- 🎵 Song or video title, artists with their IDs, release date, and duration
- ✍️ Songwriters, producers, and record label
- 📺 Channel name, channel ID, and channel URL
- 🔗 YouTube video link, YouTube Music link, and thumbnail
- 🎙️ Podcast show playlist, description, genre, number of episodes, and last update date
- 🗓️ Chart name, country, period, chart date, and chart URL

### Use Cases

- 📈 **Music market research**: compare what is charting in the US, UK, Brazil, India, Japan, and dozens of other countries in one run.
- 🎧 **A\&R and talent scouting**: spot new entries and fast climbers before they peak.
- 🏷️ **Label and artist reporting**: track weekly rank, views, and weeks on chart for your catalog.
- 🗂️ **Chart history datasets**: collect past weekly or daily charts to build your own archive.
- 🎙️ **Podcast research**: follow the top podcast shows by watch time and their genres.
- 🤖 **AI and automation**: feed clean, structured chart data into spreadsheets, dashboards, or AI workflows.

### How to scrape YouTube Charts step by step

1. Paste one or more YouTube Charts URLs into **Chart URLs**, or type country codes into **Countries** and pick a **Chart type**, **Period**, and optional **Chart date**.
2. Set **Maximum results per chart** to how many entries you want per chart (0 for the full chart).
3. Click **Start** and wait for the run to finish.
4. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Chart URLs**: YouTube Charts pages to scrape. Supported charts: top songs, top artists, top music videos (weekly or daily), trending music videos, top songs on Shorts (weekly or daily), top podcast shows, and the India charts by language and trending movie trailers. Dated chart URLs (for example a past week) are supported, and each URL keeps its own country, period, and date.
- **Countries**: two-letter country codes such as `us`, `gb`, or `br`, or `global` for the worldwide chart. One chart is scraped per country.
- **Chart type**: the chart to scrape for each country: top songs, top artists, top music videos, trending music videos, top songs on Shorts, or top podcast shows.
- **Period**: weekly or daily. Top songs, top artists, and podcasts are weekly only, and trending music videos is a live chart.
- **Chart date**: scrape a past chart instead of the latest one. Weekly charts use the chart week that contains this date.
- **Maximum results per chart**: how many entries to collect for each chart URL or country. Set 0 to get the full chart.

Chart type, period, and chart date apply to the countries list only. You can use chart URLs, countries, or both in the same run.

### Input Examples

Scrape the weekly top songs in the United States:

```json
{
  "startUrls": [{ "url": "https://charts.youtube.com/charts/TopSongs/us/weekly" }],
  "maxResults": 5
}
```

Scrape the weekly top songs for several countries:

```json
{
  "countries": ["us", "gb", "global"],
  "chartType": "topSongs",
  "period": "weekly",
  "maxResults": 5
}
```

Scrape a past daily music video chart:

```json
{
  "countries": ["gb"],
  "chartType": "topVideos",
  "period": "daily",
  "chartDate": "2025-01-05",
  "maxResults": 5
}
```

### Output

Each chart entry is saved as one item in the dataset. Here is an example from the weekly top songs chart:

```json
{
  "url": "https://www.youtube.com/watch?v=-5ZXrO_lYSA",
  "rank": 1,
  "previousRank": null,
  "rankChange": null,
  "isNewEntry": true,
  "periodsOnChart": 1,
  "title": "Tarantino",
  "artists": [{ "name": "LISA", "id": "/g/11c1p4b_sm" }],
  "videoId": "-5ZXrO_lYSA",
  "artistId": null,
  "playlistId": null,
  "views": 7158279,
  "viewsChangePercent": null,
  "channelId": null,
  "channelName": null,
  "channelUrl": null,
  "musicUrl": "https://music.youtube.com/watch?v=BXxgjiHeePI",
  "durationSeconds": null,
  "releaseDate": "2026-08-27",
  "label": "Lloud Co./RCA Records",
  "songwriters": ["LISA", "Thom Bridges", "Christian Beau Anastasiou Astrop"],
  "producers": ["Thom Bridges", "Beau Nox"],
  "thumbnailUrl": "https://yt3.googleusercontent.com/X6shh2YTShbeZhJHkzuyzcsdyaGMVtTyGecA8X03GuiiD4Aggf-99vMMmdoUfoma0PgZT6xUka1UyMk=w180-h180-l90-rj",
  "description": null,
  "genre": null,
  "episodeCount": null,
  "lastUpdatedDate": null,
  "chartName": "Top Songs",
  "chartType": "topSongs",
  "country": "us",
  "period": "weekly",
  "chartDate": "2026-10-29",
  "chartUrl": "https://charts.youtube.com/charts/TopSongs/us/weekly"
}
```

Every item has the same fields. Fields that do not apply to a chart are `null` or empty lists. For example, `artistId` is filled for the top artists chart, and `playlistId`, `description`, `genre`, `episodeCount`, and `lastUpdatedDate` are filled for podcast shows.

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

### Notes

- Charts have up to 100 entries (50 for Shorts songs, 30 for trending charts), so **Maximum results per chart** never returns more than that.
- Top songs and top artists are weekly only, and trending charts have no past dates. A chart URL with an unsupported combination is skipped with a warning.
- Not every chart exists in every country (for example, podcast charts are currently available for the United States only). Charts that do not exist for a country or date are skipped with a warning, and unknown country codes are skipped instead of returning the global chart.
- A chart date between two weekly charts gives you the chart week that contains that date. A date after the latest chart gives you the latest chart.
- `views` is the view count for the chart period (week or day), not the all-time count. Trending and podcast charts do not show views or previous ranks, so those fields are `null`.
- Some Shorts songs and older chart entries have no linked video, so their `url` and `videoId` are `null`.
- `rankChange` is positive when an entry moved up and negative when it moved down.

### Why use the YouTube Charts Scraper?

- ✅ **No login needed**: works with public chart data only, so there is no account to manage.
- 🌍 **Any country, any chart**: paste any chart URL from your browser or list countries in one run.
- 🕰️ **Past charts**: get weekly or daily charts from earlier dates, not just the latest one.
- 🧹 **Clean data**: numbers are real numbers, dates use one standard format, and every item has the same fields.
- 💸 **Pay for what you need**: set a result limit per chart and keep every run small and cheap.
- 🔄 **Ready for automation**: schedule weekly runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many results can I scrape?

Set any number in **Maximum results per chart**, or 0 for the full chart. The limit applies to each chart URL or country separately, so three countries with a limit of 10 give you up to 30 entries.

#### Do I need a YouTube account?

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

#### Can I build a weekly chart history?

Yes. Use Apify Schedules to run the actor every week, or use **Chart date** to collect past weeks.

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

Yes. Right now the actor supports chart URLs and countries with chart type, period, and date. If you need other inputs, such as artist or location insights, 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 social media platforms?

- [YouTube Live Chat Scraper](https://apify.com/aboo.script/youtube-live-chat-scraper): live chat and chat replays from YouTube videos and streams, including Super Chat amounts.
- [TikTok Trending Videos Scraper](https://apify.com/aboo.script/tiktok-trending-videos-scraper): top TikTok videos by country with views, engagement rate, hashtags, and creators.
- [TikTok Trending Hashtags Scraper](https://apify.com/aboo.script/tiktok-trending-hashtags-scraper): TikTok hashtag rankings by country with posts, views, and top creators.

***

**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: [YouTube Charts](https://charts.youtube.com/)

# Actor input Schema

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

YouTube Charts URLs, e.g. https://charts.youtube.com/charts/TopSongs/us/weekly, a dated chart such as https://charts.youtube.com/charts/TopVideos/gb/daily/20250105, or https://charts.youtube.com/podcasts/us. Each URL keeps its own chart, country, period and date.

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

Two-letter country codes (e.g. us, gb, br) or global. One chart is scraped per country, using the chart type, period and date below.

## `chartType` (type: `string`):

Chart to scrape for each country. Applies to the countries list only.

## `period` (type: `string`):

Weekly or daily chart. Top songs, top artists and podcasts are weekly only; trending videos is a live chart. Applies to the countries list only.

## `chartDate` (type: `string`):

Scrape a past chart instead of the latest one. Weekly charts use the chart week that contains this date. Not available for trending videos and podcasts. Applies to the countries list only.

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

Maximum number of chart entries per chart URL or country. Set 0 to get the full chart (up to 100 entries).

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://charts.youtube.com/charts/TopSongs/us/weekly"
    }
  ],
  "chartType": "topSongs",
  "period": "weekly",
  "maxResults": 5
}
```

# 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://charts.youtube.com/charts/TopSongs/us/weekly"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/charts-youtube-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://charts.youtube.com/charts/TopSongs/us/weekly" }] }

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/charts-youtube-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://charts.youtube.com/charts/TopSongs/us/weekly"
    }
  ]
}' |
apify call aboo.script/charts-youtube-scraper --silent --output-dataset

```

## MCP server setup

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