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
}
]
}Get an artist’s top tracks by country.
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
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Spotify ID of the artist
An ISO 3166-1 alpha-2 country code. If provided, only tracks available in that market are returned
Artist top tracks retrieved successfully
Array of track objects
Show child attributes