Web Service Endpoint

Get a Catalog Playlist

Fetch a playlist by using its identifier.

URL

GET https://api.music.apple.com/v1/catalog/{storefront}/playlists/{id}

Path Parameters

id
string
(Required)

The unique identifier for the playlist.

storefront
string
(Required)

An iTunes Store territory, specified by an ISO 3166 alpha-2 country code. The possible values are the id attributes of Storefront objects.

Query Parameters

l
string

The localization to use, specified by a language tag. The possible values are in the supportedLanguageTags array belonging to the Storefront object specified by storefront. Otherwise, the storefront’s defaultLanguageTag is used.

include
[string]

Additional relationships to include in the fetch.

Response Codes

OK

The request was successful.

Discussion

If successful, the HTTP status code is 200 (OK) and the data array in the ResponseRoot object contains a single Playlist object. If unsuccessful, the HTTP status code indicates the error and the details are in the errors array. See Handle a Response.

Example

https://api.music.apple.com/v1/catalog/us/playlists/pl.acc464c750b94302b8806e5fcbe56e17
{ "data": [ { "attributes": { "artwork": { "bgColor": "161d16", "height": 1080, "isMosaic": true, "textColor1": "ffffff", "textColor2": "e3aa71", "textColor3": "d0d1d0", "textColor4": "ba8e5f", "url": "https://example.mzstatic.com/image/thumb/Features71/v4/49/f0/f6/49f0f636-cefe-0fba-a6a1-01321374e768/source/{w}x{h}cc.jpeg", "width": 4320 }, "curatorName": "Apple Music R&B", "description": { "short": "The songs that cemented her iconic status.", "standard": "Few female artists have reached the top of the charts as frequently as Janet Jackson. We've assembled all of her number one hits for a chart-topping collection which confirms her status as the true Queen of pop-R&B." }, "lastModifiedDate": "2015-04-11T16:15:51Z", "name": "Janet Jackson: No.1 Songs", "playParams": { "id": "pl.acc464c750b94302b8806e5fcbe56e17", "kind": "playlist" }, "playlistType": "editorial", "url": "https://itunes.apple.com/us/playlist/janet-jackson-no-1-songs/pl.acc464c750b94302b8806e5fcbe56e17" }, "href": "/v1/catalog/us/playlists/pl.acc464c750b94302b8806e5fcbe56e17", "id": "pl.acc464c750b94302b8806e5fcbe56e17", "relationships": { "curator": { "data": [ { "href": "/v1/catalog/us/apple-curators/976439551", "id": "976439551", "type": "apple-curators" } ], "href": "/v1/catalog/us/playlists/pl.acc464c750b94302b8806e5fcbe56e17/curator" }, "tracks": { "data": [ { "attributes": { "artistName": "Janet Jackson", "artwork": { "bgColor": "9c3526", "height": 1404, "textColor1": "ffffe5", "textColor2": "ffc79f", "textColor3": "ebd6be", "textColor4": "eba986", "url": "https://example.mzstatic.com/image/thumb/Music4/v4/77/50/11/7750111a-af31-7dc1-4f2f-e1cc855f394d/source/{w}x{h}bb.jpeg", "width": 1404 }, "discNumber": 1, "durationInMillis": 301200, "genreNames": [ "Rock", "Music", "R&B/Soul", "Contemporary R&B", "Pop", "Adult Contemporary", "Dance", "Electronic" ], "isrc": "USVI29700014", "name": "Together Again", "playParams": { "id": "723390870", "kind": "song" }, "previews": [ { "url": "https://example.itunes.apple.com/apple-assets-us-std-000001/Music7/v4/31/db/d5/31dbd582-cf23-08f5-1394-c28316f0cde2/mzaf_2035383873021370206.plus.aac.p.m4a" } ], "releaseDate": "1997-10-07", "trackNumber": 11, "url": "https://itunes.apple.com/us/album/together-again/723390477?i=723390870" }, "href": "/v1/catalog/us/songs/723390870", "id": "723390870", "type": "songs" }, { "attributes": { "artistName": "Janet Jackson", "artwork": { "bgColor": "ffffff", "height": 1404, "textColor1": "050404", "textColor2": "452c22", "textColor3": "373636", "textColor4": "6a564e", "url": "https://example.mzstatic.com/image/thumb/Music/v4/30/75/33/30753397-86e8-5b3a-e48b-85fb785c4124/source/{w}x{h}bb.jpeg", "width": 1404 }, "discNumber": 1, "durationInMillis": 330027, "genreNames": [ "Pop", "Music", "Rock", "Electronic", "R&B/Soul", "Contemporary R&B", "Adult Contemporary", "Dance", "Pop/Rock" ], "isrc": "USVI20100057", "name": "All for You", "playParams": { "id": "724885384", "kind": "song" }, "previews": [ { "url": "https://example.itunes.apple.com/apple-assets-us-std-000001/Music2/v4/69/03/c1/6903c1d7-32c9-85cd-d301-5d4bb4e07125/mzaf_4441152766436868823.plus.aac.p.m4a" } ], "releaseDate": "2001-03-13", "trackNumber": 3, "url": "https://itunes.apple.com/us/album/all-for-you/724885014?i=724885384" }, "href": "/v1/catalog/us/songs/724885384", "id": "724885384", "type": "songs" }, { "attributes": { "artistName": "Janet Jackson", "artwork": { "bgColor": "ffffff", "height": 1404, "textColor1": "050404", "textColor2": "452c22", "textColor3": "373636", "textColor4": "6a564e", "url": "https://example.mzstatic.com/image/thumb/Music/v4/30/75/33/30753397-86e8-5b3a-e48b-85fb785c4124/source/{w}x{h}bb.jpeg", "width": 1404 }, "discNumber": 1, "durationInMillis": 264973, "genreNames": [ "Pop", "Music", "Rock", "Electronic", "R&B/Soul", "Contemporary R&B", "Adult Contemporary", "Dance", "Pop/Rock" ], "isrc": "USVI20100098", "name": "Doesn't Really Matter", "playParams": { "id": "724885790", "kind": "song" }, "previews": [ { "url": "https://example.itunes.apple.com/apple-assets-us-std-000001/Music1/v4/25/51/98/255198f2-02d9-0d8a-183f-9cacee118b2e/mzaf_1901656142812658216.plus.aac.p.m4a" } ], "releaseDate": "2001-04-24", "trackNumber": 17, "url": "https://itunes.apple.com/us/album/doesnt-really-matter/724885014?i=724885790" }, "href": "/v1/catalog/us/songs/724885790", "id": "724885790", "type": "songs" } ], "href": "/v1/catalog/us/playlists/pl.acc464c750b94302b8806e5fcbe56e17/tracks" } }, "type": "playlists" } ]}

See Also

Requesting a Catalog Playlist

Get a Catalog Playlist's Relationship Directly by Name

Fetch a playlist's relationship by using its identifier.

Get Multiple Catalog Playlists

Fetch one or more playlists by using their identifiers.