Get User's Top Items
Changed onGet the current user's top artists or tracks based on calculated affinity.
Request
- Base URLhttps://api.spotify.com/v1
- URLhttps://api.spotify.com/v1/me/top/{type}
- AuthOAuth 2Authorization code: https://accounts.spotify.com/authorizeToken URL: https://accounts.spotify.com/api/token scopes: user-top-read
Path parameters
The type of entity to return. Valid values: artists or tracks
Query parameters
Over what time frame the affinities are computed. Valid values: long_term (calculated from ~1 year of data and including all new data as it becomes available), medium_term (approximately last 6 months), short_term (approximately last 4 weeks). Default: medium_term
The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
The index of the first item to return. Default: 0 (the first item). Use with limit to get the next set of items.
Response
Pages of artists or tracks
Example response
{
"href": "https://api.spotify.com/v1/me/shows?offset=0&limit=20\n",
"limit": 20,
"next": "https://api.spotify.com/v1/me/shows?offset=1&limit=1",
"previous": "https://api.spotify.com/v1/me/shows?offset=1&limit=1",
"total": 4,
"items": [
{
"genres": [
"Prog rock",
"Grunge"
],
"images": [
{
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"height": 300,
"width": 300
}
]
}
]
}Changes
- info
response property
allOf[subschema #2]/items/items/oneOf[TrackObject]/external_idsreactivated
- info
- info
response property
allOf[subschema #2]/items/items/oneOf[ArtistObject]/followersdeprecated - info
response property
allOf[subschema #2]/items/items/oneOf[ArtistObject]/genresdeprecated - info
response property
allOf[subschema #2]/items/items/oneOf[ArtistObject]/popularitydeprecated - info
response property
allOf[subschema #2]/items/items/oneOf[TrackObject]/album/allOf[SimplifiedAlbumObject]/allOf[AlbumBase]/available_marketsdeprecated - info
response property
allOf[subschema #2]/items/items/oneOf[TrackObject]/available_marketsdeprecated - info
response property
allOf[subschema #2]/items/items/oneOf[TrackObject]/external_idsdeprecated - info
response property
allOf[subschema #2]/items/items/oneOf[TrackObject]/linked_fromdeprecated - info
response property
allOf[subschema #2]/items/items/oneOf[TrackObject]/popularitydeprecated
- info