Apple API: List top charts
Lists 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.
Unofficial. Not affiliated with or endorsed by Apple.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Chart optional
chart Chart to list, for example top_albums.
top_songs
One of
top_songs,top_albums,top_music_videos. Defaulttop_songs.- Country optional
country Country name or two-letter code, for example Canada or CA.
United States
Default
United States.- Max Results optional
max_results Number of entries, for example 25 (maximum 100).
50 (default)
Whole number from 1 to 100.
Input as JSON
{ "chart": "top_songs", "country": "United States"}Output
{ "items": [ { "rank": 1, "genre": "Pop", "title": "Housewife", "artist": "Tate McRae", "apple_id": "6822497774", "release_date": "2026-10-15", "apple_music_url": "https://music.apple.com/us/album/housewife/6822497770?i=6822497774" , "cover_image_url": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/2b/96/2b/2b962b77-3a04-5650-aefd-37ecfce04b03/196874840146.jpg/100x100bb.jpg" }, { "rank": 2, "genre": "Country", "title": "Lies (feat. Lana Del Rey)", "artist": "Zach Bryan & Lana Del Rey", "apple_id": "6822944296", "release_date": "2026-10-15", "apple_music_url": "https://music.apple.com/us/album/lies-feat-lana-del-rey/6822944288?i=6822944296" , "cover_image_url": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/ea/98/f2/ea98f2b8-5131-29ae-2064-997234ef13bc/093624812647.jpg/100x100bb.jpg" }, { "rank": 3, "genre": "Country", "title": "Choosin' Texas", "artist": "Ella Langley", "apple_id": "1844932150", "release_date": "2025-10-17", "apple_music_url": "https://music.apple.com/us/album/choosin-texas/1844932149?i=1844932150" , "cover_image_url": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/e2/91/4d/e2914d0a-7f1d-f04c-fbf4-c50b38548838/196873638690.jpg/100x100bb.jpg" } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"music.apple.com/list_top_charts","input":{"chart":"top_songs","country":"United States"}}' # 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": "music.apple.com/list_top_charts" , "input": { "chart": "top_songs", "country": "United States" }})# 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": "music.apple.com/list_top_charts" , "input": { "chart": "top_songs", "country": "United States" } }), 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 music.apple.com/list_top_charts# with {"chart":"top_songs","country":"United States"}"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": { "chart": { "enum": [ "top_songs", "top_albums", "top_music_videos" ], "type": "string", "default": "top_songs", "description": "Chart to list, for example top_albums." }, "country": { "type": "string", "default": "United States", "description": "Country name or two-letter code, for example Canada or CA." }, "max_results": { "type": "integer", "default": 50, "maximum": 100, "minimum": 1, "description": "Number of entries, for example 25 (maximum 100)." } }}Output schema
{ "type": "object", "required": [ "items" ], "properties": { "items": { "type": "array", "items": { "type": "object", "required": [ "rank", "title", "artist", "genre", "release_date", "cover_image_url", "apple_music_url", "apple_id" ], "properties": { "rank": { "type": "integer", "description": "Position in the chart." }, "genre": { "type": [ "string", "null" ] }, "title": { "type": [ "string", "null" ] }, "artist": { "type": [ "string", "null" ] }, "apple_id": { "type": [ "string", "null" ] }, "release_date": { "type": [ "string", "null" ], "description": "Release date in YYYY-MM-DD format." }, "apple_music_url": { "type": [ "string", "null" ] }, "cover_image_url": { "type": [ "string", "null" ] } }, "additionalProperties": false } } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
music.apple.com/list_top_charts- Returns
- rank, title, artist, genre, release date, cover image, Apple Music URL, Apple ID
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 music.apple.com/list_top_charts with the inputs above.
Ask your agent
- What are the top 25 albums on Apple Music in Canada right now?
- Show me the current top songs chart for the United States, top 50 entries.
- Which music videos are trending on Apple Music in Japan this week? Give me the top 10 with artists.
- I need the top albums ranking in Germany on Apple Music, including release dates and genres.
- Pull up apple.com's top songs list for the UK, limited to 20 results in chart order.
See more
All Apple methodsLists ranked iPhone or iPad apps from the public App Store charts for a chart, category, and country. App bundles and apps that are no longer available are left out.
apps.apple.com/list_top_chartsLists Apple Podcasts chart entries in rank order for a country and category, as top shows or top episodes.
podcasts.apple.com/list_top_podcastsSearches the Apple Music song catalog by title and artist words, returning matching tracks in relevance order with prices and previews when available.
music.apple.com/search_songsGets an Apple Music artist profile by name or artist link. The profile includes the latest release, top songs and albums.
music.apple.com/get_artistFinds Apple Podcasts shows by name or topic in a country, ordered by search relevance, with ratings when the show page provides them.
podcasts.apple.com/search_podcastsFinds an Apple Music album by title and optional artist, or by album link, and returns its matched release, purchase details and tracks in order.
music.apple.com/get_albumFinds iPhone and iPad apps by keyword in a chosen country's App Store, with ratings, prices, categories and App Store links.
apps.apple.com/search_appsGets a podcast's country-specific rating total and average, plus up to 500 listener reviews sorted by newest or most helpful.
podcasts.apple.com/get_podcast_reviews