PrivateArtistsAPI

class minim.api.qobuz.PrivateArtistsAPI(client: APIClient, /)[source]

Bases: PrivateQobuzResourceAPI

Artists API endpoints for the private Qobuz API.

Important

This class is managed by PrivateQobuzAPIClient and should not be instantiated directly.

Parameters:
clientminim.api._shared.APIClient

API client instance used to make HTTP requests.

Methods

follow_artists

Favorite one or more artists.

get_artist

Get Qobuz catalog information for an artist.

get_artist_releases

Get Qobuz catalog information for an artist's releases.

get_featured_artists

Get Qobuz catalog information for featured artists.

get_my_followed_artists

Get the current user's favorite artists.

get_similar_artists

Get Qobuz catalog information for similar artists.

is_following_artist

Check whether the current user has an artist favorited.

search_artists

Search for artists in the Qobuz catalog.

toggle_artist_followed

Toggle the favorite status of an artist.

unfollow_artists

Unfavorite one or more artists.

follow_artists(artist_ids: Collection[int | str], /) dict[str, str][source]

Favorite one or more artists.

User authentication

User authentication

Access and manage your library.

Parameters:
artist_idsint, str, or Collection[int | str]; positional-only

Qobuz IDs of the artists.

Examples: 865362, "21473137", "865362,21473137", [865362, "21473137"].

Returns:
statusdict[str, str]

Whether the artists were favorited successfully.

Sample response: {"status": "success"}.

get_artist(artist_id: int | str, /, *, expand: str | Collection[str] | None = None, limit: int | None = None, offset: int | None = None, sort_by: str | None = None, descending: bool | None = None, subresource: str = 'page') dict[str, Any][source]

Get Qobuz catalog information for an artist.

Parameters:
artist_idint or str; positional-only

Qobuz ID of the artist.

Examples: 865362, "21473137".

expandstr or Collection[str]; keyword-only; optional

Related resources to include metadata for in the response. Only applicable when subresource is "get".

Valid values: "albums", "albums_with_last_release", "playlists", "tracks_appears_on".

Examples: "playlists", "albums,albums_with_last_release", ["albums", "albums_with_last_release"].

limitint; keyword-only; optional

Maximum number of albums to return when "albums" or "albums_with_last_release" is included in the expand parameter. Only applicable when subresource is "get".

Valid range: 1 to 500.

API default: 25.

offsetint; keyword-only; optional

Index of the first album to return when "albums" or "albums_with_last_release" is included in the expand parameter. Use with limit to get the next batch of albums. Only applicable when subresource is "get".

Minimum value: 0.

API default: 0.

sort_bystr; keyword-only; optional

Field to sort the artist’s releases by. Only applicable when subresource is "page".

Valid values: "relevant", "release_date".

descendingbool; keyword-only; optional

Whether to sort in descending order. Only applicable when subresource is "page".

subresourcestr; keyword-only; default: "page"

API subresource to use.

Valid values:

  • "get" – Legacy GET artist/get endpoint.

  • "page" – Current GET artist/page endpoint.

Returns:
artistdict[str, Any]

Qobuz metadata for the artist.

get_artist_releases(artist_id: int | str, /, *, release_types: str | Collection[str] | None = None, content_filters: str | Collection[str] | None = None, limit: int | None = None, offset: int | None = None, sort_by: str | None = None, descending: bool | None = None, include_tracks: bool = False, track_limit: int | None = None) dict[str, Any][source]

Get Qobuz catalog information for an artist’s releases.

User authentication

User authentication

Access the GET /artist/getReleasesGrid and GET /artist/getReleasesList endpoints.

Parameters:
artist_idint or str; positional-only

Qobuz ID of the artist.

Examples: 865362, "21473137".

release_typesstr or Collection[str]; keyword-only; optional

Release types to include in the response.

Valid values: "all", "album", "live", "compilation", "epSingle", "other", "download", "composer".

content_filtersstr or Collection[str]; keyword-only; optional

Content filters to apply to the releases.

Valid values: "hires", "explicit".

limitint; keyword-only; optional

Maximum number of releases to return.

Valid range: 1 to 100.

API default: 50.

offsetint; keyword-only; optional

Index of the first release to return. Use with limit to get the next batch of releases.

Minimum value: 0.

