PrivateArtistsAPI

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

Bases: PrivateTIDALResourceAPI

Artists 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

block_artist

Block an artist for a user.

follow_artists

Add artists to a user's collection.

get_artist

Get TIDAL catalog information for an artist.

get_artist_albums

Get TIDAL catalog information for albums by an artist.

get_artist_biography

Get an artist's biography.

get_artist_links

Get TIDAL catalog information for links to websites associated with an artist.

get_artist_mix

Get TIDAL catalog information for an artist's mix.

get_artist_mix_id

Get the TIDAL ID of an artist's mix.

get_artist_page

Get the TIDAL page layout for an artist.

get_artist_top_tracks

Get TIDAL catalog information for top tracks by an artist.

get_artist_videos

Get TIDAL catalog information for videos by an artist.

get_similar_artists

Get TIDAL catalog information for similar artists.

get_user_blocked_artists

Get TIDAL catalog information for artists blocked by a user.

get_user_followed_artists

Add artists to a user's collection.

unblock_artist

Unblock an artist for a user.

unfollow_artists

Remove artists from a user's collection.

block_artist(artist_id: int | str, /, user_id: int | str | None = None) None[source]

Block an artist for a user.

User authentication

User authentication

Access and manage the user’s collection.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

user_idint or str; optional

TIDAL ID of the user. If not specified, the current user’s TIDAL ID is used.

follow_artists(artist_ids: int | str | Collection[int | str], /, user_id: int | str | None = None, country_code: str | None = None, *, missing_ok: bool | None = None) None[source]

Add artists to a user’s collection.

User authentication

User authentication

Access and manage the user’s collection.

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

TIDAL IDs of the artists.

Examples: 1566, "4676988", "1566,4676988", [1566, "4676988"].

user_idint or str; optional

TIDAL ID of the user. If not specified, the current user’s TIDAL ID is used.

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".

on_missingstr; keyword-only; optional

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

API default: "FAIL".

get_artist(artist_id: int | str, /, country_code: str | None = None) dict[str, Any][source]

Get TIDAL catalog information for an artist.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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

TIDAL metadata for the artist.

get_artist_albums(artist_id: int | str, /, country_code: str | None = None, *, album_type: str | None = None, limit: int | None = None, offset: int | None = None) dict[str, Any][source]

Get TIDAL catalog information for albums by an artist.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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".

album_typestr; keyword-only; optional

Album type to return.

Valid values: "COMPILATIONS", "EPSANDSINGLES".

limitint; keyword-only; optional

Maximum number of albums to return.

Valid range: 1 to 100.

API default: 10.

offsetint; keyword-only; optional

Index of the first album to return. Use with limit to get the next batch of albums.

Minimum value: 0.

API default: 0.

Returns:
albumsdict[str, Any]

Page of TIDAL metadata for the artist’s albums.

get_artist_biography(artist_id: int | str, /, country_code: str | None = None) dict[str, Any][source]

Get an artist’s biography.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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

Metadata for the artist’s biography.

Get TIDAL catalog information for links to websites associated with an artist.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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".

limitint; keyword-only; optional

Maximum number of links to return.

Valid range: 1 to 100.

API default: 10.

offsetint; keyword-only; optional

Index of the first link to return. Use with limit to get the next batch of links.

Minimum value: 0.

API default: 0.

Returns:
linksdict[str, Any]

Page of TIDAL metadata for links to the artist’s websites.

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

Get TIDAL catalog information for an artist’s mix.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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".

limitint; keyword-only; optional

Maximum number of tracks to return.

Valid range: 1 to 100.

API default: 10.

offsetint; keyword-only; optional

Index of the first track to return. Use with limit to get the next batch of tracks.

Minimum value: 0.

API default: 0.

Returns:
mixdict[str, Any]

Page of TIDAL metadata for the tracks in the artist’s mix.

get_artist_mix_id(artist_id: int | str, /, country_code: str | None = None) dict[str, str][source]

Get the TIDAL ID of an artist’s mix.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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:
mix_iddict[str, str]

TIDAL ID of the artist’s mix.

Sample response: {"id": <str>}.

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

Get the TIDAL page layout for an artist.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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 artist page.

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

Get TIDAL catalog information for top tracks by an artist.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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".

limitint; keyword-only; optional

Maximum number of tracks to return.

Valid range: 1 to 100.

API default: 10.

offsetint; keyword-only; optional

Index of the first track to return. Use with limit to get the next batch of tracks.

Minimum value: 0.

API default: 0.

Returns:
top_tracksdict[str, Any]

Page of TIDAL metadata for the artist’s top tracks.

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

Get TIDAL catalog information for videos by an artist.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

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".

limitint; keyword-only; optional

Maximum number of videos to return.

Valid range: 1 to 100.

API default: 10.

offsetint; keyword-only; optional

Index of the first video to return. Use with limit to get the next batch of videos.

Minimum value: 0.

API default: 0.

Returns:
videosdict[str, Any]

Page of TIDAL metadata for the artist’s videos.

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

Get TIDAL catalog information for similar artists.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

country_codestr; optional

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

Example: "US".

limitint; keyword-only; optional

Maximum number of artists to return.

Valid range: 1 to 100.

API default: 10.

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

Page of TIDAL metadata for the similar artists.

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

Get TIDAL catalog information for artists blocked by a user.

User authentication

User authentication

Access and manage the user’s collection.

Parameters:
user_idint or str; positional-only; optional

TIDAL ID of the user. If not specified, the current user’s TIDAL ID is used.

limitint; keyword-only; optional

Maximum number of artists to return.

Valid range: 1 to 100.

API default: 10.

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 TIDAL metadata for artists blocked by the user.

get_user_followed_artists(user_id: int | str | None = None, /, country_code: str | None = None, *, limit: int | None = None, offset: int | None = None, sort_by: str | None = None, descending: bool | None = None) dict[str, Any][source]

Add artists to a user’s collection.

User authentication

User authentication

Access and manage the user’s collection.

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

TIDAL IDs of the artists.

Examples: 1566, "4676988", "1566,4676988", [1566, "4676988"].

user_idint or str; optional

TIDAL ID of the user. If not specified, the current user’s TIDAL ID is used.

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".

on_missingstr; keyword-only; optional

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

API default: "FAIL".

unblock_artist(artist_id: int | str, /, user_id: int | str | None = None) None[source]

Unblock an artist for a user.

User authentication

User authentication

Access and manage the user’s collection.

Parameters:
artist_idint or str; positional-only

TIDAL ID of the artist.

Examples: 1566, "4676988".

user_idint or str; optional

TIDAL ID of the user. If not specified, the current user’s TIDAL ID is used.

unfollow_artists(artist_ids: int | str | Collection[int | str], /, user_id: int | str | None = None) None[source]

Remove artists from a user’s collection.

User authentication

User authentication

Access and manage the user’s collection.

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

TIDAL IDs of the artists.

Examples: 1566, "4676988", "1566,4676988", [1566, "4676988"].

user_idint or str; optional

TIDAL ID of the user. If not specified, the current user’s TIDAL ID is used.