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
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getUsersTopArtistsAndTracks
GET/me/top/{type}
Get the current user's top artists or tracks based on calculated affinity.

Parameters

required

Enter a gateway URL 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
})