PrivateMixesAPI

class minim.api.tidal.PrivateMixesAPI(client: APIClient, /)[source]

Bases: PrivateTIDALResourceAPI

Mixes API endpoints for the private TIDAL API.

Important

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

Parameters:
clientminim.api._shared.APIClient

API client instance used to make HTTP requests.

Methods

follow_mixes

Add mixes to the current user's collection.

get_mix_items

Get TIDAL catalog information for tracks in a mix.

get_mix_page

Get the TIDAL page layout for a mix.

get_my_followed_mix_ids

Get TIDAL IDs of the mixes in the current user's collection.

get_my_followed_mixes

Get TIDAL catalog information for mixes in the current user's collection.

get_personalized_mixes_page

Get the TIDAL page layout for personalized mixes.

unfollow_mixes

Remove mixes from the current user's collection.

follow_mixes(mix_ids: str | Collection[str], /, *, on_missing: str | None = None) None[source]

Add mixes to the current user’s collection.

User authentication

User authentication

Access and manage the user’s collection.

Parameters:
mix_idsstr or Collection[str]; positional-only

TIDAL IDs of the mixes.

Examples:

  • "000ec0b01da1ddd752ec5dee553d48"

  • "000ec0b01da1ddd752ec5dee553d48,000dd748ceabd5508947c6a5d3880a"

  • ["000ec0b01da1ddd752ec5dee553d48", "000dd748ceabd5508947c6a5d3880a"]

on_missingstr; keyword-only; optional

Behavior when the mixes to be favorited cannot be found in the TIDAL catalog.

API default: "FAIL".

get_mix_items(mix_id: str, /, country_code: str | None = None) dict[str, Any][source]

Get TIDAL catalog information for tracks in a mix.

Parameters:
mix_idstr; positional-only

TIDAL ID of the mix.

Example: "000ec0b01da1ddd752ec5dee553d48".

country_codestr; optional

ISO 3166-1 alpha-2 country code. If not provided, the country associated with the current user account or IP address is used.

Example: "US".

Returns:
itemsdict[str, Any]

TIDAL metadata for the tracks in the mix.

get_mix_page(mix_id: str, /, country_code: str | None = None, *, device_type: str = 'BROWSER', locale: str | None = None) dict[str, Any][source]

Get the TIDAL page layout for a mix.

Parameters:
mix_idstr; positional-only

TIDAL ID of the mix.

Example: "000ec0b01da1ddd752ec5dee553d48".

country_codestr; optional

ISO 3166-1 alpha-2 country code. If not provided, the country associated with the current user account or IP address is used.

Example: "US".

device_typestr; keyword-only; default: "BROWSER"

Device type.

Valid values:

  • "BROWSER" – Web browser.

  • "DESKTOP" – Desktop TIDAL application.

  • "PHONE" – Mobile TIDAL application.

  • "TV" – Smart TV TIDAL application.

localestr; keyword-only; optional

IETF BCP 47 language tag.

API default: "en_US" – English (U.S.).

Returns:
pagedict[str, Any]

Layout for the mix page.

get_my_followed_mix_ids(*, limit: int = 50, cursor: str | None = None) dict[str, Any][source]

Get TIDAL IDs of the mixes in the current user’s collection.

User authentication

User authentication

Access and manage the user’s collection.

Parameters:
limitint; keyword-only; default: 50

Maximum number of mix IDs to return.

Valid range: 1 to 50.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

Returns:
mix_idsdict[str, Any]

Page of TIDAL IDs of the mixes in the user’s collection.

Sample response: {"content": <list[str]>, "cursor": <str>}

get_my_followed_mixes(*, limit: int = 50, cursor: str | None = None) dict[str, Any][source]

Get TIDAL catalog information for mixes in the current user’s collection.

User authentication

User authentication

Access and manage the user’s collection.

Parameters:
limitint; keyword-only; default: 50

Maximum number of mixes to return.

Valid range: 1 to 50.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

sort_bystr; keyword-only; optional

Field to sort the mixes by.

Valid values:

  • "DATE" - Date added.

  • "NAME" - Mix name.

API default: "DATE".

descendingbool; keyword-only; optional

Whether to sort in descending order.

API default: False.

Returns:
mixesdict[str, Any]

Page of TIDAL metadata for the mixes in the current user’s collection.

get_personalized_mixes_page(country_code: str | None = None, *, device_type: str = 'BROWSER', locale: str | None = None) dict[str, Any][source]

Get the TIDAL page layout for personalized mixes.

Parameters:
country_codestr; optional

ISO 3166-1 alpha-2 country code. If not provided, the country associated with the current user account or IP address is used.

Example: "US".

device_typestr; keyword-only; default: "BROWSER"

Device type.

Valid values:

  • "BROWSER" – Web browser.

  • "DESKTOP" – Desktop TIDAL application.

  • "PHONE" – Mobile TIDAL application.

  • "TV" – Smart TV TIDAL application.

localestr; keyword-only; optional

IETF BCP 47 language tag.

API default: "en_US" – English (U.S.).

Returns:
pagedict[str, Any]

Layout for the personalized mixes page.

unfollow_mixes(mix_ids: str | Collection[str], /) None[source]

Remove mixes from the current user’s collection.

User authentication

User authentication

Access and manage the user’s collection.

Parameters:
mix_idsstr or Collection[str]; positional-only

TIDAL IDs of the mixes.

Examples:

  • "000ec0b01da1ddd752ec5dee553d48"

  • "000ec0b01da1ddd752ec5dee553d48,000dd748ceabd5508947c6a5d3880a"

  • ["000ec0b01da1ddd752ec5dee553d48", "000dd748ceabd5508947c6a5d3880a"]