PrivateUsersAPI

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

Bases: PrivateQobuzResourceAPI

Users 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_playlist

Favorite a playlist.

get_me

Get Qobuz profile information for the current user.

get_my_last_updates

Get the timestamps for the last updates to favorites, playlists, and purchases performed by the current user.

get_my_purchased_item_ids

Get Qobuz IDs of albums and tracks purchased by the current user.

get_my_purchases

Get Qobuz catalog information for albums and tracks purchased by the current user.

get_my_saved_item_ids

Get Qobuz IDs of the current user's favorites.

get_my_saved_items

Get Qobuz catalog information for the current user's favorites.

get_personalized_playlist_tracks

Get Qobuz catalog information for tracks in a playlist curated for the current user.

get_personalized_playlists

Get Qobuz catalog information for playlists curated for the current user.

get_track_recommendations

Get track recommendations based on seed tracks.

is_item_saved

Check whether the current user has an item favorited.

login

Perform a credential-based login.

remove_saved_items

Unfavorite one or more albums, artists, and/or tracks.

save_items

Favorite one or more albums, artists, and/or tracks.

toggle_item_saved

Toggle the favorite status of an item.

unfollow_playlist

Unfavorite a playlist.

follow_playlist(playlist_id: int | str, /) dict[str, str][source]

Favorite a playlist.

User authentication

User authentication

Access and manage your library.

Parameters:
playlist_idint or str; positional-only

Qobuz ID of the playlist.

Examples: 2776610, "6754150".

Returns:
statusdict[str, str]

Whether the playlist was favorited successfully.

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

get_me() dict[str, Any][source]

Get Qobuz profile information for the current user.

User authentication

User authentication

Access private profile information.

Returns:
profiledict[str, Any]

Qobuz profile information for the current user.

get_my_last_updates() dict[str, dict[str, int]][source]

Get the timestamps for the last updates to favorites, playlists, and purchases performed by the current user.

User authentication

User authentication

Access private profile information.

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

Timestamps for the current user’s last updates.

get_my_purchased_item_ids() dict[str, Any][source]

Get Qobuz IDs of albums and tracks purchased by the current user.

User authentication

User authentication

Access personal collection and favorites.

Returns:
item_idsdict[str, Any]

Qobuz IDs of the current user’s purchased albums and tracks.

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

Get Qobuz catalog information for albums and tracks purchased by the current user.

User authentication

User authentication

Access personal collection and favorites.

Parameters:
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:
purchasesdict[str, Any]

Page of Qobuz metadata for the current user’s purchased albums and tracks.

get_my_saved_item_ids() dict[str, Any][source]

Get Qobuz IDs of the current user’s favorites.

User authentication

User authentication

Access and manage your library.

Returns:
saved_idsdict[str, Any]

Qobuz IDs of the current user’s favorites.

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

Get Qobuz catalog information for the current user’s favorites.

User authentication

User authentication

Access and manage your library.

Parameters:
item_typestr; positional-only; optional

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

Valid values: "albums", "articles", "artists", "awards", "labels", "tracks".

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 current user’s favorites.

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

Get Qobuz catalog information for tracks in a playlist curated for the current user.

User authentication

User authentication

Access and manage your library.

Parameters:
playlist_typestr; positional-only

Type of the curated playlist.

See also

get_personalized_playlists() – Get types of curated playlists.

Example: "weekly".

limitint; keyword-only; optional

Maximum number of items to return. Only applicable when playlist_type is not "weekly".

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. Only applicable when playlist_type is not "weekly".

Minimum value: 0.

API default: 0.

Returns:
tracksdict[str, Any]

Page of Qobuz metadata for tracks in the curated playlist.

get_personalized_playlists() list[dict[str, Any]][source]

Get Qobuz catalog information for playlists curated for the current user.

User authentication

User authentication

Access and manage your library.

Returns:
playlistslist[dict[str, Any]]

Qobuz metadata for the curated playlists.

get_track_recommendations(seed_track_ids: int | str | Collection[int | str], /, exclude_track_ids: int | str | Collection[int | str] | None = None, *, limit: int | None = None) dict[str, Any][source]

Get track recommendations based on seed tracks.

User authentication

User authentication

Access the POST /dynamic/suggest endpoint.

Parameters:
seed_track_idsint | str | Collection[int | str]; positional-only

Qobuz IDs of seed tracks.

Examples: 23929516, "344521217", "23929516,344521217", [23929516, "344521217"].

