AlbumsAPI

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

Bases: MusixmatchResourceAPI

Albums 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_album

Album > album.get: Get Musixmatch catalog information for an album.

get_album_tracks

Album > album.tracks.get: Get Musixmatch catalog information for the tracks on an album.

get_album(album_id: int | str, /) dict[str, Any][source]

Album > album.get: Get Musixmatch catalog information for an album.

Subscription

Musixmatch Basic plan

Access music metadata and static lyrics. Learn more.

Parameters:
album_idint or str; positional-only

Musixmatch ID of the album.

Examples: 20828982, "56126508".

Returns:
albumdict[str, Any]

Musixmatch metadata for the album.

get_album_tracks(album_id: int | str, /, *, has_lyrics: bool | None = None, limit: int | None = None, page: int | None = None) dict[str, Any][source]

Album > album.tracks.get: Get Musixmatch catalog information for the tracks on an album.

Subscription

Musixmatch Basic plan

Access music metadata and static lyrics. Learn more.

Parameters:
album_idint or str; positional-only

Musixmatch ID of the album.

Examples: 20828982, "56126508".

has_lyricsbool; keyword-only; optional

Whether to only include tracks that have lyrics.

API default: False.

limitint; keyword-only; optional

Maximum number of tracks to return.

Valid range: 1 to 100.

pageint; keyword-only; optional

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

Minimum value: 1.

API default: 1.

Returns:
tracksdict[str, Any]

Page of Musixmatch metadata for the album’s tracks.