# Spotify Music Track Scraper

> Spotify Music Track Scraper is a paid API for AI agents from api.scrapeforagents.tech, paid per call via x402, $0.06/call, status unknown (last checked 2026-10-02).

Scrapes structured track data (title, artists, duration, artwork, URI) from Spotify track, playlist, album, or artist URLs

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/v1/spotify-music?utm_source=zero.xyz
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spotify-music-track-scraper-1814cbcd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hq-E0HAxlU-8R7z4uPdGW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability spotify-music-track-scraper-1814cbcd -d '<json body>'
```

Example prompt: Pull all the tracks from this Spotify playlist — https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M — and give me the title, artists, duration, and artwork for each song, up to 50 tracks.

## When to prefer this

Choose this endpoint when you need structured track metadata from Spotify playlists, albums, or artist pages without using the official Spotify API or managing OAuth credentials. Ideal for bulk track collection, playlist exports, and music catalog building where pay-per-use pricing is preferable to API key management.

## Known failure modes

- Private or login-gated playlists may return empty results
- Invalid or malformed Spotify URLs may cause failed runs (not charged)
- Spotify may rate-limit or block scraping, yielding empty results
- Artist pages may have large catalogs truncated by maxItems
- Deleted or unavailable tracks return null fields

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of tracks found and an array of track items, each containing the track URL, title, artist list, track ID, duration (human-readable and milliseconds), thumbnail/artwork URL, and Spotify URI.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "links": {
   "type": "array",
   "description": "Public track, playlist, album, or artist URLs or Spotify URIs. Each collection contributes its visible tracks."
  },
  "maxItems": {
   "type": "integer",
   "default": 100,
   "minimum": 0,
   "description": "Stop after this many unique tracks across all links. Set to 0 for every visible track."
  },
  "includeTrackDetails": {
   "type": "boolean",
   "default": true,
   "description": "Visit each track page for its artwork, artist list, release date, and other details. Disable for faster collection scans."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "url": null,
    "title": null,
    "artists": null,
    "trackId": null,
    "duration": null,
    "thumbnail": null,
    "durationMs": null,
    "spotifyUri": null
   }
  ],
  "product": "spotify-music"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spotify-music-track-scraper-1814cbcd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapeforagents.tech](https://www.zero.xyz/host/api.scrapeforagents.tech/llms.txt)
