Scraper API
Spotifyspotify.trackAvailable
Spotify track
The track: its artists, release date, length, explicit mark, audio preview and cover image.
Give it a track's Spotify id, or its address.
1 unit a run, for runs that return data. Runs that fail cost nothing. How units work
- Counted
- 1 unit a run
- Inputs
- 2
- Record
- 12 fields
- A run takes
- up to 5 minutes
- Records kept
- 7 days
- Measured
- its success, on the status page
POST/v1/scrapers/spotify.track/runs
sent, and answered
a record of the run12 fields
ok1 unit a run
A record this scraper returned for this input. The first 9 of its 12 fields are set down here; the whole record is below.

What it is used for
- Fill in a track record
- Title, artists, release date, length, explicit mark and cover for a track, keyed by its Spotify id and URI.
- Check a track can be played
playablesays whether Spotify will play a track, before you link to it from a page, a campaign or a newsletter.- Add a preview to a page
preview_urlis the address of a 30-second sample of the track, where the page gives one, with the cover beside it.
What you send
A track's Spotify id, or its address. These are its 2 inputs, as its schema has them.
idstring One of the two- The track's Spotify id: the 22 characters after /track/ in its address, e.g. 4cOdK2wGLETKBW3PvgPWqT.
urlstring One of the two- The track's address, e.g. https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT, or its URI, spotify:track:4cOdK2wGLETKBW3PvgPWqT.
A request, ready to send
It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/spotify.track/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"id":"4cOdK2wGLETKBW3PvgPWqT"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("spotify.track", {"id": "4cOdK2wGLETKBW3PvgPWqT"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("spotify.track", { id: "4cOdK2wGLETKBW3PvgPWqT" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "spotify.track", map[string]any{"id": "4cOdK2wGLETKBW3PvgPWqT"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("spotify.track", Map.of("id", "4cOdK2wGLETKBW3PvgPWqT"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run spotify.track --input id=4cOdK2wGLETKBW3PvgPWqTInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
What comes back
The track: its artists, release date, length, explicit mark, audio preview and cover image. A record has 12 fields. One we could not read is null, never an empty string or a zero.
{
"id": "4cOdK2wGLETKBW3PvgPWqT",
"uri": "spotify:track:4cOdK2wGLETKBW3PvgPWqT",
"url": "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT",
"name": "Never Gonna Give You Up",
"artists": [
{
"name": "Rick Astley",
"id": "0gxyHStUsqpMadRV0Di1Qt",
"url": "https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt"
}
],
"release_date": "1987-11-12",
"duration_ms": 213573,
"explicit": false,
"playable": true,
"preview_url": "https://p.scdn.co/mp3-preview/40a780b231e5ed130483bec7917b6c9a4f8a4708",
"image": "https://image-cdn-ak.spotifycdn.com/image/ab67616d0000b273baf89eb11ec7c657805d2da0",
"fetched_at": "2026-11-19T18:07:41.296672Z"
}The scraper returned this record for the input above, reading a saved copy of the page, not the live site.
The fields of a record
idstring- The track's Spotify id.
uristring- The track's Spotify URI, e.g. spotify:track:4cOdK2wGLETKBW3PvgPWqT.
urlstring- The track's address on Spotify.
namestring- The track's title.
artistslist of objects- The track's artists, in the order shown.Each holds
name,id,url. release_datestring or null- The day the track was released, as YYYY-MM-DD.
duration_msinteger or null- The track's length in milliseconds.
explicitboolean or null- Spotify marks the track as explicit.
playableboolean or null- Whether Spotify says the track can be played.
preview_urlstring or null- The address of the 30-second audio preview, when the page gives one.
imagestring or null- The address of the cover image (the largest the page gives).
fetched_atdatetime- When the page was read, in UTC.
Units and limits
- Counted per request
- Billed per request: a run that returns data costs 1 unit, however many records it returns.
- A miss costs nothing
- A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
- What bounds a run
- A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.
What it does not do
- Play counts and popularity are not on the page that is read, and are not returned.
Questions
What does Spotify track return?
The track: its artists, release date, length, explicit mark, audio preview and cover image. A record has 12 fields, among them id, uri, url, name, artists and release_date. A value that could not be read is null, never an empty string or a zero.
What do I send?
A track's Spotify id, or its address. Of id and url, send one of the two.
How is it counted?
Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.
What does it not do?
Play counts and popularity are not on the page that is read, and are not returned.
How long are the records kept, and in what format do they come?
Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.
Can an AI assistant call it?
Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id spotify.track and the same input. It costs what the same API call costs.
Spotify
Tracks, albums, artists and public playlists on Spotify, as a visitor who is not signed in sees them.
Spotify album
spotify.albumAn album's Spotify id, or its address. The album with its tracks in order: title, artists, length, explicit mark and audio preview of each, and the cover image.
Spotify artist
spotify.artistAn artist's Spotify id, or their address. The artist with their top tracks: title, length, explicit mark and audio preview of each, and the artist's picture.
Spotify playlist
spotify.playlistA public playlist's Spotify id, or its address. The playlist with its tracks in order: title, artists, length, explicit mark and audio preview of each, the owner's name as shown and the cover image.
- Industry
- News, music and books
- Where
- Worldwide
Run it on an input of your own.
Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.