LibraryAPI¶
- class minim.api.spotify.LibraryAPI(client: APIClient, /)[source]¶
Bases:
SpotifyResourceAPILibrary API endpoints for the Spotify Web API.
Important
This class is managed by
SpotifyWebAPIClientand should not be instantiated directly.- Parameters:
- clientminim.api._shared.APIClient
API client instance used to make HTTP requests.
Methods
Library > Check User's Saved Items: Check whether one or more items are saved in the current user's library.
Library > Remove Items from Library: Remove one or more items from the current user's library.
Library > Save Items to Library: Save one or more items to the current user's library.
- are_items_saved(spotify_uris: str | Collection[str], /) list[bool][source]¶
Library > Check User’s Saved Items: Check whether one or more items are saved in the current user’s library.
Authorization scopes
user-library-readscopeAccess your saved content. Learn more.
user-follow-readscopeAccess your followers and who you are following. Learn more.
playlist-read-privatescopeAccess your private playlists. Learn more.
- Parameters:
- spotify_urisstr or Collection[str]; positional-only
Comma-separated string or collection of Spotify URIs. A maximum of 40 URIs can be sent in a request.
- Returns:
- savedlist[bool]
Whether the current user has the specified albums saved in their library.
- remove_saved_items(spotify_uris: str | Collection[str], /) None[source]¶
Library > Remove Items from Library: Remove one or more items from the current user’s library.
Authorization scopes
user-library-modifyscopeManage your saved content. Learn more.
user-follow-modifyscopeManage your saved content. Learn more.
playlist-modify-publicscopeManage your public playlists. Learn more.
- Parameters:
- spotify_urisstr or Collection[str]; positional-only
Comma-separated string or collection of Spotify URIs. A maximum of 40 URIs can be sent in a request.
- save_items(spotify_uris: str | Collection[str], /) None[source]¶
Library > Save Items to Library: Save one or more items to the current user’s library.
Authorization scopes
user-library-modifyscopeManage your saved content. Learn more.
user-follow-modifyscopeManage your saved content. Learn more.
playlist-modify-publicscopeManage your public playlists. Learn more.
- Parameters:
- spotify_urisstr or Collection[str]; positional-only
Comma-separated string or collection of Spotify URIs. A maximum of 40 URIs can be sent in a request.