EnterpriseAPI

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

Bases: MusixmatchResourceAPI

Enterprise 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_catalog_feeds

Enterprise > tracks.dump.get: Get Musixmatch resource information for the latest catalog feeds.

get_languages

Enterprise > languages.get: Get languages supported by Musixmatch.

get_track_catalog_record

Enterprise > track.dump.get: Get the Musixmatch catalog record for a track.

get_track_lyrics_analysis

Enterprise > track.lyricslens.get: Get the Lyric Lens analysis of a track's lyrics.

screen_track_lyrics

Enterprise > track.lyrics.fingerprint.post: Screen text against the Musixmatch catalog to identify tracks with matching lyrics.

set_work_validity

Enterprise > work.validity.post: Set the validity end date for a musical work on Musixmatch.

submit_work

Enterprise > work.post: Submit details for a musical work to Musixmatch.

get_catalog_feeds() dict[str, Any][source]

Enterprise > tracks.dump.get: Get Musixmatch resource information for the latest catalog feeds.

Subscription

Musixmatch Enterprise plan

Access extended music metadata, advanced search, translations, song structure, and lyric analysis. Learn more.

Returns:
catalog_feedsdict[str, Any]

Musixmatch metadata for the catalog feeds.

get_languages(*, include_romanization: bool | None = None) dict[str, Any][source]

Enterprise > languages.get: Get languages supported by Musixmatch.

Subscription

Musixmatch Enterprise plan

Access extended music metadata, advanced search, translations, song structure, and lyric analysis. Learn more.

Parameters:
include_romanizationbool; keyword-only; optional

Whether to include romanization information for romanized languages.

API default: False.

Returns:
languagesdict[str, Any]

Languages supported by Musixmatch.

get_track_catalog_record(isrc: str) dict[str, Any][source]

Enterprise > track.dump.get: Get the Musixmatch catalog record for a track.

Subscription

Musixmatch Enterprise plan

Access extended music metadata, advanced search, translations, song structure, and lyric analysis. Learn more.

Parameters:
isrcstr

ISRC of the track.

Example: "USUM70905526".

Returns:
trackdict[str, Any]

Musixmatch catalog record for the track.

get_track_lyrics_analysis(*, track_id: int | str | None = None, common_track_id: int | str | None = None, isrc: str | None = None) dict[str, Any][source]

Enterprise > track.lyricslens.get: Get the Lyric Lens analysis of a track’s lyrics.

Subscription

Musixmatch Enterprise plan

Access extended music metadata, advanced search, translations, song structure, and lyric analysis. Learn more.

See also

Musixmatch Lyrics API documentation – Lyric Lens introduction and metadata overview.

Parameters:
track_idint or str; keyword-only; optional

Musixmatch ID of the track.

Examples: 84584600, "359206419".

common_track_idint or str; keyword-only; optional

Musixmatch common ID of the track.

Examples: 5920049, "40728258".

isrcstr; keyword-only; optional

ISRC of the track.

Example: "USUM70905526".

Returns:
analysisdict[str, Any]

Lyric Lens analysis of the track’s lyrics.

screen_track_lyrics(text: str, /, *, max_candidates: int | None = None, limit: int | None = None) dict[str, Any][source]

Enterprise > track.lyrics.fingerprint.post: Screen text against the Musixmatch catalog to identify tracks with matching lyrics.

Subscription

Musixmatch Enterprise plan

Access extended music metadata, advanced search, translations, song structure, and lyric analysis. Learn more.

Parameters:
textstr; positional-only

Text to screen for potential lyrical content.

max_candidatesint; keyword-only; optional

Maximum number of track candidates.

Valid range: 1 to 20.

limitint; keyword-only; optional

Maximum number of tracks to return.

Valid range: 1 to max_candidates.

Returns:
tracksdict[str, Any]

Musixmatch metadata for the identified tracks.

set_work_validity(work_identifier: str, /, valid_until: str | datetime) None[source]

Enterprise > work.validity.post: Set the validity end date for a musical work on Musixmatch.

Subscription

Musixmatch Enterprise plan

Access extended music metadata, advanced search, translations, song structure, and lyric analysis. Learn more.

Parameters:
work_identifierstr; positional-only

Unique identifier of the musical work.

Valid length: 1 to 40.

Example: “00001100196005”.

valid_untilstr or datetime.datetime

Validity end date, in YYYY-MM-DD format.

Returns:
statusdict[str, Any]

Whether the work’s validity was updated successfully.

submit_work(work_data: dict[str, Any], /) dict[str, Any][source]

Enterprise > work.post: Submit details for a musical work to Musixmatch.

Subscription

Musixmatch Enterprise plan

Access extended music metadata, advanced search, translations, song structure, and lyric analysis. Learn more.

Parameters:
work_datadict[str, Any]; positional-only

Details for a musical work.

See also

Musixmatch Lyrics API documentation – Data schema.

Returns:
workdict[str, Any]

Musixmatch catalog record for the newly submitted musical work.