API · Apple Music
GET /applemusic/charts
A country’s Apple Music most-played chart: songs, albums, videos or playlists.
| Request | GET /v1/applemusic/charts |
| Operation id | applemusic.charts.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A country’s Apple Music most-played chart: songs, albums, videos or playlists.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
country | string | no | Storefront, ISO 3166-1 alpha-2 in any case (default us, or the link’s). uk reads as gb. Example: gb. |
type | "songs" | "albums" | "music-videos" | "playlists" | no | songs (default), albums, music-videos or playlists. One of songs, albums, music-videos, playlists. |
limit | integer | no | Positions from the top (default 50). |
since | string | no | Only entries released on or after this date. |
until | string | no | Only entries released on or before this date. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The chart. | AppleMusicChartResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No Apple Music item by that id in that storefront. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Apple Music is temporarily unavailable. Retryable; nothing was charged. | Error |
AppleMusicChartResponse fields
| Field | Type | Description |
|---|---|---|
feed | object |
Errors use one shape everywhere; see Errors for every code and what to do.