API default: 0.

sort_bystr; keyword-only; optional

Field to sort the releases by.

Valid values: "relevant", "release_date".

descendingbool; keyword-only; optional

Whether to sort in descending order.

include_tracksbool; keyword-only; default: False

Whether to include tracks in the response.

track_limitint; keyword-only; optional

Maximum number of tracks to include per release when include_tracks is True.

Valid range: 1 to 30.

API default: 10.

Returns:
releasesdict[str, Any]

Page of Qobuz metadata for the artist’s releases.

Get Qobuz catalog information for featured artists.

Parameters:
genre_idsint, str, or Collection[int | str]; optional

Qobuz IDs of the genres used to filter the featured artists toreturn.

Examples: 10, "64", "10,64", [10, "64"].

limitint; keyword-only; optional

Maximum number of artists to return per item type.

Valid range: 1 to 500.

API default: 25.

offsetint; keyword-only; optional

Index of the first artist to return per item type. Use with limit to get the next batch of artists.

Minimum value: 0.

API default: 0.

Returns:
artistsdict[str, Any]

Page of Qobuz metadata for the featured artists.

get_my_followed_artists(*, limit: int | None = None, offset: int | None = None) dict[str, Any][source]

Get the current user’s favorite artists.

User authentication

User authentication

Access and manage your library.

Parameters:
limitint; keyword-only; optional

Maximum number of artists to return.

Valid range: 1 to 500.

API default: 50.

offsetint; keyword-only; optional

Index of the first artist to return. Use with limit to get the next batch of artists.

Minimum value: 0.

API default: 0.

Returns:
artistsdict[str, Any]

Page of Qobuz metadata for artists in the user’s favorites.

get_similar_artists(artist_id: int | str, /, limit: int | None = None, offset: int | None = None) dict[str, Any][source]

Get Qobuz catalog information for similar artists.

Parameters:
artist_idint or str; positional-only

Qobuz ID of the artist.

Examples: 865362, "21473137".

limitint; keyword-only; optional

Maximum number of artists to return.

Valid range: 1 to 100.

API default: 25.

offsetint; keyword-only; optional

Index of the first artist to return. Use with limit to get the next batch of artists.

Minimum value: 0.

API default: 0.

Returns:
artistsdict[str, Any]

Page of Qobuz metadata for the similar artists.

is_following_artist(artist_id: int | str, /) dict[str, bool][source]

Check whether the current user has an artist favorited.

Parameters:
artist_idint or str; positional-only

Qobuz ID of the artist.

Examples: 865362, "21473137".

Returns:
is_followingdict[str, bool]

Whether the current user has the artist favorited.

Sample response: {"status": <bool>}.

search_artists(query: str, /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]

Search for artists in the Qobuz catalog.

Parameters:
querystr; positional-only

Search query.

Tip

Searches can be narrowed using tags, such as #ByMainArtist, #ByComposer, #ByPerformer, #ByReleaseName, #ByLabel, #NewRelease, and #HiRes.

Use strict matching instead of fuzzy search by wrapping the keyword string in double quotes.

Example: "Galantis" #ByMainArtist #HiRes.

limitint; keyword-only; optional

Maximum number of artists to return.

Valid range: 1 to 500.

API default: 50.

offsetint; keyword-only; optional

Index of the first artist to return. Use with limit to get the next batch of artists.

Minimum value: 0.

API default: 0.

Returns:
artistsdict[str, Any]

Page of Qobuz metadata for the matching artists.

toggle_artist_followed(artist_id: int | str, /) dict[str, bool][source]

Toggle the favorite status of an artist.

Parameters:
artist_idint or str; positional-only

Qobuz ID of the artist.

Examples: 865362, "21473137".

Returns:
statusdict[str, bool]

Whether the artist is now favorited.

Sample response: {"status": <bool>}.

unfollow_artists(artist_ids: Collection[int | str], /) dict[str, str][source]

Unfavorite one or more artists.

User authentication

User authentication

Access and manage your library.

Parameters:
artist_idsint, str, or Collection[int | str]; positional-only

Qobuz IDs of the artists.

Examples: 865362, "21473137", "865362,21473137", [865362, "21473137"].

Returns:
statusdict[str, str]

Whether the artists were unfavorited successfully.

Sample response: {"status": "success"}.