Docs menu

Spotify API endpoint

Retrieve Spotify track details

Returns normalized Spotify Web Player track metadata from Spotify's getTrack Pathfinder response. Provide either uri or id; defaults to a known public track when omitted.

GETapiKey2 credits/requestSpotifyspotify.trackResponseDoc/spotify/track

Overview

Returns normalized Spotify Web Player track metadata from Spotify's getTrack Pathfinder response. Provide either uri or id; defaults to a known public track when omitted.

Request schema

NameInTypeRequiredEnumExampleDescription
uriquerystringNospotify:track:4vGg44GdCw3X8i8r01XJH0Spotify track URI or open.spotify.com track URL
idquerystringNo4vGg44GdCw3X8i8r01XJH0Spotify track ID. Used when uri is omitted
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
2 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

MCP

MCP URL
https://mcp.crawlora.net/mcp
Tool name
spotify.track
Transport
Streamable HTTP
Docs resource
docs://index

Response behavior

- If both `uri` and `id` are omitted, a known public track is used. - Upstream token, app config, client token, or Pathfinder failures return `502`. Example response: ```json { "code": 200, "msg": "OK", "data": { "uri": "spotify:track:4vGg44GdCw3X8i8r01XJH0", "id": "4vGg44GdCw3X8i8r01XJH0", "type": "Track", "name": "Example Track", "artists": [ { "uri": "spotify:artist:example", "title": "Example Artist" } ], "externalUrl": "https://open.spotify.com/track/4vGg44GdCw3X8i8r01XJH0", "meta": { "operationName": "getTrack", "fetchedAt": "2026-05-13T15:22:41Z" } } } ```

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
400Missing or invalid parameters#/definitions/app.Response
429Rate limit exceeded#/definitions/app.Response
502Spotify upstream request failed#/definitions/app.Response

Example response

{
  "code": 200,
  "msg": "OK",
  "data": {
    "uri": "spotify:track:4vGg44GdCw3X8i8r01XJH0",
    "id": "4vGg44GdCw3X8i8r01XJH0",
    "type": "Track",
    "name": "Example Track",
    "artists": [
      {
        "uri": "spotify:artist:example",
        "title": "Example Artist"
      }
    ],
    "externalUrl": "https://open.spotify.com/track/4vGg44GdCw3X8i8r01XJH0",
    "meta": {
      "operationName": "getTrack",
      "fetchedAt": "2026-05-13T15:22:41Z"
    }
  }
}

Request schema

No body schema

Response schema

#/definitions/spotify.trackResponseDoc

FieldTypeRequiredEnumBoundsExampleDescription
codeintegerNoCode is the HTTP status code or a custom code used to indicate the result of the request @example 200
dataspotify.TrackResponseNo
data.albumspotify.SearchResultSummaryNo
data.album.descriptionstringNoThe official podcast of comedian Joe Rogan.
data.album.externalUrlstringNohttps://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk
data.album.imageUrlstringNohttps://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b
data.album.imagesarrayNo
data.album.images[].heightintegerNo640
data.album.images[].urlstringNohttps://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0
data.album.images[].widthintegerNo640
data.album.publisherstringNoJoe Rogan
data.album.subtitlestringNoJoe Rogan
data.album.titlestringNoThe Joe Rogan Experience
data.album.typestringNoPodcast
data.album.uristringNospotify:show:4rOoJ6Egrf8K2IrywzwOMk
data.artistsarrayNo
data.artists[].descriptionstringNoThe official podcast of comedian Joe Rogan.
data.artists[].externalUrlstringNohttps://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk
data.artists[].imageUrlstringNohttps://i.scdn.co/image/ab67656300005f1f54e6837957803d762a3f4d2b
data.artists[].imagesarrayNo
data.artists[].images[].heightintegerNo640
data.artists[].images[].urlstringNohttps://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0
data.artists[].images[].widthintegerNo640
data.artists[].publisherstringNoJoe Rogan
data.artists[].subtitlestringNoJoe Rogan
data.artists[].titlestringNoThe Joe Rogan Experience
data.artists[].typestringNoPodcast
data.artists[].uristringNospotify:show:4rOoJ6Egrf8K2IrywzwOMk
data.discNumberintegerNo1
data.durationMsintegerNo234083
data.externalUrlstringNohttps://open.spotify.com/track/4vGg44GdCw3X8i8r01XJH0
data.idstringNo4vGg44GdCw3X8i8r01XJH0
data.imageUrlstringNohttps://i.scdn.co/image/ab67616d0000b273f377730d2a9c2e432139ac79
data.imagesarrayNo
data.images[].heightintegerNo640
data.images[].urlstringNohttps://i.scdn.co/image/ab6765630000ba8ab0484f8ee2933eceab32bac0
data.images[].widthintegerNo640
data.isExplicitbooleanNofalse
data.isPlayablebooleanNotrue
data.metaspotify.TrackMetaNo
data.meta.appVersionstringNo1.2.90.403.gf901f20f
data.meta.fetchedAtstringNo2026-05-13T20:41:10Z
data.meta.operationNamestringNogetTrack
data.namestringNoExample Track
data.playabilityReasonstringNoPLAYABLE
data.playcountstringNo13129249
data.previewAudioUrlstringNohttps://p.scdn.co/mp3-preview/example
data.previewAudioUrlsarrayNohttps://p.scdn.co/mp3-preview/example
data.shareUrlstringNohttps://open.spotify.com/track/4vGg44GdCw3X8i8r01XJH0
data.trackNumberintegerNo7
data.typestringNoTrack
data.unplayabilityReasonsarrayNonot_available_in_region
data.uristringNospotify:track:4vGg44GdCw3X8i8r01XJH0
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/track?uri=spotify%3Atrack%3A4vGg44GdCw3X8i8r01XJH0&id=4vGg44GdCw3X8i8r01XJH0" \
  -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