PrivateCatalogAPI

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

Bases: PrivateQobuzResourceAPI

Catalog 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

get_featured

Get Qobuz catalog information for featured albums, artists, articles, and/or playlists.

get_num_search_matches

Get the number of Qobuz catalog search results for a query.

search

Search for albums, artists, playlists, stories, and/or tracks in the Qobuz catalog.

Get Qobuz catalog information for featured albums, artists, articles, and/or playlists.

Parameters:
item_typestr; positional-only; optional

Type of item to return. If not specified, featured items of all types are returned.

Valid values: "albums", "articles", "artists", "playlists".

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

Qobuz IDs of the genres used to filter the featured items to return.

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

limitint; keyword-only; optional

Maximum number of items to return per item type.

Valid range: 1 to 500.

API default: 25.

offsetint; keyword-only; optional

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

Minimum value: 0.

API default: 0.

Returns:
itemsdict[str, Any]

Page of Qobuz metadata for the featured items.

get_num_search_matches(query: str, /) dict[str, dict[str, int]][source]

Get the number of Qobuz catalog search results for a query.

Parameters:
querystr; positional-only

Search query.

Returns:
num_matchesdict[str, dict[str, int]]

Number of search results for the query.

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

Search for albums, artists, playlists, stories, and/or tracks 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 items to return.

Valid range: 1 to 500.

API default: 50.

offsetint; keyword-only; optional

Index of the first item to return. Use with limit to get the next batch of items.

Minimum value: 0.

API default: 0.

Returns:
itemsdict[str, Any]

Page of Qobuz metadata for the matching catalog items.