Skip to content
Scrappa Get API key
Spotify API 1 credit/request

Spotify Album

GET https://scrappa.co/api/spotify/album

Get a Spotify album with release date, label, copyright, track count and the track list.

Spotify Album 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/spotify/album
Auth header
x-api-key
Cost
1 credit/request
id = 1234567890
Response preview
200 OK
{
    "uri": "spotify:album:4yP0hdKOZPNshxUOjY0cZj",
    "date": {
        "isoString": "2020-03-20",
        "precision": "DAY"
    },
    "name": "After Hours",
    "type": "album",
    "label": "Republic Records",
    "tracksV2": {
        "items": [
            {
                "track": {
                    "uri": "spotify:track:6b5P51m8xx2XA6U7sdNZ5E",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

id string Required

Spotify album id or full spotify:album: URI.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

uri date name type label tracksV2 copyright __typename +5 more
JSON Response
200 OK
{
    "uri": "spotify:album:4yP0hdKOZPNshxUOjY0cZj",
    "date": {
        "isoString": "2020-03-20",
        "precision": "DAY"
    },
    "name": "After Hours",
    "type": "album",
    "label": "Republic Records",
    "tracksV2": {
        "items": [
            {
                "track": {
                    "uri": "spotify:track:6b5P51m8xx2XA6U7sdNZ5E",
                    "name": "Alone Again"
                }
            },
            {
                "track": {
                    "uri": "spotify:track:2K9Ovn1o2bTGqbsABGC6m3",
                    "name": "Too Late"
                }
            }
        ],
        "totalCount": 14
    },
    "copyright": {
        "items": [
            {
                "text": "2020 XO",
                "type": "C"
            }
        ]
    },
    "__typename": "Album",
    "playability": {
        "playabilityReason": "PLAYABLE",
        "playabilityStatus": "PLAYABLE"
    },
    "courtesyLine": "\u2117 2020 XO",
    "isPreRelease": false,
    "visualIdentity": {
        "backgroundBase": {
            "red": 112,
            "blue": 16,
            "alpha": 255,
            "green": 16
        }
    },
    "search_parameters": {
        "id": "4yP0hdKOZPNshxUOjY0cZj",
        "engine": "spotify_album"
    }
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

404

Not Found

No Spotify data exists for the requested id or chart key. Failed requests are never charged.

422

Validation Error

A required parameter is missing or invalid. See the errors object for the offending field.

503

Upstream Unavailable

Spotify could not be reached or returned an unusable response. This is a failed request and is never charged; it is safe to retry.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.