Spotify Album API
Provide one of: id, url. Get Spotify album
Quick start
cURL
curl --request GET 'https://api.fetchproof.com/v1/spotify/album?url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F2QJmrSgbdM35R67eoGQo4j' \
--header 'x-api-key: YOUR_API_KEY' JavaScript
const response = await fetch("https://api.fetchproof.com/v1/spotify/album?url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F2QJmrSgbdM35R67eoGQo4j", {
method: 'GET',
headers: {
'x-api-key': process.env.FETCHPROOF_API_KEY,
},
});
const data = await response.json();
console.log(data); Python
import os
import requests
response = requests.get(
"https://api.fetchproof.com/v1/spotify/album?url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F2QJmrSgbdM35R67eoGQo4j",
headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json()) Go
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/spotify/album?url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F2QJmrSgbdM35R67eoGQo4j", nil)
req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
} PHP
<?php
$ch = curl_init("https://api.fetchproof.com/v1/spotify/album?url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F2QJmrSgbdM35R67eoGQo4j");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response; {
"success": true,
"credits_remaining": 100,
"credits_charged": 1,
"uri": "spotify:album:2QJmrSgbdM35R67eoGQo4j",
"__typename": "Album",
"copyright": [
{
"text": "© 2014 Taylor Swift",
"type": "C"
},
{
"text": "℗ 2014 Taylor Swift",
"type": "P"
}
],
"courtesyLine": "",
"date": {
"isoString": "2014-10-27T00:00:00Z",
"precision": "DAY"
},
"isPreRelease": false,
"label": "Taylor Swift",
"name": "1989",
"playability": {
"playable": true,
"reason": "PLAYABLE"
},
"preReleaseEndDateTime": null,
"saved": false,
"sharingInfo": {
"shareId": "IqzrTJSJTDi2aNDjvNoyoQ",
"shareUrl": "https://open.spotify.com/album/2QJmrSgbdM35R67eoGQo4j"
},
"tracksV2": [
{
"track": {
"artists": [
{
"profile": {
"name": "Taylor Swift"
},
"uri": "spotify:artist:06HL4z0CvFAxyc27GXpf02"
}
],
"associationsV3": {
"videoAssociations": {
"totalCount": 0
}
},
"contentRating": {
"label": "NONE"
},
"discNumber": 1,
"duration": {
"totalMilliseconds": 212600
},
"name": "Welcome To New York",
"playability": {
"playable": true
},
"playcount": 318034258,
"relinkingInformation": null,
"saved": false,
"trackNumber": 1,
"uri": "spotify:track:6qnM0XXPZOINWA778uNqQ9"
},
"uid": "0eaab70b44a369f97460"
},
{
"track": {
"artists": [
{
"profile": {
"name": "Taylor Swift"
},
"uri": "spotify:artist:06HL4z0CvFAxyc27GXpf02"
}
],
"associationsV3": {
"videoAssociations": {
"totalCount": 1
}
},
"contentRating": {
"label": "NONE"
},
"discNumber": 1,
"duration": {
"totalMilliseconds": 231826
},
"name": "Blank Space",
"playability": {
"playable": true
},
"playcount": 2672527890,
"relinkingInformation": null,
"saved": false,
"trackNumber": 2,
"uri": "spotify:track:1p80LdxRV74UKvL8gnD7ky"
},
"uid": "f7e0e59deed4e782bf0d"
},
{
"track": {
"artists": [
{
"profile": {
"name": "Taylor Swift"
},
"uri": "spotify:artist:06HL4z0CvFAxyc27GXpf02"
}
],
"associationsV3": {
"videoAssociations": {
"totalCount": 1
}
},
"contentRating": {
"label": "NONE"
},
"discNumber": 1,
"duration": {
"totalMilliseconds": 231000
},
"name": "Style",
"playability": {
"playable": true
},
"playcount": 1955369077,
"relinkingInformation": null,
"saved": false,
"trackNumber": 3,
"uri": "spotify:track:4lIxdJw6W3Fg4vUIYCB0S5"
},
"uid": "746798b76b24bd4fb3c9"
}
],
"type": "ALBUM",
"visualIdentity": {
"squareCoverImage": {
"__typename": "VisualIdentityImage",
"extractedColorSet": {
"encoreBaseSetTextColor": {
"alpha": 255,
"blue": 153,
"green": 185,
"red": 201
},
"highContrast": {
"backgroundBase": {
"alpha": 255,
"blue": 53,
"green": 81,
"red": 96
},
"backgroundTintedBase": {
"alpha": 255,
"blue": 21,
"green": 49,
"red": 62
},
"textBase": {
"alpha": 255,
"blue": 255,
"green": 255,
"red": 255
},
"textBrightAccent": {
"alpha": 255,
"blue": 255,
"green": 255,
"red": 255
},
"textSubdued": {
"alpha": 255,
"blue": 171,
"green": 204,
"red": 220
}
},
"higherContrast": {
"backgroundBase": {
"alpha": 255,
"blue": 23,
"green": 51,
"red": 65
},
"backgroundTintedBase": {
"alpha": 255,
"blue": 55,
"green": 84,
"red": 98
},
"textBase": {
"alpha": 255,
"blue": 255,
"green": 255,
"red": 255
},
"textBrightAccent": {
"alpha": 255,
"blue": 96,
"green": 215,
"red": 30
},
"textSubdued": {
"alpha": 255,
"blue": 171,
"green": 204,
"red": 220
}
},
"minContrast": {
"backgroundBase": {
"alpha": 255,
"blue": 120,
"green": 151,
"red": 167
},
"backgroundTintedBase": {
"alpha": 255,
"blue": 96,
"green": 127,
"red": 142
},
"textBase": {
"alpha": 255,
"blue": 255,
"green": 255,
"red": 255
},
"textBrightAccent": {
"alpha": 255,
"blue": 255,
"green": 255,
"red": 255
},
"textSubdued": {
"alpha": 255,
"blue": 255,
"green": 255,
"red": 255
}
}
}
}
},
"watchFeedEntrypoint": null,
"artists": [
{
"id": "06HL4z0CvFAxyc27GXpf02",
"profile": {
"name": "Taylor Swift"
},
"sharingInfo": {
"shareUrl": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
},
"uri": "spotify:artist:06HL4z0CvFAxyc27GXpf02",
"visuals": {
"avatarImage": {
"sources": [
{
"height": 640,
"url": "https://i.scdn.co/image/ab6761610000e5eb12184bdd29403de54cb9d9c7",
"width": 640
},
{
"height": 160,
"url": "https://i.scdn.co/image/ab6761610000f17812184bdd29403de54cb9d9c7",
"width": 160
},
{
"height": 320,
"url": "https://i.scdn.co/image/ab6761610000517412184bdd29403de54cb9d9c7",
"width": 320
}
]
}
}
}
],
"coverArt": {
"extractedColors": {
"colorDark": {
"hex": "#817662"
},
"colorLight": {
"hex": "#C8B898"
},
"colorRaw": {
"hex": "#C8B898"
}
},
"sources": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e029abdf14e6058bd3903686148",
"width": 300
},
{
"height": 64,
"url": "https://i.scdn.co/image/ab67616d000048519abdf14e6058bd3903686148",
"width": 64
},
{
"height": 640,
"url": "https://i.scdn.co/image/ab67616d0000b2739abdf14e6058bd3903686148",
"width": 640
}
]
},
"discs": [
{
"number": 1,
"tracks": {
"totalCount": 13
}
}
],
"releases": [
{
"name": "1989 (Big Machine Radio Release Special)",
"uri": "spotify:album:6EsTJnpahwW6xX20zvqQgZ"
},
{
"name": "Taylor Swift Karaoke: 1989",
"uri": "spotify:album:02H4kc9YLgorpUIREOwa0q"
}
],
"moreAlbumsByArtist": [
{
"discography": {
"popularReleasesAlbums": [
{
"coverArt": {
"sources": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02cf3de6b538d8b1ed73a4d5d1",
"width": 300
},
{
"height": 64,
"url": "https://i.scdn.co/image/ab67616d00004851cf3de6b538d8b1ed73a4d5d1",
"width": 64
},
{
"height": 640,
"url": "https://i.scdn.co/image/ab67616d0000b273cf3de6b538d8b1ed73a4d5d1",
"width": 640
}
]
},
"date": {
"year": 2026
},
"id": "4hF2gTGuPYlykYuphDxi8J",
"name": "The Life of a Showgirl: The Encore",
"playability": {
"playable": true,
"reason": "PLAYABLE"
},
"sharingInfo": {
"shareId": "L_1YKoFaQDGbHWkN4pWhag",
"shareUrl": "https://open.spotify.com/album/4hF2gTGuPYlykYuphDxi8J"
},
"type": "ALBUM",
"uri": "spotify:album:4hF2gTGuPYlykYuphDxi8J"
},
{
"coverArt": {
"sources": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e02d7812467811a7da6e6a44902",
"width": 300
},
{
"height": 64,
"url": "https://i.scdn.co/image/ab67616d00004851d7812467811a7da6e6a44902",
"width": 64
},
{
"height": 640,
"url": "https://i.scdn.co/image/ab67616d0000b273d7812467811a7da6e6a44902",
"width": 640
}
]
},
"date": {
"year": 2025
},
"id": "4a6NzYL1YHRUgx9e3YZI6I",
"name": "The Life of a Showgirl",
"playability": {
"playable": true,
"reason": "PLAYABLE"
},
"sharingInfo": {
"shareId": "9eMKcuzjQuWV1qh3zX61Yg",
"shareUrl": "https://open.spotify.com/album/4a6NzYL1YHRUgx9e3YZI6I"
},
"type": "ALBUM",
"uri": "spotify:album:4a6NzYL1YHRUgx9e3YZI6I"
},
{
"coverArt": {
"sources": [
{
"height": 300,
"url": "https://i.scdn.co/image/ab67616d00001e0295f754318336a07e85ec59bc",
"width": 300
},
{
"height": 64,
"url": "https://i.scdn.co/image/ab67616d0000485195f754318336a07e85ec59bc",
"width": 64
},
{
"height": 640,
"url": "https://i.scdn.co/image/ab67616d0000b27395f754318336a07e85ec59bc",
"width": 640
}
]
},
"date": {
"year": 2020
},
"id": "2fenSS68JI1h4Fo296JfGr",
"name": "folklore",
"playability": {
"playable": true,
"reason": "PLAYABLE"
},
"sharingInfo": {
"shareId": "VLqbg9VuR86YsWdmtdYocQ",
"shareUrl": "https://open.spotify.com/album/2fenSS68JI1h4Fo296JfGr"
},
"type": "ALBUM",
"uri": "spotify:album:2fenSS68JI1h4Fo296JfGr"
}
]
}
}
]
} What it returns
- success boolean
- credits_remaining integer
- credits_charged integer
- popularity integer
- id string
- uri string
- __typename string
- copyright array
- courtesyLine string
- date object
Parameters
Spotify album ID. Provide id or url.
Spotify album URL. Provide id or url.
Use cases
- Verify the release metadata for an album review
- Collect album details for a discography page
- Check which edition a public album URL identifies
- Build a preview card for a recommended record
Billing
Errors cost zero credits. Empty results follow this operation’s rules.
Default: 1 credit
An empty result costs 0 credits.
How charges are determined
Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.
A call that fails costs 0 credits. A result served from cache costs 0 credits.
`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.
A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).
A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.
Related Spotify endpoints
FAQ
How much does the Spotify Album API cost?
A call costs 1 credit by default. Errors cost 0 credits. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.
What do I need to call it?
An API key in the x-api-key header, and one of id or url. You don't need a Spotify account or developer app.
What does it return?
Typed JSON. Top-level fields include popularity, id, uri, __typename, copyright and courtesyLine. The full schema and a real sample response are on this page and in the API reference.
Is this an official Spotify API?
No. Fetchproof is an unofficial API that returns public Spotify data only.