exclude_track_idsint | str | Collection[int | str]; optional

Qobuz IDs of tracks to exclude.

Examples: 256316240, "53859680", "256316240,53859680", [256316240, "53859680"].

limitint; keyword-only; optional

Maximum number of items to return.

Valid range: 1 to 500.

API default: 50.

Returns:
recommendationsdict[str, Any]

Qobuz metadata for the tracks recommended based on the seed tracks.

is_item_saved(item_type: str, item_id: int | str, /) dict[str, bool][source]

Check whether the current user has an item favorited.

User authentication

User authentication

Access and manage your library.

Parameters:
item_typestr; positional-only

Type of item.

Valid values: "album", "artist", "article", "award", "label", "track".

item_idint or str; positional-only

Qobuz ID of the item.

Returns:
saveddict[str, bool]

Whether the current user has the item favorited.

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

login(username: str, password: str, /, *, device_uuid: str | None = None, device_model: str | None = None, device_os: str | None = None, device_platform: str | None = None) dict[str, Any][source]

Perform a credential-based login.

Parameters:
usernamestr; positional-only

Email or username.

passwordstr; positional-only

Password or its MD5 hash.

device_uuidstr; keyword-only; optional

UUID of the device running the client. If provided, the response will contain the Qobuz ID of the device to report streaming.

Example: "16922031-0352-59D3-ADA2-B8E48236E8F0".

device_modelstr; keyword-only; optional

Device model.

Example: "Mac17,2".

device_osstr; keyword-only; optional

Device operating system.

Example: "macOS 26.0".

device_platformstr; keyword-only; optional

Device platform.

Example: "macOS-26.0-arm64".

Returns:
tokendict[str, Any]

User authentication token and Qobuz profile information.

remove_saved_items(*, album_ids: str | Collection[str] | None = None, artist_ids: int | str | Collection[int | str] | None = None, track_ids: int | str | Collection[int | str] | None = None) dict[str, str][source]

Unfavorite one or more albums, artists, and/or tracks.

User authentication

User authentication

Access and manage your library.

Important

At least one of album_ids, artist_ids, or track_ids must be specified.

Parameters:
album_idsstr or Collection[str]; keyword-only; optional

Qobuz IDs of the albums.

Examples: "0075679933652", "0075679933652,aaxy9wirwgn2a".

artist_idsint, str, or Collection[int | str]; keyword-only; optional

Qobuz IDs of the artists.

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

track_idsint, str, or Collection[int | str]; keyword-only; optional

Qobuz IDs of the tracks.

Examples: 23929516, "344521217", "23929516,344521217", [23929516, "344521217"].

Returns:
statusdict[str, str]

Whether the items were unfavorited successfully.

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

save_items(*, album_ids: str | Collection[str] | None = None, artist_ids: int | str | Collection[int | str] | None = None, track_ids: int | str | Collection[int | str] | None = None) dict[str, str][source]

Favorite one or more albums, artists, and/or tracks.

User authentication

User authentication

Access and manage your library.

Important

At least one of album_ids, artist_ids, or track_ids must be specified.

Parameters:
album_idsstr or Collection[str]; keyword-only; optional

Qobuz IDs of the albums.

Examples: "0075679933652", "0075679933652,aaxy9wirwgn2a".

artist_idsint, str, or Collection[int | str]; keyword-only; optional

Qobuz IDs of the artists.

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

track_idsint, str, or Collection[int | str]; keyword-only; optional

Qobuz IDs of the tracks.

Examples: 23929516, "344521217", "23929516,344521217", [23929516, "344521217"].

Returns:
statusdict[str, str]

Whether the items were favorited successfully.

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

toggle_item_saved(item_type: str, item_id: int | str, /) dict[str, bool][source]

Toggle the favorite status of an item.

User authentication

User authentication

Access and manage your library.

Parameters:
item_typestr; positional-only

Type of item.

Valid values: "album", "artist", "article", "award", "label", "track".

item_idint or str; positional-only

Qobuz ID of the item.

Returns:
saveddict[str, bool]

Whether the item is now favorited.

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

unfollow_playlist(playlist_id: int | str, /) dict[str, str][source]

Unfavorite a playlist.

User authentication

User authentication

Access and manage your library.

Parameters:
playlist_idint or str; positional-only

Qobuz ID of the playlist.

Examples: 2776610, "6754150".

Returns:
statusdict[str, str]

Whether the playlist was unfavorited successfully.

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