API · Apple Music
GET /applemusic/artists/{id}
An Apple Music artist with up to 50 albums and the top 25 songs.
| |
|---|
| Request | GET /v1/applemusic/artists/{id} |
| Operation id | applemusic.artist.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
An Apple Music artist with up to 50 albums and the top 25 songs.
| Name | Type | Required | Description |
|---|
id | string | yes | An Apple Music artist id or music.apple.com link (URL-encoded). Example: 159260351. |
| 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. |
| Status | Meaning | Schema |
|---|
200 | The artist, albums and top songs. | AppleMusicArtistResponse |
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 |
| Field | Type | Description |
|---|
artist | AppleMusicArtist | |
albums | AppleMusicAlbum[] | Up to 50, as Apple orders them. |
songs | AppleMusicTrack[] | Top songs, up to 25. |
Errors use one shape everywhere; see Errors for every code and what to do.