---
title: "Retrieve Spotify artist albums"
method: GET
path: "/spotify/artist/albums"
tags: ["Spotify"]
---

# Retrieve Spotify artist albums

`GET /spotify/artist/albums`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/spotify/artist/albums`
- Auth: API key in header `x-api-key`

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.

## Query parameters

- `uri` string
- `id` string
- `type` 'album' | 'single' | 'compilation' | 'appears_on' | 'all'
- `order` 'date_desc' | 'date_asc' | 'name_asc' | 'name_desc'
- `offset` integer
- `limit` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SpotifyArtistAlbumsResponseDoc
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` SpotifyArtistAlbumsResponse
    - `id` string: Spotify ID of the artist.
    - `items` SpotifySearchResultSummary[]: Releases returned for the artist.
      - `description` string: Description text of the result.
      - `externalUrl` string: Link to the result on open.spotify.com.
      - `imageUrl` string: URL of the main image for the result.
      - `images` SpotifyImageAsset[]: Images available for the result, with their sizes.
        - `height` integer: Image height in pixels.
        - `url` string: URL of the image.
        - `width` integer: Image width in pixels.
      - `publisher` string: Publisher or creator name of the result.
      - `subtitle` string: Secondary line shown under the title, such as the artist or creator name.
      - `title` string: Result title as Spotify shows it.
      - `type` string: Kind of result as Spotify labels it, for example `Podcast`.
      - `uri` string: Spotify URI of the result.
    - `limit` integer: Maximum number of releases requested.
    - `meta` SpotifyArtistAlbumsMeta
      - `appVersion` string: Version of the Spotify web player the data was read from.
      - `count` integer: Number of releases returned.
      - `fetchedAt` string: Time the data was fetched, in UTC (RFC 3339).
      - `operationName` string: Name of the Spotify web player operation that returned the data.
    - `offset` integer: Position of the first release returned.
    - `order` string: Sort order that was applied: `date_desc`, `date_asc`, `name_asc` or `name_desc`.
    - `total` integer: Total number of releases of this type on Spotify.
    - `type` string: Release type that was requested: `album`, `single`, `compilation`, `appears_on` or `all`.
    - `uri` string: Spotify URI of the artist.
  - `msg` unknown

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/028417aa35bb?raw)
