# Spotify Album

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

- **Documentation:** [https://scrappa.co/docs/spotify-api/spotify_album](https://scrappa.co/docs/spotify-api/spotify_album)
- **API group:** Spotify API
- **Endpoint:** `GET https://scrappa.co/api/spotify/album`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | <p>Spotify album id or full spotify:album: URI.</p> |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 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. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
