Client Registration
Before integrating, Musixmatch will issue you a Client ID and Client Secret during the client registration process. You will also need to provide yourredirect_uri (required for the Authorization Code flow).
Contact apisupport@musixmatch.com to begin registration.
Authorization Code Flow
Use this flow to authenticate end users (artists or rights holders) within your application. The result is anaccess_token bound to that user, which can be introspected to retrieve their Musixmatch user ID.
Step 1 — Initiate the authorization request
Redirect the user to the Musixmatch authorization endpoint:Step 2 — User authorizes
The user logs in or registers on Musixmatch. On success, they are redirected to yourredirect_uri with:
code— the authorization codestate— must match the value you sent in Step 1
Step 3 — Exchange the code for tokens
Response:
Step 4 — Refresh the access token
When theaccess_token expires, use the refresh_token to get a new one without requiring the user to log in again.
Retrieving the Musixmatch User ID
Once you have a useraccess_token, introspect it to retrieve the Musixmatch user ID (sub). This ID is required when making API calls on behalf of a user.
Response (valid token):
Client Credentials Flow
Use this flow for server-to-server API calls that do not require a user context — for example, submitting a release delivery or lyrics from your backend.
Response:
access_token as a Bearer token in the Authorization header of API requests: