Skip to main content
GET
/
api
/
v1
/
artists
/
compilations
Get artist compilations
curl --request GET \
  --url https://spotify-api31.p.rapidapi.com/api/v1/artists/compilations \
  --header 'x-rapidapi-key: <api-key>'
{
  "message": "Success",
  "statusCode": 200,
  "pagination": {
    "total": 100,
    "hasMore": true,
    "continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
  },
  "data": {
    "totalCount": 2,
    "items": [
      {
        "releases": {
          "items": [
            {
              "id": "4g9fKamta77mnDDiYqr8rv",
              "name": "The Beginning & The Best Of The E.N.D.",
              "uri": "spotify:album:4g9fKamta77mnDDiYqr8rv",
              "type": "COMPILATION",
              "coverArts": [
                {
                  "url": "https://i.scdn.co/image/ab67616d00001e02ffbc07d76a861dfcdc172726",
                  "width": 300,
                  "height": 300
                }
              ],
              "date": {
                "isoString": "2011-01-01T00:00:00Z",
                "precision": "DAY",
                "year": 2011
              },
              "playability": {
                "playable": true,
                "reason": "PLAYABLE"
              },
              "sharingInfo": {
                "shareUrl": "https://open.spotify.com/album/4g9fKamta77mnDDiYqr8rv?si=57PHMPiyT2KObXcy2Yc5wA",
                "shareId": "57PHMPiyT2KObXcy2Yc5wA"
              },
              "tracks": {
                "totalCount": 20
              }
            }
          ]
        }
      }
    ]
  }
}

Authorizations

x-rapidapi-key
string
header
required

API Key

Query Parameters

uri
string
required

Spotify artist URI to get artist compilations

Example:

"spotify:artist:1yxSLGMDHlW21z4YXirZDS"

offset
number
default:0

Offset for pagination (default: 0)

Required range: x >= 0
Example:

0

limit
number
default:20

Number of results to return

Required range: 1 <= x <= 100
Example:

20

order_by
enum<string>
default:DATE_DESC

Order by

Available options:
DATE_ASC,
DATE_DESC
Example:

"DATE_DESC"

Response

Success

message
string
Example:

"Success"

statusCode
number
Example:

200

pagination
object
data
object

Artist compilations information