Hey,
When i try to use the endpoint GET /v1/me/top/{type} with an offset of above 50, the result sent back from the endpoint is an empty list of 0 tracks.
I am trying to get a User's top 100 songs, and to do so I'm trying to call GET /v1/me/top/tracks?limit=50&offset=0 and then GET /v1/me/top/tracks?limit=50&offset=50. The second call returns an empty list.
Solved! Go to Solution.
Hey @MaximusMS, thanks for coming to the Community for help!
I might be able to shed a light here. I did some digging on the 'Get a User's Top Artists and Tracks'-endpoint and it seems that the API is only able to return the user's top 50. From the Web API reference: 'For each time range, the top 50 tracks and artists are available for each user. In the future, it is likely that this restriction will be relaxed. This data is typically updated once each day for each user.'
If this is something you'd like to see, I recommend creating a new idea on the Ideas board. That way, Spotify can keep track of it.
Let me know if you have any questions.
Happy coding,
Hubo
Hey @MaximusMS, thanks for coming to the Community for help!
I might be able to shed a light here. I did some digging on the 'Get a User's Top Artists and Tracks'-endpoint and it seems that the API is only able to return the user's top 50. From the Web API reference: 'For each time range, the top 50 tracks and artists are available for each user. In the future, it is likely that this restriction will be relaxed. This data is typically updated once each day for each user.'
If this is something you'd like to see, I recommend creating a new idea on the Ideas board. That way, Spotify can keep track of it.
Let me know if you have any questions.
Happy coding,
Hubo
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game…
Env: prod