Skip to main content
GET
/
api
/
spotify
/
artist
/
topTracks
cURL
curl --request GET \
  --url https://api.recoupable.com/api/spotify/artist/topTracks \
  --header 'Authorization: Bearer <token>'
{
  "tracks": [
    {
      "album": {
        "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"
      },
      "artists": [
        {
          "external_urls": {
            "spotify": "<string>"
          },
          "href": "<string>",
          "id": "<string>",
          "name": "<string>",
          "type": "artist",
          "uri": "<string>"
        }
      ],
      "available_markets": [
        "<string>"
      ],
      "disc_number": 123,
      "duration_ms": 123,
      "explicit": true,
      "external_ids": {
        "isrc": "<string>",
        "ean": "<string>",
        "upc": "<string>"
      },
      "external_urls": {
        "spotify": "<string>"
      },
      "href": "<string>",
      "id": "<string>",
      "is_playable": true,
      "linked_from": {},
      "restrictions": {
        "reason": "<string>"
      },
      "name": "<string>",
      "popularity": 123,
      "preview_url": "<string>",
      "track_number": 123,
      "type": "track",
      "uri": "<string>",
      "is_local": true
    }
  ]
}

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

market
string

An ISO 3166-1 alpha-2 country code. If provided, only tracks available in that market are returned

Response

Artist top tracks retrieved successfully

tracks
object[]

Array of track objects