artist.albums.get
curl --request GET \
--url 'https://api.musixmatch.com/ws/1.1/artist.albums.get?apikey='import requests
url = "https://api.musixmatch.com/ws/1.1/artist.albums.get?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.musixmatch.com/ws/1.1/artist.albums.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/artist.albums.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/artist.albums.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/artist.albums.get?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musixmatch.com/ws/1.1/artist.albums.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": {
"body": {
"album_list": [
{
"album": {
"album_id": 48110510,
"album_name": "30",
"album_release_date": "2021-11-19",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-06-11T15:58:53Z"
}
},
{
"album": {
"album_id": 47384581,
"album_name": "Easy On Me",
"album_release_date": "2021-10-14",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-03-27T16:17:44Z"
}
},
{
"album": {
"album_id": 34212322,
"album_name": "Hometown Glory",
"album_release_date": "2018-07-01",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-03-27T16:17:56Z"
}
},
{
"album": {
"album_id": 24073345,
"album_name": "Water Under the Bridge",
"album_release_date": "2016-11-04",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-03-27T16:18:02Z"
}
},
{
"album": {
"album_id": 23619452,
"album_name": "Send My Love (To Your New Lover)",
"album_release_date": "2016-05-16",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-06-11T12:58:35Z"
}
}
]
},
"header": {
"available": 32,
"execute_time": 0.015814065933228,
"status_code": 200
}
}
}Lyrics & Catalog
artist.albums.get
Get albums for an artist.
GET
/
ws
/
1.1
/
artist.albums.get
artist.albums.get
curl --request GET \
--url 'https://api.musixmatch.com/ws/1.1/artist.albums.get?apikey='import requests
url = "https://api.musixmatch.com/ws/1.1/artist.albums.get?apikey="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.musixmatch.com/ws/1.1/artist.albums.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/artist.albums.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/artist.albums.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/artist.albums.get?apikey=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musixmatch.com/ws/1.1/artist.albums.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": {
"body": {
"album_list": [
{
"album": {
"album_id": 48110510,
"album_name": "30",
"album_release_date": "2021-11-19",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-06-11T15:58:53Z"
}
},
{
"album": {
"album_id": 47384581,
"album_name": "Easy On Me",
"album_release_date": "2021-10-14",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-03-27T16:17:44Z"
}
},
{
"album": {
"album_id": 34212322,
"album_name": "Hometown Glory",
"album_release_date": "2018-07-01",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-03-27T16:17:56Z"
}
},
{
"album": {
"album_id": 24073345,
"album_name": "Water Under the Bridge",
"album_release_date": "2016-11-04",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-03-27T16:18:02Z"
}
},
{
"album": {
"album_id": 23619452,
"album_name": "Send My Love (To Your New Lover)",
"album_release_date": "2016-05-16",
"artist_id": 346898,
"artist_name": "Adele",
"restricted": 0,
"updated_time": "2024-06-11T12:58:35Z"
}
}
]
},
"header": {
"available": 32,
"execute_time": 0.015814065933228,
"status_code": 200
}
}
}Authorizations
Query Parameters
Musixmatch artist ID.
Example:
"346898"
Group by album name.
Example:
""
Sort by release date (asc|desc).
Example:
"desc"
Define the page number for paginated results.
Example:
"1"
Define the page size for paginated results. The allowed range is 1 to 100.
Example:
"5"
Response
200 - application/json
200 OK / 401 Unauthorized / 404 Not Found
Show child attributes
Show child attributes
Was this page helpful?
⌘I