ArtistsAPI

class minim.api.musixmatch.ArtistsAPI(client: APIClient, /)[source]

Bases: MusixmatchResourceAPI

Artists API endpoints for the Musixmatch Lyrics API.

Important

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

Parameters:
clientminim.api._shared.APIClient

API client instance used to make HTTP requests.

Methods

get_artist

Artist > artist.get: Get Musixmatch catalog information for an artist.

get_artist_albums

Artist > artist.albums.get: Get Musixmatch catalog information for albums by an artist.

get_top_artists

Charts > chart.artists.get: Get Musixmatch catalog information for the top artists on Musixmatch.

search_artists

Artist > artist.search: Search for artists in the Musixmatch catalog.

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

Artist > artist.get: Get Musixmatch catalog information for an artist.

Subscription

Musixmatch Basic plan

Access music metadata and static lyrics. Learn more.

Parameters:
artist_idint or str; positional-only

Musixmatch ID of the artist.

Examples: 259675, "24403590".

Returns:
artistdict[str, Any]

Musixmatch metadata for the artist.

get_artist_albums(artist_id: int | str, /, *, group_by_album_name: bool | None = None, release_date_sort_order: str | None = None, limit: int | None = None, page: int | None = None) dict[str, Any][source]

Artist > artist.albums.get: Get Musixmatch catalog information for albums by an artist.

Subscription

Musixmatch Basic plan

Access music metadata and static lyrics. Learn more.

Parameters:
artist_idint or str; positional-only

Musixmatch ID of the artist.

Examples: 259675, "24403590".

group_by_album_namebool; keyword-only; optional

Whether to group the returned albums by their names.

release_date_sort_orderstr; keyword-only; optional

Sort order for release date.

Valid values: "asc", "desc".

limitint; keyword-only; optional

Maximum number of albums to return.

Valid range: 1 to 100.

pageint; keyword-only; optional

Page number. Use with limit to get the next page of albums.

Minimum value: 1.

API default: 1.

Returns:
albumsdict[str, Any]

Page of Musixmatch metadata for the artist’s albums.

get_top_artists(*, country_code: str | None = None, limit: int | None = None, page: int | None = None) dict[str, Any][source]

Charts > chart.artists.get: Get Musixmatch catalog information for the top artists on Musixmatch.

Subscription

Musixmatch Basic plan

Access music metadata and static lyrics. Learn more.

Parameters:
country_codestr; keyword-only; optional

ISO 3166-1 alpha-2 country code. Use "XW" for worldwide.

Example: "it".

API default: "US".

limitint; keyword-only; optional

Maximum number of artists to return.

Valid range: 1 to 100.

pageint; keyword-only; optional

Page number. Use with limit to get the next page of artists.

Minimum value: 1.

API default: 1.

Returns:
artistsdict[str, Any]

Page of Musixmatch metadata for the top artists.

search_artists(artist_query: str | None = None, *, artist_id: int | str | None = None, limit: int | None = None, page: int | None = None) dict[str, Any][source]

Artist > artist.search: Search for artists in the Musixmatch catalog.

Subscription

Musixmatch Basic plan

Access music metadata and static lyrics. Learn more.

Parameters:
artist_querystr; optional

Search query matching any word in the artist name.

artist_idint or str; keyword-only; optional

Musixmatch ID of the artist to filter results by.

Examples: 259675, "24403590".

limitint; keyword-only; optional

Maximum number of artists to return.

Valid range: 1 to 100.

API default: 10.

pageint; keyword-only; optional

Page number. Use with limit to get the next page of artists.

Minimum value: 1.

API default: 1.

Returns:
artistsdict[str, Any]

Page of Musixmatch metadata for the matching artists.