Spotify Top Tracks
GET https://api.spotify.com/v1/artists/43ZHCT0cAZBISjO8DG9PnE/top-tracks?country=SE
Visualizes the structure of the response from the Spotify API: top tracks.
Sample JSON response
```
{
tracks
: [
{
album
: {
album_type
: album
,
artists
: [
{
external_urls
: {
spotify
: https://open.spotify.com/artist/43ZHCT0cAZBISjO8DG9PnE
},
href
: https://api.spotify.com/v1/artists/43ZHCT0cAZBISjO8DG9PnE
,
id
: 43ZHCT0cAZBISjO8DG9PnE
,
name
: Elvis Presley
,
type
: artist
,
uri
: spotify:artist:43ZHCT0cAZBISjO8DG9PnE
}
],
external_urls
: {
spotify
: https://open.spotify.com/album/7xe8VI48TxUpU1IIo0RfGi
},
href
: https://api.spotify.com/v1/albums/7xe8VI48TxUpU1IIo0RfGi
,
id
: 7xe8VI48TxUpU1IIo0RfGi
,
images
: [
{
height
: 640,
url
: https://i.scdn.co/image/ab67616d0000b273f96cefb0197694ad440c3314
,
width
: 640
},
{
height
: 300,
url
: https://i.scdn.co/image/ab67616d00001e02f96cefb0197694ad440c3314
,
width
: 300
},
{
height
: 64,
url
: https://i.scdn.co/image/ab67616d00004851f96cefb0197694ad440c3314
,
width
: 64
}
],
name
: Blue Hawaii
,
release_date
: 1961-10-20
,
release_date_precision
: day
,
total_tracks
: 14,
type
: album
,
uri
: spotify:album:7xe8VI48TxUpU1IIo0RfGi
},
artists
: [
{
external_urls
: {
spotify
: https://open.spotify.com/artist/43ZHCT0cAZBISjO8DG9PnE
},
href
: https://api.spotify.com/v1/artists/43ZHCT0cAZBISjO8DG9PnE
,
id
: 43ZHCT0cAZBISjO8DG9PnE
,
name
: Elvis Presley
,
type
: artist
,
uri
: spotify:artist:43ZHCT0cAZBISjO8DG9PnE
}
],
disc_number
: 1,
duration_ms
: 182360,
explicit
: false,
external_ids
: {
isrc
: USRC16101350
},
external_urls
: {
spotify
: https://open.spotify.com/track/44AyOl4qVkzS48vBsbNXaC
},
href
: https://api.spotify.com/v1/tracks/44AyOl4qVkzS48vBsbNXaC
,
id
: 44AyOl4qVkzS48vBsbNXaC
,
is_local
: false,
is_playable
: true,
name
: Can't Help Falling in Love
,
popularity
: 79,
preview_url
: https://p.scdn.co/mp3-preview/994ebd7f49e4e935df56d450b0c12d8bad8bb9f4?cid=ab343db462f8494ea1e3f226eb7bc0cc
,
track_number
: 5,
type
: track
,
uri
: spotify:track:44AyOl4qVkzS48vBsbNXaC
},
. . .
]
} ```
Sample Tree
![[Tree] alt text](/assets/blogs/https://raw.githubusercontent.com/isabelleyzhou/Qodex_visualizer_templates/master/tree/Spotify.png)
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
country | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |