Docs menu

Spotify API endpoint

Retrieve Spotify artist albums

Returns artist discography items from Spotify Web Player private Pathfinder responses.

GETapiKey3 credits/requestSpotifyspotify.artistAlbumsResponseDoc/spotify/artist/albums

Overview

Returns artist discography items from Spotify Web Player private Pathfinder responses.

Request schema

NameInTypeRequiredEnumExampleDescription
uriquerystringNospotify:artist:0TnOYISbd1XYRBk9myasegSpotify artist URI or open.spotify.com artist URL
idquerystringNo0TnOYISbd1XYRBk9myasegSpotify artist ID
typequerystringNoalbumalbum, single, compilation, appears_on, or all
orderquerystringNodate_descdate_desc, date_asc, name_asc, or name_desc
offsetqueryintegerNo0Offset
limitqueryintegerNo50Limit, clamped to 1-50
x-api-keyheaderstringYesAPI key required

Authentication

Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.

Billing

Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.

Credit cost
3 credits/request
Charged response
Successful 2xx responses
PlanPriceIncluded creditsDaily capRate limitOverage
Free$0/mo2,000500 daily credits5/minNo overage
Starter$9/mo20,0005,000 daily credits15/min$0.75/1,000 overage credits when enabled
Growth$29/mo100,00025,000 daily credits45/min$0.45/1,000 overage credits when enabled
Pro$79/mo400,000No daily cap120/min$0.30/1,000 overage credits
Business$199/mo1,200,000No daily cap300/min$0.20/1,000 overage credits
Enterprise$499/mo5,000,000No daily cap1,000/min$0.12/1,000 overage credits

Infrastructure behavior

This endpoint is executed through Crawlora's managed scraping infrastructure.

  • Proxy strategy: managed automatically where needed
  • Browser rendering: enabled for supported targets that require rendered HTML or JavaScript execution
  • Browser cluster: supported dynamic workloads can be routed through distributed browser instances
  • Retry behavior: automatic retry/fallback may be used depending on endpoint type
  • Challenge handling: challenged pages or unusable upstream HTML are detected and surfaced clearly when they cannot be used
  • Billing: credits are charged only for successful 2xx responses
  • Observability: responses include request context where available

Response behavior

The endpoint selects the matching private discography operation for the requested `type`. Unsupported `type` or `order` values return `400`; upstream private API failures return `502`.

Error behavior

Crawlora does not silently return bad data when the upstream page cannot be used.

StatusCommon failure case
400Invalid input or missing required parameter
429Plan or endpoint rate limit exceeded
500Internal execution error
502Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved

When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.

Failure responses

StatusDescriptionSchema
400Bad Request#/definitions/app.Response
429Too Many Requests#/definitions/app.Response
502Bad Gateway#/definitions/app.Response

Example response

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

FieldTypeRequiredEnumBoundsExampleDescription
codeintegerNoCode is the HTTP status code or a custom code used to indicate the result of the request @example 200
dataspotify.ArtistAlbumsResponseNo
data.idstringNo
data.itemsarrayNo
data.items[].descriptionstringNoThe official podcast of comedian Joe Rogan.
data.items[].externalUrlstringNohttps://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk
data.items[].imageUrlstringNohttps://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b
data.items[].imagesarrayNo
data.items[].images[].heightintegerNo640
data.items[].images[].urlstringNohttps://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0
data.items[].images[].widthintegerNo640
data.items[].publisherstringNoJoe Rogan
data.items[].subtitlestringNoJoe Rogan
data.items[].titlestringNoThe Joe Rogan Experience
data.items[].typestringNoPodcast
data.items[].uristringNospotify:show:4rOoJ6Egrf8K2IrywzwOMk
data.limitintegerNo
data.metaspotify.ArtistAlbumsMetaNo
data.meta.appVersionstringNo
data.meta.countintegerNo
data.meta.fetchedAtstringNo
data.meta.operationNamestringNo
data.offsetintegerNo
data.orderstringNo
data.totalintegerNo
data.typestringNo
data.uristringNo
msgunknownNoMsg is the message that describes the result of the request @example "Request successful"

Code examples

Use environment variables for secrets and keep Crawlora API keys server-side.

curl -X GET "https://api.crawlora.net/api/v1/spotify/artist/albums?uri=spotify%3Aartist%3A0TnOYISbd1XYRBk9myaseg&id=0TnOYISbd1XYRBk9myaseg&type=album&order=date_desc&offset=0&limit=50" \
  -H "x-api-key: $CRAWLORA_API_KEY"

Responsible public web data workflows

Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.

Read Crawlora terms

Related