musiXmatch

FREE
By musixmatch.com
Updated 4 months ago
Music
9.9/10
Popularity Score
119ms
Latency
4%
Success Rate

musiXmatch API Documentation

The fastest, most powerful and legal way to display lyrics on your website or in your application. Today.

A complete music catalogue featuring 640k artists and 13M of tracks organized by albums.

A powerful search engine including all our library is available through our api. Every artist/track/album has a score (1-100) based on our api requests, this is our rating. You can sort the artist/track/albums search results by this rating providing the most relevant content for your users.

musiXmatch lyrics API is a robust service that permits you to search a complete music catalogue and retrieve lyrics in the simplest possible way. It just works.

View API Details
Artist
GETArtist.search
GETArtist.related
GETArtist
Lyrics
GETTrack.Lyrics
Matcher
GETMatcher.track
GETMatcher.lyrics
GETMatcher.subtitle.get
Album
GETAlbum.tracks
GETAlbum
Track
GETTrack
GETTrack.search
Snippet
GETTrack.snippet
GETTrack.search

Search a song in our music database

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
page_sizeSTRING
REQUIREDNumber of elements per page (1-100)
pageNUMBER
REQUIREDNumber of page for pagination
Optional Parameters
f_has_lyricsNUMBER
OPTIONALFilter only song with an available lyrics
q_trackSTRING
OPTIONALSearch this parameter within the song title
q_lyricsSTRING
OPTIONALSearch this parameter within the lyrics body
q_artistSTRING
OPTIONALSearch this parameter within the artist name
q_track_artistSTRING
OPTIONALSearch this parameter within artist name and/or song title
s_track_ratingSTRING
OPTIONALSort result by rating (desc or asc)
qSTRING
OPTIONALSearch this parameter within song title, artist name and lyrics body
Code Snippet
unirest.get("https://musixmatchcom-musixmatch.p.rapidapi.com/wsr/1.1/track.search?f_has_lyrics=1&q_track=paradise&q_lyrics=Every+tear+a+waterfall&q_artist=coldplay&q_track_artist=paradise+coldplay&s_track_rating=desc&q=Every+tear+drop+paradise+coldpay&page_size=5&page=1")
.header("X-RapidAPI-Host", "musixmatchcom-musixmatch.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://musixmatchcom-musixmatch.p.rapidapi.com/wsr/1.1/track.search
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://musixmatchcom-musixmatch.p.rapidapi.com/wsr/1.1/track.search?f_has_lyrics=1&q_track=paradise&q_lyrics=Every+tear+a+waterfall&q_artist=coldplay&q_track_artist=paradise+coldplay&s_track_rating=desc&q=Every+tear+drop+paradise+coldpay&page_size=5&page=1")
.header("X-RapidAPI-Host", "musixmatchcom-musixmatch.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication