YouTube API: List top songs chart
Lists the latest weekly YouTube Music Top Songs chart for a country or globally, with ranks, weekly views and video links.
Unofficial. Not affiliated with or endorsed by YouTube.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Country optional
country Country name or two-letter code, or Global. For example, United States.
Global
Default
global.- Max Results optional
max_results Maximum number of ranked songs to return, for example 25.
100 (default)
Whole number from 1 to 100.
Input as JSON
{ "country": "Global"}Output
{ "songs": [ { "rank": 1, "artists": [ "Shakira", "Burna Boy" ], "song_title": "Dai Dai", "video_link": "https://www.youtube.com/watch?v=fcnDmrtj6Sk" , "weekly_views": 47942059, "previous_rank": 1, "weeks_on_chart": 22 }, { "rank": 2, "artists": [ "ARJN", "KDS", "FIFTY4" ], "song_title": "KALYANI (Remix)", "video_link": "https://www.youtube.com/watch?v=xvT1jH8B9AM" , "weekly_views": 39758870, "previous_rank": 2, "weeks_on_chart": 26 }, { "rank": 3, "artists": [ "KAROL G", "Judeline", "rusowsky" ], "song_title": "BbY WOW", "video_link": "https://www.youtube.com/watch?v=fRIhCiUVaKs" , "weekly_views": 29626337, "previous_rank": 3, "weeks_on_chart": 8 } ], "week_end_date": "2026-10-15", "week_start_date": "2026-10-09"}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"youtube.com/list_top_songs","input":{"country":"Global"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "youtube.com/list_top_songs" , "input": { "country": "Global" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "youtube.com/list_top_songs" , "input": { "country": "Global" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run youtube.com/list_top_songs# with {"country":"Global"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [], "properties": { "country": { "type": "string", "default": "global", "description": "Country name or two-letter code, or Global. For example, United States." }, "max_results": { "type": "integer", "default": 100, "maximum": 100, "minimum": 1, "description": "Maximum number of ranked songs to return, for example 25." } }}Output schema
{ "type": "object", "required": [ "week_start_date", "week_end_date", "songs" ], "properties": { "songs": { "type": "array", "items": { "type": "object", "required": [ "rank", "previous_rank", "song_title", "artists", "weekly_views", "weeks_on_chart", "video_link" ], "properties": { "rank": { "type": "integer" }, "artists": { "type": "array", "items": { "type": "string" } }, "song_title": { "type": "string" }, "video_link": { "type": "string" }, "weekly_views": { "type": "integer" }, "previous_rank": { "type": [ "integer", "null" ] }, "weeks_on_chart": { "type": "integer" } }, "additionalProperties": false }, "description": "Top songs in chart rank order." }, "week_end_date": { "type": "string", "format": "date", "description": "Last day of the chart week." }, "week_start_date": { "type": "string", "format": "date", "description": "First day of the chart week." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
youtube.com/list_top_songs- Returns
- week dates, ranked songs with artists, weekly views, weeks on chart, video link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method youtube.com/list_top_songs with the inputs above.
Ask your agent
- What are the top 25 songs on YouTube Music this week in the United States?
- Show me the global YouTube Music top songs chart with weekly views and weeks on chart
- Which tracks are ranking highest on the YouTube Music charts in Japan right now?
- Give me the latest weekly top 50 songs for Brazil with artists and video links
- Can you pull up the current YouTube top songs list for the UK, ranked, with view counts?
See more
All YouTube methodsLists a YouTube channel's public videos, Shorts, or live uploads, newest first or most popular first, along with channel details. Counts and dates taken from displayed text may be approximate.
youtube.com/list_channel_videosGets public top-level comments on a YouTube video, found by link, video ID or title. Reply text is not included.
youtube.com/get_video_commentsGets public details and statistics for one YouTube video by link, ID or title. A title selects the top search match.
youtube.com/get_videoFinds a company's verified YouTube channel by name and returns its name, link, subscriber count, description, country and official website when identifiable.
youtube.com/find_company_channelGets a public YouTube channel's profile, links and statistics from its name, @handle or link. Subscriber totals may be rounded as YouTube displays them.
youtube.com/get_channelReturns the spoken captions and timed segments of a YouTube video, given a video link or a title (top search match). Only captions the video has are returned.
youtube.com/get_video_transcriptGets Kworb's latest YouTube music chart, worldwide or for one country, ordered by daily views. The worldwide chart covers the past 24 hours. Country charts report daily track streams.
kworb.net/get_youtube_music_chartLists the current top songs, albums, or music videos on Apple Music for a country, in chart order. Countries without an Apple Music chart return no results.
music.apple.com/list_top_charts