Spotify API endpoint
Returns an artist's Spotify discography by artist URI, `open.spotify.com` URL or id. Choose `type` (`album`, `single`, `compilation`, `appears_on` or `all`; default `album`) and `order` (default `date_desc`), and page with `offset` and `limit` (1-50, default 50). Each item has a type, title, subtitle, Spotify URI, external URL and images; `total` gives the full count.
/spotify/artist/albumsReturns Spotify artist discography items.
uri: Spotify artist URI or open.spotify.com/artist/... URL.id: Spotify artist ID. Used when uri is omitted.type: One of album, single, compilation, appears_on, or all. Defaults to album.order: One of date_desc, date_asc, name_asc, or name_desc. Defaults to date_desc.offset: Result offset. Defaults to 0.limit: Result limit, clamped to 1-50. Defaults to 50.The endpoint selects the matching private discography operation for the requested type. Unsupported type or order values return 400; upstream private API failures return 503.
| Field | Filled in, of 22 checked | Values in the sample |
|---|---|---|
| uri | 22 | “spotify:album:4Lkkfpt8ZkDmw4viHHi0IM” and 21 other values |
| title | 22 | “PITCOIN” and 21 other values |
| imageUrl | 22 | i.scdn.co |
| images | 22 | median 3 entries |
| externalUrl | 22 | open.spotify.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| uri | string | No | Spotify artist URI or open.spotify.com artist URL | spotify:artist:0TnOYISbd1XYRBk9myaseg | |
| id | string | No | Spotify artist ID | 0TnOYISbd1XYRBk9myaseg | |
| type | string | No | album, single, compilation, appears_on, or all Allowed values: album, single, compilation, appears_on, all. | album | |
| order | string | No | date_desc, date_asc, name_asc, or name_desc Allowed values: date_desc, date_asc, name_asc, name_desc. | date_desc | |
| offset | integer | No | Offset | 0 | |
| limit | integer | No | Limit, clamped to 1-50 | 50 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/spotify/artist/albums?type=album&order=date_desc&limit=10" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"uri": "spotify:artist:0TnOYISbd1XYRBk9myaseg",
"type": "album",
"items": [
{
"uri": "spotify:album:4aawyAB9vmqN3uQ7FjRGTy",
"title": "Global Warming"
}
],
"meta": {
"operationName": "queryArtistDiscographyAlbums",
"count": 1,
"fetchedAt": "2026-05-13T20:41:13Z"
}
}
}Request schema
No body schema
Response schema
#/definitions/spotify.artistAlbumsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | spotify.ArtistAlbumsResponse | No | ||||
| data.id | string | No | Spotify ID of the artist. | |||
| data.items | array | No | Releases returned for the artist. | |||
| data.items[].description | string | No | The official podcast of comedian Joe Rogan. | Description text of the result. | ||
| data.items[].externalUrl | string | No | https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk | Link to the result on open.spotify.com. | ||
| data.items[].imageUrl | string | No | https://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b | URL of the main image for the result. | ||
| data.items[].images | array | No | Images available for the result, with their sizes. | |||
| data.items[].images[].height | integer | No | 640 | Image height in pixels. | ||
| data.items[].images[].url | string | No | https://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0 | URL of the image. | ||
| data.items[].images[].width | integer | No | 640 | Image width in pixels. | ||
| data.items[].publisher | string | No | Joe Rogan | Publisher or creator name of the result. | ||
| data.items[].subtitle | string | No | Joe Rogan | Secondary line shown under the title, such as the artist or creator name. | ||
| data.items[].title | string | No | The Joe Rogan Experience | Result title as Spotify shows it. | ||
| data.items[].type | string | No | Podcast | Kind of result as Spotify labels it, for example `Podcast`. | ||
| data.items[].uri | string | No | spotify:show:4rOoJ6Egrf8K2IrywzwOMk | Spotify URI of the result. | ||
| data.limit | integer | No | Maximum number of releases requested. | |||
| data.meta | object | No | Details about this response. | |||
| data.meta.appVersion | string | No | Version of the Spotify web player the data was read from. | |||
| data.meta.count | integer | No | Number of releases returned. | |||
| data.meta.fetchedAt | string | No | Time the data was fetched, in UTC (RFC 3339). | |||
| data.meta.operationName | string | No | Name of the Spotify web player operation that returned the data. | |||
| data.offset | integer | No | Position of the first release returned. | |||
| data.order | string | No | Sort order that was applied: `date_desc`, `date_asc`, `name_asc` or `name_desc`. | |||
| data.total | integer | No | Total number of releases of this type on Spotify. | |||
| data.type | string | No | Release type that was requested: `album`, `single`, `compilation`, `appears_on` or `all`. | |||
| data.uri | string | No | Spotify URI of the artist. | |||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/spotify/artist/albums?type=album&order=date_desc&limit=10" \
-H "x-api-key: $CRAWLORA_API_KEY"