provider UsersTracksLibrary GET /me/top/{type}
@utdk/spotify /me/top/{type}
Get User's Top Items
Get the current user's top artists or tracks based on calculated affinity.
type path required
enum: artists, tracks
time_range query
string
limit query
integer
offset query
integer

Try it

Authentication
Configure credentials for Spotify Web API
getUsersTopArtistsAndTracks
GET/me/top/{type}
Get the current user's top artists or tracks based on calculated affinity.

Parameters

required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import spotify from '@utdk/spotify';

await spotify.getUsersTopArtistsAndTracks({
  "time_range": "medium_term",
  "limit": 20,
  "offset": 0
})