track.get
curl --request GET \
--url 'https://api.musixmatch.com/ws/1.1/track.get?apikey='import requests
url = "https://api.musixmatch.com/ws/1.1/track.get?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.musixmatch.com/ws/1.1/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/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/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/track.get?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musixmatch.com/ws/1.1/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.017152786254883
},
"body": {
"track": {
"album_id": 47388702,
"album_name": "Red (Taylor’s Version) (+ A Message From Taylor)",
"artist_id": 259675,
"artist_name": "Taylor Swift",
"commontrack_id": 135756858,
"commontrack_isrcs": [
[
"USUG12103675"
]
],
"explicit": 0,
"has_lyrics": 1,
"has_richsync": 1,
"has_subtitles": 1,
"has_lyrics_analysis": 1,
"has_translations": 1,
"instrumental": 0,
"num_favourite": 18,
"primary_genres": {
"music_genre_list": [
{
"music_genre": {
"music_genre_id": 1135,
"music_genre_parent_id": 14,
"music_genre_name": "Teen Pop",
"music_genre_name_extended": "Pop / Teen Pop",
"music_genre_vanity": "Pop-Teen-Pop"
}
}
]
},
"restricted": 0,
"track_edit_url": "https://www.musixmatch.com/lyrics/Taylor-Swift/Starlight-Taylor-s-Version/edit",
"track_id": 226271188,
"track_isrc": "USUG12103675",
"track_length": 220,
"track_name": "Starlight (Taylor's Version)",
"track_rating": 58,
"track_share_url": "https://www.musixmatch.com/lyrics/Taylor-Swift/Starlight-Taylor-s-Version",
"track_spotify_id": "7A2cNLRT0YJc1yjxHlKihs",
"updated_time": "2021-11-16T05:26:09Z"
}
}
}
}Lyrics & Catalog
track.get
Get a track info from our database: title, artist, ISRC(s), ‘instrumental’ flag.
GET
/
ws
/
1.1
/
track.get
track.get
curl --request GET \
--url 'https://api.musixmatch.com/ws/1.1/track.get?apikey='import requests
url = "https://api.musixmatch.com/ws/1.1/track.get?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.musixmatch.com/ws/1.1/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/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/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/track.get?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musixmatch.com/ws/1.1/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.017152786254883
},
"body": {
"track": {
"album_id": 47388702,
"album_name": "Red (Taylor’s Version) (+ A Message From Taylor)",
"artist_id": 259675,
"artist_name": "Taylor Swift",
"commontrack_id": 135756858,
"commontrack_isrcs": [
[
"USUG12103675"
]
],
"explicit": 0,
"has_lyrics": 1,
"has_richsync": 1,
"has_subtitles": 1,
"has_lyrics_analysis": 1,
"has_translations": 1,
"instrumental": 0,
"num_favourite": 18,
"primary_genres": {
"music_genre_list": [
{
"music_genre": {
"music_genre_id": 1135,
"music_genre_parent_id": 14,
"music_genre_name": "Teen Pop",
"music_genre_name_extended": "Pop / Teen Pop",
"music_genre_vanity": "Pop-Teen-Pop"
}
}
]
},
"restricted": 0,
"track_edit_url": "https://www.musixmatch.com/lyrics/Taylor-Swift/Starlight-Taylor-s-Version/edit",
"track_id": 226271188,
"track_isrc": "USUG12103675",
"track_length": 220,
"track_name": "Starlight (Taylor's Version)",
"track_rating": 58,
"track_share_url": "https://www.musixmatch.com/lyrics/Taylor-Swift/Starlight-Taylor-s-Version",
"track_spotify_id": "7A2cNLRT0YJc1yjxHlKihs",
"updated_time": "2021-11-16T05:26:09Z"
}
}
}
}
At least one of the query parameters must be indicated: commontrack_id, track_isrc, track_spotify_id or track_itunes_id.
Query Parameters
Was this page helpful?