logoPandorLabs
social data api

Apple Music

Artists, albums, tracks and search.

Artist1 request
Album1 request
Song1 request
Search the catalog1 request
GET/v1/apple-music/artist

Artist

1 request

Returns the public data on an Apple Music artist page, covering artwork, top songs, editorial notes, albums, playlists, music videos and related sections.

Query parameters

id
string
Apple Music artist id. Send this or url.
url
string
Apple Music artist URL. Send this or id.
curl "https://api.pandorlabs.com/v1/apple-music/artist" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "data": {
    "id": "159260351",
    "kind": "artist",
    "name": "Taylor Swift",
    "url": "https://music.apple.com/us/artist/taylor-swift/159260351",
    "artwork": {
      "url": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages221/v4/70/30/3b/example/1200x1200bb.jpg",
      "width": 5998,
      "height": 5998
    },
    "editorial_notes": "The country world feigned surprise when Taylor Swift formally embraced pop...",
    "top_songs": [
      {
        "id": "1833328840",
        "kind": "song",
        "title": "The Fate of Ophelia",
        "artist_name": "Taylor Swift",
        "url": "https://music.apple.com/us/album/the-fate-of-ophelia/1833328839?i=1833328840",
        "duration_ms": 226000
      }
    ],
    "albums": [
      {
        "id": "1468058165",
        "kind": "album",
        "title": "Lover",
        "subtitle": "Taylor Swift",
        "track_count": 18,
        "url": "https://music.apple.com/us/album/lover/1468058165"
      }
    ]
  }
}
GET/v1/apple-music/album

Album

1 request

Returns an Apple Music album's public data: title, artist, artwork, release details, the track list, and other releases by the same artist.

Query parameters

id
string
Apple Music album id. Send this or url.
url
string
Apple Music album URL. Send this or id.
curl "https://api.pandorlabs.com/v1/apple-music/album" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "data": {
    "id": "1468058165",
    "kind": "album",
    "title": "Lover",
    "artist_name": "Taylor Swift",
    "artist_url": "https://music.apple.com/us/artist/taylor-swift/159260351",
    "url": "https://music.apple.com/us/album/lover/1468058165",
    "track_count": 18,
    "release_info": "August 23, 2019\n18 songs, 1 hour 1 minute\n℗ 2019 Taylor Swift",
    "tracks": [
      {
        "id": "1468058169",
        "kind": "song",
        "title": "I Forgot That You Existed",
        "duration_ms": 170651,
        "track_number": 1,
        "album_id": "1468058165"
      }
    ]
  }
}
GET/v1/apple-music/track

Song

1 request

Returns an Apple Music song's public data, looked up by id or URL. Album URLs that carry an i= song id are accepted.

Query parameters

id
string
Apple Music song id. Only some songs have a standalone song page; for a track inside an album, use url.
url
string
Apple Music song URL, or an album URL pointing at a track.
curl "https://api.pandorlabs.com/v1/apple-music/track" \  -H "Authorization: Bearer $PANDORLABS_KEY"
Example response

Response

{
  "success": true,
  "credits_charged": 1,
  "data": {
    "id": "1468058169",
    "kind": "song",
    "title": "I Forgot That You Existed",
    "album": null,
    "url": "https://music.apple.com/us/album/i-forgot-that-you-existed/1468058165?i=1468058169",
    "duration_ms": 170651,
    "track_number": 1,
    "artist_name": null,
    "explicit": false
  }
}