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

Spotify Artist Discography

GET https://scrappa.co/api/spotify/artist/discography

Get an artist's releases, paginated across albums, singles, compilations and appearances.

Spotify Artist Discography 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/spotify/artist/discography
Auth header
x-api-key
Cost
1 credit/request
id = 1234567890
Response preview
200 OK
{
    "__typename": "Artist",
    "discography": {
        "all": {
            "items": [
                {
                    "releases": {
                        "items": [
                            {
                                "id": "5AFf68gtvNgGLZarsyEEL8",
                                "uri": "spotify:album:5AFf68gtvNgGLZarsyEEL8",
                                "date": {
                                    "year": 2023,
                                    "isoString": "2023-11-17T00:00:00Z",
...

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.

2 optional filters available.

id string Required

Spotify artist id or full spotify:artist: URI.

Example value 1234567890
limit integer Optional

Releases per page.

Example value 10
offset integer Optional

Release offset.

Example value 10

Response Schema

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

Example response fields

Scan these fields before integrating.

__typename discography search_parameters
JSON Response
200 OK
{
    "__typename": "Artist",
    "discography": {
        "all": {
            "items": [
                {
                    "releases": {
                        "items": [
                            {
                                "id": "5AFf68gtvNgGLZarsyEEL8",
                                "uri": "spotify:album:5AFf68gtvNgGLZarsyEEL8",
                                "date": {
                                    "year": 2023,
                                    "isoString": "2023-11-17T00:00:00Z",
                                    "precision": "DAY"
                                },
                                "name": "Random Access Memories (Drumless Edition)",
                                "type": "ALBUM",
                                "tracks": {
                                    "totalCount": 13
                                },
                                "coverArt": {
                                    "sources": [
                                        {
                                            "url": "https://i.scdn.co/image/ab67616d00001e02d1ec82bc061a90006584aa9b",
                                            "width": 300,
                                            "height": 300
                                        },
                                        {
                                            "url": "https://i.scdn.co/image/ab67616d00004851d1ec82bc061a90006584aa9b",
                                            "width": 64,
                                            "height": 64
                                        },
                                        {
                                            "url": "https://i.scdn.co/image/ab67616d0000b273d1ec82bc061a90006584aa9b",
                                            "width": 640,
                                            "height": 640
                                        }
                                    ]
                                },
                                "playability": {
                                    "reason": "PLAYABLE",
                                    "playable": true
                                },
                                "sharingInfo": {
                                    "shareId": "EZPJlUEEQValmX3IiKkZbw",
                                    "shareUrl": "https://open.spotify.com/album/5AFf68gtvNgGLZarsyEEL8?si=EZPJlUEEQValmX3IiKkZbw"
                                }
                            }
                        ]
                    }
                },
                {
                    "releases": {
                        "items": [
                            {
                                "id": "4mAhdh996uW5SnnFKXUmC0",
                                "uri": "spotify:album:4mAhdh996uW5SnnFKXUmC0",
                                "date": {
                                    "year": 2023,
                                    "isoString": "2023-05-12T00:00:00Z",
                                    "precision": "DAY"
                                },
                                "name": "Random Access Memories (10th Anniversary Edition)",
                                "type": "ALBUM",
                                "tracks": {
                                    "totalCount": 22
                                },
                                "coverArt": {
                                    "sources": [
                                        {
                                            "url": "https://i.scdn.co/image/ab67616d00001e027a311579a8814f7683f25a17",
                                            "width": 300,
                                            "height": 300
                                        },
                                        {
                                            "url": "https://i.scdn.co/image/ab67616d000048517a311579a8814f7683f25a17",
                                            "width": 64,
                                            "height": 64
                                        },
                                        {
                                            "url": "https://i.scdn.co/image/ab67616d0000b2737a311579a8814f7683f25a17",
                                            "width": 640,
                                            "height": 640
                                        }
                                    ]
                                },
                                "playability": {
                                    "reason": "PLAYABLE",
                                    "playable": true
                                },
                                "sharingInfo": {
                                    "shareId": "fsCZiowMSxOM2puhGtSP4g",
                                    "shareUrl": "https://open.spotify.com/album/4mAhdh996uW5SnnFKXUmC0?si=fsCZiowMSxOM2puhGtSP4g"
                                }
                            }
                        ]
                    }
                }
            ],
            "totalCount": 37
        }
    },
    "search_parameters": {
        "id": "4tZwfgrHOc3mvqYlEYSvVi",
        "limit": 50,
        "engine": "spotify_artist_discography",
        "offset": 0
    }
}

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.