Spotify album API

The album with its tracks (up to 200), label, copyright and release date.

GETapi.socialscrape.io/v1/spotify/album
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

You send one of url or id.

Request

Send your key in the x-api-key header.

curl
curl -G "https://api.socialscrape.io/v1/spotify/album" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'id=5AEDGbliTTfjOB8TSm1sxt'
Python
import os
import requests

params = {
    "id": "5AEDGbliTTfjOB8TSm1sxt",
}
res = requests.get(
    "https://api.socialscrape.io/v1/spotify/album",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
    timeout=60,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/spotify/album");
url.search = new URLSearchParams({
  id: "5AEDGbliTTfjOB8TSm1sxt",
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Spotify album",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/spotify/album",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "id",
              "value": "5AEDGbliTTfjOB8TSm1sxt"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
urlurlone ofSpotify album URL.
idstringone ofSpotify album id.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_29f4e13231054599921cc3e1",
  "data": {
    "object": "album",
    "platform": "spotify",
    "id": "5AEDGbliTTfjOB8TSm1sxt",
    "url": "https://open.spotify.com/album/5AEDGbliTTfjOB8TSm1sxt",
    "title": "Speak Now (Taylor's Version)",
    "artists": [
      "Taylor Swift"
    ],
    "released_at": "2023-07-07",
    "track_count": 22,
    "cover_url": "https://i.scdn.co/image/ab67616d0000b2730b04da4f224b51ff86e0a481",
    "label": "Taylor Swift",
    "tracks": [
      {
        "object": "song",
        "platform": "spotify",
        "id": "7G0gBu6nLdhFDPRLc0HdDG",
        "url": "https://open.spotify.com/track/7G0gBu6nLdhFDPRLc0HdDG",
        "title": "Mine (Taylor's Version)",
        "artists": [
          "Taylor Swift"
        ],
        "album": "Speak Now (Taylor's Version)",
        "duration_seconds": 231.706,
        "cover_url": "https://i.scdn.co/image/ab67616d0000b2730b04da4f224b51ff86e0a481",
        "preview_url": null,
        "released_at": "2023-07-07",
        "isrc": null,
        "explicit": false,
        "is_original": null,
        "stats": {
          "plays": 296875369,
          "uses": null,
          "likes": null
        },
        "extra": {
          "album_id": "5AEDGbliTTfjOB8TSm1sxt",
          "artist_ids": [
            "06HL4z0CvFAxyc27GXpf02"
          ],
          "disc_number": 1,
          "playable": true,
          "track_number": 1,
          "uri": "spotify:track:7G0gBu6nLdhFDPRLc0HdDG"
        }
      },
      {
        "object": "song",
        "platform": "spotify",
        "id": "3MytWN8L7shNYzGl4tAKRp",
        "url": "https://open.spotify.com/track/3MytWN8L7shNYzGl4tAKRp",
        "title": "Sparks Fly (Taylor’s Version)",
        "artists": [
          "Taylor Swift"
        ],
        "album": "Speak Now (Taylor's Version)",
        "duration_seconds": 261.23,
        "cover_url": "https://i.scdn.co/image/ab67616d0000b2730b04da4f224b51ff86e0a481",
        "preview_url": null,
        "released_at": "2023-07-07",
        "isrc": null,
        "explicit": false,
        "is_original": null,
        "stats": {
          "plays": 197955576,
          "uses": null,
          "likes": null
        },
        "extra": {
          "album_id": "5AEDGbliTTfjOB8TSm1sxt",
          "artist_ids": [
            "06HL4z0CvFAxyc27GXpf02"
          ],
          "disc_number": 1,
          "playable": true,
          "track_number": 2,
          "uri": "spotify:track:3MytWN8L7shNYzGl4tAKRp"
        }
      },
      {
        "object": "song",
        "platform": "spotify",
        "id": "79uDOz0zuuWS7HWxzMmTa2",
        "url": "https://open.spotify.com/track/79uDOz0zuuWS7HWxzMmTa2",
        "title": "Back To December (Taylor's Version)",
        "artists": [
          "Taylor Swift"
        ],
        "album": "Speak Now (Taylor's Version)",
        "duration_seconds": 294.189,
        "cover_url": "https://i.scdn.co/image/ab67616d0000b2730b04da4f224b51ff86e0a481",
        "preview_url": null,
        "released_at": "2023-07-07",
        "isrc": null,
        "explicit": false,
        "is_original": null,
        "stats": {
          "plays": 319451738,
          "uses": null,
          "likes": null
        },
        "extra": {
          "album_id": "5AEDGbliTTfjOB8TSm1sxt",
          "artist_ids": [
            "06HL4z0CvFAxyc27GXpf02"
          ],
          "disc_number": 1,
          "playable": true,
          "track_number": 3,
          "uri": "spotify:track:79uDOz0zuuWS7HWxzMmTa2"
        }
      }
    ],
    "extra": {
      "artist_ids": [
        "06HL4z0CvFAxyc27GXpf02"
      ],
      "artist_urls": [
        "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
      ],
      "copyright": [
        "© 2023 Taylor Swift",
        "℗ 2023 Taylor Swift"
      ],
      "disc_count": 1,
      "is_pre_release": false,
      "more_albums_by_artist": [
        {
          "cover_url": "https://i.scdn.co/image/ab67616d0000b273cf3de6b538d8b1ed73a4d5d1",
          "id": "4hF2gTGuPYlykYuphDxi8J",
          "release_date": "2026",
          "release_date_precision": "YEAR",
          "title": "The Life of a Showgirl: The Encore",
          "type": "album",
          "url": "https://open.spotify.com/album/4hF2gTGuPYlykYuphDxi8J"
        },
        {
          "cover_url": "https://i.scdn.co/image/ab67616d0000b273d7812467811a7da6e6a44902",
          "id": "4a6NzYL1YHRUgx9e3YZI6I",
          "release_date": "2025",
          "release_date_precision": "YEAR",
          "title": "The Life of a Showgirl",
          "type": "album",
          "url": "https://open.spotify.com/album/4a6NzYL1YHRUgx9e3YZI6I"
        },
        {
          "cover_url": "https://i.scdn.co/image/ab67616d0000b273e787cffec20aa2a396a61647",
          "id": "1NAmidJlEaVgA3MpcPFYGq",
          "release_date": "2019",
          "release_date_precision": "YEAR",
          "title": "Lover",
          "type": "album",
          "url": "https://open.spotify.com/album/1NAmidJlEaVgA3MpcPFYGq"
        }
      ]
    }
  },
  "cursor": null,
  "has_more": null
}

Fields

One Album in data.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"album"
platformPlatformyes
idstringyes
urlstring or null
titlestring or null
artistsstring[] or null
released_atstring (ISO 8601 date) or null
track_countinteger or null
cover_urlstring or null
labelstring or null
tracksSong[] or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

Is there an SDK call for it?

The preview Python client has client.spotify.album(...) and the TypeScript client client.spotify.album(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access