Get album detail
curl --request GET \
--url https://spotify-api31.p.rapidapi.com/api/v1/albums/detail \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://spotify-api31.p.rapidapi.com/api/v1/albums/detail"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://spotify-api31.p.rapidapi.com/api/v1/albums/detail', 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://spotify-api31.p.rapidapi.com/api/v1/albums/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$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://spotify-api31.p.rapidapi.com/api/v1/albums/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://spotify-api31.p.rapidapi.com/api/v1/albums/detail")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://spotify-api31.p.rapidapi.com/api/v1/albums/detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
},
"data": {
"id": "3Gq2Dme9nesdgoqNNlcN8O",
"name": "Despacito Feat. Justin Bieber (Remix)",
"uri": "spotify:album:3Gq2Dme9nesdgoqNNlcN8O",
"artists": [
{
"id": "4V8Sr092TqfHkfAA5fXXqG",
"name": "Luis Fonsi",
"uri": "spotify:artist:4V8Sr092TqfHkfAA5fXXqG",
"avatar": [
{
"url": "https://i.scdn.co/image/ab6761610000e5ebc75a7a555898c9a59602b32b",
"width": 640,
"height": 640
}
]
}
],
"coverArt": [
{
"url": "https://i.scdn.co/image/ab67616d00001e02a6a335d613d151c626895a83",
"width": 300,
"height": 300
}
],
"date": {
"isoString": "2017-04-17T00:00:00Z",
"precision": "DAY",
"year": 2017
},
"type": "SINGLE",
"playability": {
"playable": true,
"reason": "PLAYABLE"
},
"label": "Republic/UMLE",
"copyright": [
{
"text": "© 2017 Universal Music Latin Entertainment, under exclusive license to Republic Records (RBMG/Def Jam Recordings)",
"type": "C"
}
],
"courtesyLine": "",
"totalTracks": 1,
"discs": [
{
"number": 1,
"totalTracks": 1
}
],
"sharingInfo": {
"shareId": "XbI8kOyGR4aZ1pLYh4QmJg",
"shareUrl": "https://open.spotify.com/album/3Gq2Dme9nesdgoqNNlcN8O?si=XbI8kOyGR4aZ1pLYh4QmJg"
},
"isPreRelease": false,
"saved": false,
"tracks": [
{
"id": "62lAwPVnYrYdRXeJyL5mhz",
"name": "Piep Piep Piep",
"uri": "spotify:track:62lAwPVnYrYdRXeJyL5mhz",
"duration": 229933,
"artists": [
{
"id": "6j8vGWE3wKAFEn0ngreusM",
"name": "The Butcher Sisters",
"uri": "spotify:artist:6j8vGWE3wKAFEn0ngreusM",
"avatar": [
{
"url": "https://i.scdn.co/image/ab6761610000e5ebe8ed702299a74acfb0216ed5",
"width": 640,
"height": 640
}
]
}
],
"contentRating": {
"label": "EXPLICIT"
},
"hasOriginalAudio": true,
"playability": {
"playable": false
}
}
],
"hasMoreTracks": false
}
}{
"message": "Bad request"
}{
"message": "Invalid API key"
}{
"message": "You are not subscribed to this API, please subscribe before using"
}{
"success": false,
"message": "Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Internal Server Error"
}Albums
Get album detail
Get detailed information about a specific album
GET
/
api
/
v1
/
albums
/
detail
Get album detail
curl --request GET \
--url https://spotify-api31.p.rapidapi.com/api/v1/albums/detail \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://spotify-api31.p.rapidapi.com/api/v1/albums/detail"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://spotify-api31.p.rapidapi.com/api/v1/albums/detail', 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://spotify-api31.p.rapidapi.com/api/v1/albums/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$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://spotify-api31.p.rapidapi.com/api/v1/albums/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://spotify-api31.p.rapidapi.com/api/v1/albums/detail")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://spotify-api31.p.rapidapi.com/api/v1/albums/detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Success",
"statusCode": 200,
"pagination": {
"total": 100,
"hasMore": true,
"continuation": "CDsQ8FsiEwje95_F1pmRAxXlsykDHUX"
},
"data": {
"id": "3Gq2Dme9nesdgoqNNlcN8O",
"name": "Despacito Feat. Justin Bieber (Remix)",
"uri": "spotify:album:3Gq2Dme9nesdgoqNNlcN8O",
"artists": [
{
"id": "4V8Sr092TqfHkfAA5fXXqG",
"name": "Luis Fonsi",
"uri": "spotify:artist:4V8Sr092TqfHkfAA5fXXqG",
"avatar": [
{
"url": "https://i.scdn.co/image/ab6761610000e5ebc75a7a555898c9a59602b32b",
"width": 640,
"height": 640
}
]
}
],
"coverArt": [
{
"url": "https://i.scdn.co/image/ab67616d00001e02a6a335d613d151c626895a83",
"width": 300,
"height": 300
}
],
"date": {
"isoString": "2017-04-17T00:00:00Z",
"precision": "DAY",
"year": 2017
},
"type": "SINGLE",
"playability": {
"playable": true,
"reason": "PLAYABLE"
},
"label": "Republic/UMLE",
"copyright": [
{
"text": "© 2017 Universal Music Latin Entertainment, under exclusive license to Republic Records (RBMG/Def Jam Recordings)",
"type": "C"
}
],
"courtesyLine": "",
"totalTracks": 1,
"discs": [
{
"number": 1,
"totalTracks": 1
}
],
"sharingInfo": {
"shareId": "XbI8kOyGR4aZ1pLYh4QmJg",
"shareUrl": "https://open.spotify.com/album/3Gq2Dme9nesdgoqNNlcN8O?si=XbI8kOyGR4aZ1pLYh4QmJg"
},
"isPreRelease": false,
"saved": false,
"tracks": [
{
"id": "62lAwPVnYrYdRXeJyL5mhz",
"name": "Piep Piep Piep",
"uri": "spotify:track:62lAwPVnYrYdRXeJyL5mhz",
"duration": 229933,
"artists": [
{
"id": "6j8vGWE3wKAFEn0ngreusM",
"name": "The Butcher Sisters",
"uri": "spotify:artist:6j8vGWE3wKAFEn0ngreusM",
"avatar": [
{
"url": "https://i.scdn.co/image/ab6761610000e5ebe8ed702299a74acfb0216ed5",
"width": 640,
"height": 640
}
]
}
],
"contentRating": {
"label": "EXPLICIT"
},
"hasOriginalAudio": true,
"playability": {
"playable": false
}
}
],
"hasMoreTracks": false
}
}{
"message": "Bad request"
}{
"message": "Invalid API key"
}{
"message": "You are not subscribed to this API, please subscribe before using"
}{
"success": false,
"message": "Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Internal Server Error"
}Authorizations
API Key
Query Parameters
Spotify album or prerelease URI to get the detail of
Pattern:
^spotify:(album|prerelease):[a-zA-Z0-9]+$Example:
"spotify:album:70hX7IYqmUGV97OXs2v848"
Was this page helpful?
⌘I

