Get Several Artists
ArtistBulkRetrieveResponse artists().bulkRetrieve(ArtistBulkRetrieveParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/artists
Get Spotify catalog information for several artists based on their Spotify IDs.
Parameters
Returns
Get Several Artists
package dev.cjav.spotted.example;
import dev.cjav.spotted.client.SpottedClient;
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient;
import dev.cjav.spotted.models.artists.ArtistBulkRetrieveParams;
import dev.cjav.spotted.models.artists.ArtistBulkRetrieveResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
SpottedClient client = SpottedOkHttpClient.fromEnv();
ArtistBulkRetrieveParams params = ArtistBulkRetrieveParams.builder()
.ids("2CIMQHirSU0MQqyYHq0eOx,57dN52uHvrHOxijzpIgu3E,1vCWHaC5f2uS3yhpwWbIA6")
.build();
ArtistBulkRetrieveResponse response = client.artists().bulkRetrieve(params);
}
}{
"artists": [
{
"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"
}
]
}Returns Examples
{
"artists": [
{
"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"
}
]
}