matcher.track.get
curl --request GET \
--url 'https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey='import requests
url = "https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"message": {
"header": {
"status_code": 200,
"execute_time": 0.020661115646362
},
"body": {
"track": {
"album_id": 46989422,
"album_name": "Wildest Dreams (Taylor's Version)",
"artist_id": 259675,
"artist_name": "Taylor Swift",
"commontrack_id": 133444910,
"commontrack_isrcs": [
[
"USUG12103658"
]
],
"explicit": 0,
"has_lyrics": 1,
"has_richsync": 1,
"has_subtitles": 1,
"has_lyrics_analysis": 1,
"has_translations": 1,
"instrumental": 0,
"num_favourite": 177,
"primary_genres": {
"music_genre_list": [
{
"music_genre": {
"music_genre_id": 14,
"music_genre_parent_id": 34,
"music_genre_name": "Pop",
"music_genre_name_extended": "Pop",
"music_genre_vanity": "Pop"
}
}
]
},
"restricted": 0,
"track_edit_url": "https://www.musixmatch.com/lyrics/Taylor-Swift/Wildest-Dreams-Taylor-s-Version/edit",
"track_id": 223460715,
"track_isrc": "USUG12103658",
"track_length": 220,
"track_name": "Wildest Dreams (Taylor's Version)",
"track_rating": 74,
"track_share_url": "https://www.musixmatch.com/lyrics/Taylor-Swift/Wildest-Dreams-Taylor-s-Version",
"track_spotify_id": "1Ov37jtRQ2YNAe8HzfczkL",
"updated_time": "2023-11-09T13:22:11Z"
}
}
}
}Lyrics & Catalog
matcher.track.get
Match your song against our database.
GET
/
ws
/
1.1
/
matcher.track.get
matcher.track.get
curl --request GET \
--url 'https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey='import requests
url = "https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musixmatch.com/ws/1.1/matcher.track.get?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"message": {
"header": {
"status_code": 200,
"execute_time": 0.020661115646362
},
"body": {
"track": {
"album_id": 46989422,
"album_name": "Wildest Dreams (Taylor's Version)",
"artist_id": 259675,
"artist_name": "Taylor Swift",
"commontrack_id": 133444910,
"commontrack_isrcs": [
[
"USUG12103658"
]
],
"explicit": 0,
"has_lyrics": 1,
"has_richsync": 1,
"has_subtitles": 1,
"has_lyrics_analysis": 1,
"has_translations": 1,
"instrumental": 0,
"num_favourite": 177,
"primary_genres": {
"music_genre_list": [
{
"music_genre": {
"music_genre_id": 14,
"music_genre_parent_id": 34,
"music_genre_name": "Pop",
"music_genre_name_extended": "Pop",
"music_genre_vanity": "Pop"
}
}
]
},
"restricted": 0,
"track_edit_url": "https://www.musixmatch.com/lyrics/Taylor-Swift/Wildest-Dreams-Taylor-s-Version/edit",
"track_id": 223460715,
"track_isrc": "USUG12103658",
"track_length": 220,
"track_name": "Wildest Dreams (Taylor's Version)",
"track_rating": 74,
"track_share_url": "https://www.musixmatch.com/lyrics/Taylor-Swift/Wildest-Dreams-Taylor-s-Version",
"track_spotify_id": "1Ov37jtRQ2YNAe8HzfczkL",
"updated_time": "2023-11-09T13:22:11Z"
}
}
}
}
In some cases you already have some information about the track title, artist name, album, etc.
A possible strategy to get the corresponding lyrics could be:
A possible strategy to get the corresponding lyrics could be:
- search our catalogue with a precise match;
- try using fuzzy search;
- try again using artist aliases, and so on.
- fulfill the country restrictions you receive for every copyrighted content;
- apply the tracking method of your choice.
Query Parameters
Was this page helpful?