Albums
API #
Implementation to make API calls with.
Parameters:
-
access_flow(AuthorizationCodeFlow | ClientCredentialsFlow) –Access flow to use for api requests.
get_album #
Get Spotify catalog information for a single album.
Parameters:
-
album_id(str) –The ID of the album.
-
market(str, default:MISSING) –Only get content available in that market. Must be an ISO 3166-1 alpha-2 country code.
Returns:
-
Album–The requested album.
get_several_albums #
get_album_tracks #
get_album_tracks(album_id: str, *, limit: MissingOr[int] = MISSING, offset: MissingOr[int] = MISSING, market: MissingOr[str] = MISSING) -> Paginator[SimpleTrack]
Get Spotify catalog information about an album's tracks.
Parameters:
-
album_id(str) –The ID of the album.
-
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:
get_users_saved_albums #
get_users_saved_albums(*, limit: MissingOr[int] = MISSING, offset: MissingOr[int] = MISSING, market: MissingOr[str] = MISSING) -> Paginator[SavedAlbum]
Get a list of the albums saved in the current user's 'Your Music' library.
Required Authorization Scope
Parameters:
-
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[SavedAlbum]–A paginator who's items are a list of albums.
save_albums_for_current_user #
Save one or more albums to the current user's 'Your Music' library.
Required Authorization Scope
Parameters:
remove_users_saved_albums #
Remove one or more albums from the current user's 'Your Music' library.
Required Authorization Scope
Parameters:
check_users_saved_albums #
Check if one or more albums is already saved in the current user's 'Your Music' library.
Required Authorization Scope
Parameters:
Returns:
get_new_releases #
get_new_releases(*, limit: MissingOr[int] = MISSING, offset: MissingOr[int] = MISSING) -> Paginator[SimpleAlbum]
Get a list of new album releases featured in Spotify (shown, for example, on a Spotify player's 'Browse' tab).
Parameters:
-
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).
Returns:
-
Paginator[SimpleAlbum]–A paginator who's items are a list of albums.
SimpleAlbum #
A simplified album.
available_markets #
The markets in which the album is available (ISO 3166-1 alpha-2 country codes).
Note
An album is considered available in a market when at least 1 of its tracks is available in that market.
name #
name: str
The name of the album.
Note
In case of an album takedown, the value may be an empty string.
release_date_precision #
release_date_precision: ReleaseDatePrecision
The precision with which release_date is known.
restrictions #
restrictions: Restrictions | None = None
Restrictions applied to the album. Included when a content restriction is applied.
Album #
An album.
available_markets #
The markets in which the album is available (ISO 3166-1 alpha-2 country codes).
Note
An album is considered available in a market when at least 1 of its tracks is available in that market.
name #
name: str
The name of the album.
Note
In case of an album takedown, the value may be an empty string.
release_date_precision #
release_date_precision: ReleaseDatePrecision
The precision with which release_date is known.
restrictions #
restrictions: Restrictions | None = None
Restrictions applied to the album. Included when a content restriction is applied.
genres #
The genres the album is associated with. If not yet classified, this list is empty.
ArtistAlbum #
An artist's album.
available_markets #
The markets in which the album is available (ISO 3166-1 alpha-2 country codes).
Note
An album is considered available in a market when at least 1 of its tracks is available in that market.
name #
name: str
The name of the album.
Note
In case of an album takedown, the value may be an empty string.
release_date_precision #
release_date_precision: ReleaseDatePrecision
The precision with which release_date is known.
restrictions #
restrictions: Restrictions | None = None
Restrictions applied to the album. Included when a content restriction is applied.