Artists
API #
Implementation to make API calls with.
Parameters:
-
access_flow(AuthorizationCodeFlow | ClientCredentialsFlow) –Access flow to use for api requests.
get_artist #
get_several_artists #
get_artists_albums #
get_artists_albums(artist_id: str, *, include_groups: MissingOr[list[AlbumGroup]] = MISSING, limit: MissingOr[int] = MISSING, offset: MissingOr[int] = MISSING, market: MissingOr[str] = MISSING) -> Paginator[ArtistAlbum]
Get Spotify catalog information about an artist's albums.
Parameters:
-
artist_id(str) –The ID of the artist.
-
include_groups(list[AlbumGroup], default:all album types) –Used to filter the type of items returned. If not specified, all album types_ will be returned.
-
limit(int, default:20) –The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
-
offset(int, default:0) –The index of the first item to return. Default: 0 (the first item).
-
market(str, default:MISSING) –Only get content available in that market. Must be an ISO 3166-1 alpha-2 country code.
Returns:
-
Paginator[ArtistAlbum]–A paginator who's items are a list of albums.
get_artists_top_tracks #
get_artists_top_tracks(artist_id: str, *, market: MissingOr[str] = MISSING) -> list[TrackWithSimpleArtist]
Get Spotify catalog information about an artist's top tracks.
Parameters:
-
artist_id(str) –The ID of the artist.
-
market(str, default:MISSING) –Only get content available in that market. Must be an ISO 3166-1 alpha-2 country code.
Returns:
-
list[TrackWithSimpleArtist]–The requested tracks.
get_artists_related_artists #
SimpleArtist #
A simplified artist.