Apple Music charts API
A country’s most-played Apple Music chart, songs, albums, music videos or playlists, in chart order.
GET /v1/applemusic/charts1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/applemusic/charts?country=gb&type=songs&limit=10",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "feed": { "title": "Top Songs", "country": "gb", "updated": "Fri, 27 Nov 2026 00:21:11 +0000", "results": [ { "id": "6794168373", "name": "Babydoll", "kind": "songs", "artistName": "Jamie Miller", "artistId": "381183610", "artistUrl": "https://music.apple.com/gb/artist/jamie-miller/381183610", "releaseDate": "2026-08-07", "artworkUrl100": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/e6/15/d2/e615d28f-70b5-e43a-b3c8-460dca39c9e5/26UMGIM97516.rgb.jpg/…", "genres": [ { "genreId": "14", "name": "Pop", "url": "https://itunes.apple.com/gb/genre/id14" }, { "genreId": "34", "name": "Music", "url": "https://itunes.apple.com/gb/genre/id34" } ], "url": "https://music.apple.com/gb/album/babydoll/6794168372?i=6794168373" }, { "id": "6819802968", "name": "Flower In A Hurricane [From GTAVI: Original Score]", "kind": "songs", "artistName": "Justice, Tame Impala, SZA & King Gizzard & The Lizard Wizard", "artistId": "145072812", "artistUrl": "https://music.apple.com/gb/artist/justice/145072812", "releaseDate": "2026-10-15", "artworkUrl100": "https://is1-ssl.mzstatic.com/image/thumb/Music211/v4/af/23/54/af235448-23b3-a3bf-0738-87f6c44a4bbc/5056556187486_cover.j…", "genres": [ { "genreId": "20", "name": "Alternative", "url": "https://itunes.apple.com/gb/genre/id20" }, { "genreId": "34", "name": "Music", "url": "https://itunes.apple.com/gb/genre/id34" } ], "url": "https://music.apple.com/gb/album/flower-in-a-hurricane-from-gtavi-original-score/6819802963?i=6819802968" }, "… 8 more" ], "id": "https://rss.marketingtools.apple.com/api/v2/gb/music/most-played/10/songs.json", "author": { "name": "Apple", "url": "https://www.apple.com/" }, "links": [ { "self": "https://rss.marketingtools.apple.com/api/v2/gb/music/most-played/10/songs.json" } ], "copyright": "Copyright © 2026 Apple Inc. All rights reserved.", "icon": "https://www.apple.com/favicon.ico" }}Parameters
| Name | Type | Description |
|---|---|---|
countryquery | string | Storefront, ISO 3166-1 alpha-2 in any case (default us, or the link’s). uk reads as gb. Example: gb. |
typequery | "songs" | "albums" | "music-videos" | "playlists" | songs (default), albums, music-videos or playlists. One of songs, albums, music-videos, playlists. |
limitquery | integer | Positions from the top (default 50). |
sincequery | string | Only entries released on or after this date. |
untilquery | string | Only entries released on or before this date. |
Response fields
200 with a AppleMusicChartResponse, in Apple’s own iTunes Search API and RSS chart JSON.
| Field | Type | Description |
|---|---|---|
feed | object |
Status codes
| Status | Meaning |
|---|---|
200 | The chart. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Apple Music item by that id in that storefront. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Apple Music is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Which countries?
Most storefronts where Apple Music is sold.
Apple Music is a trademark of Apple Inc. We are not affiliated with or endorsed by Apple.