Get Artist's Related Artists
Get Spotify catalog information about artists similar to a given artist. Similarity is based on analysis of the Spotify community's listening history.
ParametersExpand Collapse
ArtistListRelatedArtistsParams params
Optional<String> id
The Spotify ID of the artist.
ReturnsExpand Collapse
class ArtistListRelatedArtistsResponse:
List<ArtistObject> artists
Optional<String> id
The Spotify ID for the artist.
Known external URLs for this artist.
Optional<Boolean> published
The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists
Optional<String> spotify
The Spotify URL for the object.
Information about the followers of the artist.
Optional<String> href
This will always be set to null, as the Web API does not support it at the moment.
Optional<Boolean> published
The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists
Optional<Long> total
The total number of followers.
Optional<List<String>> genres
A list of the genres the artist is associated with. If not yet classified, the array is empty.
Optional<String> href
A link to the Web API endpoint providing full details of the artist.
Images of the artist in various sizes, widest first.
Optional<Long> height
The image height in pixels.
String url
The source URL of the image.
Optional<Long> width
The image width in pixels.
Optional<Boolean> published
The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists
Optional<String> name
The name of the artist.
Optional<Long> popularity
The popularity of the artist. The value will be between 0 and 100, with 100 being the most popular. The artist's popularity is calculated from the popularity of all the artist's tracks.
Optional<Boolean> published
The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists
Optional<Type> type
The object type.
Optional<String> uri
The Spotify URI for the artist.
Get Artist's Related 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.ArtistListRelatedArtistsParams;
import dev.cjav.spotted.models.artists.ArtistListRelatedArtistsResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
SpottedClient client = SpottedOkHttpClient.fromEnv();
ArtistListRelatedArtistsResponse response = client.artists().listRelatedArtists("0TnOYISbd1XYRBk9myaseg");
}
}{
"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"
}
]
}