SearchAPI

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

Bases: TIDALResourceAPI

Search Results and Search Suggestions API endpoints for the TIDAL API.

Important

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

Parameters:
clientminim.api._shared.APIClient

API client instance used to make HTTP requests.

Methods

get_search_direct_hits

Search Suggestions > Get Direct Hits Relationship: Get TIDAL catalog information for direct hits associated with the search suggestions.

get_search_suggestions

Search Suggestions > Get Search Suggestions: Get search suggestions for a keyword string.

search

Search Results > Get Search Results: Search for albums, artists, playlists, tracks, and videos in the TIDAL catalog.

search_albums

Search Results > Get Albums Relationship: Search for albums in the TIDAL catalog.

search_artists

Search Results > Get Artists Relationship: Search for artists in the TIDAL catalog.

search_playlists

Search Results > Get Playlists Relationship: Search for playlists in the TIDAL catalog.

search_top_hits

Search Results > Get Top Hits Relationship: Get TIDAL catalog information for top hits that match a keyword string.

search_tracks

Search Results > Get Tracks Relationship: Search for tracks in the TIDAL catalog.

search_videos

Search Results > Get Videos Relationship: Search for videos in the TIDAL catalog.

get_search_direct_hits(query: str, /, *, country_code: str | None = None, include_explicit: bool | None = None, include_metadata: bool = False, cursor: str | None = None) dict[str, Any][source]

Search Suggestions > Get Direct Hits Relationship: Get TIDAL catalog information for direct hits associated with the search suggestions.

Parameters:
querystr; positional-only

Search query.

country_codestr; keyword-only; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include explicit content in the results.

API default: True.

includebool; keyword-only; default: False

Whether to include metadata for the direct hits.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

Example: "3nI1Esi".

Returns:
direct_hitsdict[str, Any]

Page of TIDAL metadata for the direct hits.

get_search_suggestions(query: str, /, *, country_code: str | None = None, include_explicit: bool | None = None, expand: str | Collection[str] | None = None) dict[str, Any][source]

Search Suggestions > Get Search Suggestions: Get search suggestions for a keyword string.

Parameters:
querystr; positional-only

Search query.

country_codestr; keyword-only; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include explicit content in the results.

API default: True.

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

Related resources to include metadata for in the response.

Valid value: "directHits".

Examples: "directHits", ["directHits"].

Returns:
search_suggestionsdict[str, Any]

Search suggestions for the query.

search(query: str, /, country_code: str | None = None, *, include_explicit: bool | None = None, expand: str | Collection[str] | None = None) dict[str, Any][source]

Search Results > Get Search Results: Search for albums, artists, playlists, tracks, and videos in the TIDAL catalog.

Parameters:
querystr; positional-only

Search query.

country_codestr; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include explicit content in the results.

API default: True.

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

Related resources to include metadata for in the response.

Valid values: "albums", "artists", "playlists", "topHits", "tracks", "videos".

Examples: "topHits", ["albums", "tracks"].

Returns:
resultsdict[str, Any]

TIDAL metadata for the matching catalog items.

search_albums(query: str, /, country_code: str | None = None, *, include_explicit: bool | None = None, include_metadata: bool = False, cursor: str | None = None) dict[str, Any][source]

Search Results > Get Albums Relationship: Search for albums in the TIDAL catalog.

Parameters:
querystr; positional-only

Search query.

country_codestr; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include explicit content in the results.

API default: True.

include_metadatabool; keyword-only; default: False

Whether to include metadata for the matching albums.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

Example: "3nI1Esi".

Returns:
albumsdict[str, Any]

Page of TIDAL metadata for the matching albums.

search_artists(query: str, /, country_code: str | None = None, *, include_explicit: bool | None = None, include_metadata: bool = False, cursor: str | None = None) dict[str, Any][source]

Search Results > Get Artists Relationship: Search for artists in the TIDAL catalog.

Parameters:
querystr; positional-only

Search query.

country_codestr; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include items with explicit language.

API default: True.

include_metadatabool; keyword-only; default: False

Whether to include metadata for the matching artists.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

Example: "3nI1Esi".

Returns:
artistsdict[str, Any]

Page of TIDAL metadata for the matching artists.

search_playlists(query: str, /, country_code: str | None = None, *, include_explicit: bool | None = None, include_metadata: bool = False, cursor: str | None = None) dict[str, Any][source]

Search Results > Get Playlists Relationship: Search for playlists in the TIDAL catalog.

Parameters:
querystr; positional-only

Search query.

country_codestr; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include items with explicit language.

API default: True.

include_metadatabool; keyword-only; default: False

Whether to include metadata for the matching playlists.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

Example: "3nI1Esi".

Returns:
playlistsdict[str, Any]

Page of TIDAL metadata for the matching playlists.

search_top_hits(query: str, /, country_code: str | None = None, *, include_explicit: bool | None = None, include_metadata: bool = False, cursor: str | None = None) dict[str, Any][source]

Search Results > Get Top Hits Relationship: Get TIDAL catalog information for top hits that match a keyword string.

Parameters:
querystr; positional-only

Search query.

country_codestr; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include items with explicit language.

API default: True.

include_metadatabool; keyword-only; default: False

Whether to include metadata for the matching top hits.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

Example: "3nI1Esi".

Returns:
top_hitsdict[str, Any]

Page of TIDAL metadata for the matching top hits.

search_tracks(query: str, /, country_code: str | None = None, *, include_explicit: bool | None = None, include_metadata: bool = False, cursor: str | None = None) dict[str, Any][source]

Search Results > Get Tracks Relationship: Search for tracks in the TIDAL catalog.

Parameters:
querystr; positional-only

Search query.

country_codestr; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include items with explicit language.

API default: True.

include_metadatabool; keyword-only; default: False

Whether to include metadata for the matching tracks.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

Example: "3nI1Esi".

Returns:
tracksdict[str, Any]

Page of TIDAL metadata for the matching tracks.

search_videos(query: str, /, country_code: str | None = None, *, include_explicit: bool | None = None, include_metadata: bool = False, cursor: str | None = None) dict[str, Any][source]

Search Results > Get Videos Relationship: Search for videos in the TIDAL catalog.

Parameters:
querystr; positional-only

Search query.

country_codestr; optional

ISO 3166-1 alpha-2 country code.

Example: "US".

include_explicitbool; keyword-only; optional

Whether to include items with explicit language.

API default: True.

include_metadatabool; keyword-only; default: False

Whether to include metadata for the matching videos.

cursorstr; keyword-only; optional

Cursor for fetching the next page of results.

Example: "3nI1Esi".

Returns:
videosdict[str, Any]

Page of TIDAL metadata for the matching videos.