Skip to content

Track

GET /v1/spotify/track

Retrieves detailed information about a Spotify track by its id or URL, including track metadata, artists, album info, duration, playability, and sharing details.

Authentication

All requests require the x-api-key header. Get your key at scrapecreators.com.

Query Parameters

NameTypeRequiredDescriptionExample
idstringnoSpotify track id. If you'd prefer to use the URL instead, you can use the url parameter instead.1ITJflybJsfarsUtiBvkfK
urlstringnoSpotify song URL. If you'd prefer to use the id instead, you can use the id parameter instead.https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK

Example Request

curl

bash
curl 'https://api.scrapecreators.com/v1/spotify/track' \
  -H 'x-api-key: $SCRAPECREATORS_API_KEY'

Node / TypeScript

js
const params = new URLSearchParams({  });
const res = await fetch(`https://api.scrapecreators.com/v1/spotify/track?${params}`, {
  headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);

Python

python
import os, requests
r = requests.get(
    'https://api.scrapecreators.com/v1/spotify/track',
    headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
    params={},
)
r.raise_for_status()
print(r.json())

CLI

bash
scrapecreators spotify track --help

Example Response

json
{
  "success": true,
  "credits_remaining": 49997935404,
  "__typename": "Track",
  "associationsV3": {
    "audioAssociations": [],
    "videoAssociations": {
      "totalCount": 0
    }
  },
  "contentRating": {
    "label": "EXPLICIT"
  },
  "duration": {
    "totalMilliseconds": 186112
  },
  "id": "1ITJflybJsfarsUtiBvkfK",
  "mediaType": "AUDIO",
  "name": "Shoulda Never (feat. USHER)",
  "playability": {
    "playable": true,
    "reason": "PLAYABLE"
  },
  "playcount": 7190090,
  "saved": false,
  "sharingInfo": {
    "shareId": "uSMzDZBBRDOHdFcn87thNw",
    "shareUrl": "https://open.spotify.com/track/1ITJflybJsfarsUtiBvkfK?si=uSMzDZBBRDOHdFcn87thNw"
  },
  "trackNumber": 8,
  "uri": "spotify:track:1ITJflybJsfarsUtiBvkfK",
  "albumOfTrack": {
    "copyright": [
      {
        "text": "© 2026 Atlantic Records Group LLC",
        "type": "C"
      }
    ],
    "courtesyLine": "",
    "id": "2xkYTmqjear3lSGydIn7wh",
    "date": {
      "isoString": "2026-04-24T00:00:00Z",
      "precision": "DAY",
      "year": 2026
    },
    "name": "Kehlani",
    "playability": {
      "playable": true
    },
    "sharingInfo": {
      "shareId": "tgjmwiVTRmaaQGK0sKdcJg",
      "shareUrl": "https://open.spotify.com/album/2xkYTmqjear3lSGydIn7wh?si=tgjmwiVTRmaaQGK0sKdcJg"
    },
    "tracks": [
      {
        "track": {
          "trackNumber": 1,
          "uri": "spotify:track:4PDLyPnlDeu7PRzAUyyUO3"
        }
      }
    ],
    "type": "ALBUM",
    "uri": "spotify:album:2xkYTmqjear3lSGydIn7wh",
    "coverArt": {
      "extractedColors": {
        "colorRaw": {
          "hex": "#502020"
        }
      },
      "sources": [
        {
          "height": 300,
          "url": "https://i.scdn.co/image/ab67616d00001e02d4ffe3d4cddee37b9fd6ffcd",
          "width": 300
        }
      ]
    }
  },
  "firstArtist": [
    {
      "discography": {
        "albums": [
          {
            "date": {
              "isoString": "2026-04-24T00:00:00Z",
              "precision": "DAY",
              "year": 2026
            },
            "name": "Kehlani",
            "playability": {
              "playable": true
            },
            "sharingInfo": {
              "shareId": "o2YeInVoTnSojn2WeDO3JQ",
              "shareUrl": "https://open.spotify.com/album/2xkYTmqjear3lSGydIn7wh?si=o2YeInVoTnSojn2WeDO3JQ"
            },
            "tracks": [
              {
                "track": {
                  "trackNumber": 1,
                  "uri": "spotify:track:4PDLyPnlDeu7PRzAUyyUO3"
                }
              }
            ],
            "type": "ALBUM",
            "uri": "spotify:album:2xkYTmqjear3lSGydIn7wh",
            "coverArt": {
              "extractedColors": {
                "colorRaw": {
                  "hex": "#502020"
                }
              },
              "sources": [
                {
                  "height": 300,
                  "url": "https://i.scdn.co/image/ab67616d00001e02d4ffe3d4cddee37b9fd6ffcd",
         
... (truncated)

Credits

Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.

Errors

StatusMeaningAction
200Success.Use the JSON payload.
400Invalid or missing parameter.Verify required parameters and value format.
401Missing or invalid x-api-key.Pass a valid API key in the header.
402Out of credits.Top up at scrapecreators.com or wait for plan reset.
404Resource not found or private.Confirm the handle, URL, or id and that the resource is public.
429Rate limited.Backoff and retry with exponential delay.
500Server error or upstream platform failure.Retry with backoff; report persistent errors to support.