Get a User's Top Artists and Tracks
Developing
GET
/me/top/{type}
category-personalization
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/v1/me/top/' \
--header 'Authorization;'
Response Response Example
200 - Example 1
{
"href": "string",
"items": [
{
"external_urls": {
"spotify": "string"
},
"followers": {
"href": "string",
"total": 0
},
"genres": [
"string"
],
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"name": "string",
"popularity": 0,
"type": "string",
"uri": "string"
}
],
"limit": 0,
"next": "string",
"offset": 0,
"previous": "string",
"total": 0
}
Request
Path Params
type
string
required
artists
or tracks
Query Params
time_range
string
optional
long_term
(calculated from several years 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
limit
integer
optional
limit=2
offset
integer
optional
Header Params
Authorization
string
required
Getting details of a user's top artists and tracks requires authorization of the
user-top-read
scope. See Using Scopes.Responses
Modified at 2022-09-12 10:04:50