Get User's Top Artists
TopListTopArtistsPage me().top().listTopArtists(TopListTopArtistsParamsparams = TopListTopArtistsParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/me/top/artists
Get the current user's top artists based on calculated affinity.
Parameters
Returns
Get User's Top Artists
package dev.cjav.spotted.example;
import dev.cjav.spotted.client.SpottedClient;
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient;
import dev.cjav.spotted.models.me.top.TopListTopArtistsPage;
import dev.cjav.spotted.models.me.top.TopListTopArtistsParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
SpottedClient client = SpottedOkHttpClient.fromEnv();
TopListTopArtistsPage page = client.me().top().listTopArtists();
}
}{
"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",
"offset": 0,
"previous": "https://api.spotify.com/v1/me/shows?offset=1&limit=1",
"total": 4,
"items": [
{
"id": "id",
"external_urls": {
"published": true,
"spotify": "spotify"
},
"followers": {
"href": "href",
"published": true,
"total": 0
},
"genres": [
"Prog rock",
"Grunge"
],
"href": "href",
"images": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
],
"name": "name",
"popularity": 0,
"published": true,
"type": "artist",
"uri": "uri"
}
],
"published": true
}Returns Examples
{
"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",
"offset": 0,
"previous": "https://api.spotify.com/v1/me/shows?offset=1&limit=1",
"total": 4,
"items": [
{
"id": "id",
"external_urls": {
"published": true,
"spotify": "spotify"
},
"followers": {
"href": "href",
"published": true,
"total": 0
},
"genres": [
"Prog rock",
"Grunge"
],
"href": "href",
"images": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
"width": 300,
"published": true
}
],
"name": "name",
"popularity": 0,
"published": true,
"type": "artist",
"uri": "uri"
}
],
"published": true
}