Skip to main content
GET
/
api
/
spotify
/
artist
/
albums
cURL
curl --request GET \
  --url https://api.recoupable.com/api/spotify/artist/albums \
  --header 'Authorization: Bearer <token>'
{
  "href": "<string>",
  "limit": 123,
  "next": "<string>",
  "offset": 123,
  "previous": "<string>",
  "total": 123,
  "items": [
    {
      "album_type": "album",
      "total_tracks": 123,
      "available_markets": [
        "<string>"
      ],
      "external_urls": {
        "spotify": "<string>"
      },
      "href": "<string>",
      "id": "<string>",
      "images": [
        {
          "url": "<string>",
          "height": 123,
          "width": 123
        }
      ],
      "name": "<string>",
      "release_date": "<string>",
      "release_date_precision": "year",
      "restrictions": {
        "reason": "<string>"
      },
      "type": "album",
      "uri": "<string>",
      "artists": [
        {
          "external_urls": {
            "spotify": "<string>"
          },
          "href": "<string>",
          "id": "<string>",
          "name": "<string>",
          "type": "artist",
          "uri": "<string>"
        }
      ],
      "album_group": "album"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
string
required

The Spotify ID of the artist

include_groups
string

A comma-separated list of keywords to filter the response. Valid values are: album, single, appears_on, compilation

market
string

An ISO 3166-1 alpha-2 country code. If specified, only content available in that market will be returned

limit
integer
default:20

The maximum number of items to return (default: 20, min: 1, max: 50)

Required range: 1 <= x <= 50
offset
integer
default:0

The index of the first item to return (default: 0)

Response

Artist albums retrieved successfully

href
string

A link to the Web API endpoint returning the full result

limit
integer

The maximum number of items in the response

next
string | null

URL to the next page of items

offset
integer

The offset of the items returned

previous
string | null

URL to the previous page of items

total
integer

The total number of items available

items
object[]

Array of simplified album objects