How to Use Spotify playlist tracks in VS Code
Fetch public Spotify playlist metadata and up to 50 tracks per page, with artists, albums, durations, and available play counts. Use it to inspect a known playlist or compare its track list over time; follow pagination for longer playlists.
Prompts to try with Spotify playlist tracks in VS Code
Copy an example into VS Code, or ask in your own words.
Use Spotify playlist tracks for All Out 80s, https://open.spotify.com/playlist/37i9dQZF1DX4UtSsGT1Sbe, and add a command to this project that exports every returned track's title, artists, album, and identifier.
Use Spotify playlist tracks for https://open.spotify.com/playlist/37i9dQZF1DX4UtSsGT1Sbe and add a report that sums track durations and shows the ten longest recordings after fetching every page.
Use Spotify playlist tracks for https://open.spotify.com/playlist/37i9dQZF1DX4UtSsGT1Sbe and update this project's playlist report to count appearances by credited artist, counting collaborations under each credited artist.
Use Spotify playlist tracks for https://open.spotify.com/playlist/37i9dQZF1DX4UtSsGT1Sbe and compare the results with the playlist snapshot already in this repository. Report added and removed track IDs.
Use Spotify playlist tracks for https://open.spotify.com/playlist/37i9dQZF1DX4UtSsGT1Sbe and add a duplicate review to this project that separates repeated track IDs from repeated artist-title pairs.
How to set up Spotify playlist tracks in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Spotify playlist tracks
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "scrapecreators", "model": "scrapecreators/spotify-playlist", "input": { "id": "37i9dQZF1DX4UtSsGT1Sbe" } }'
Then paste one of the prompts above: VS Code finds Spotify playlist tracks on Spiral, shows the price and runs it.
Spotify playlist tracks providers and prices
Spiral runs Spotify playlist tracks through ScrapeCreators. Open a card for today's price, with every fee included.
What can you do with Spotify playlist tracks in VS Code?
Build a playlist comparison report that identifies shared recordings and artist appearances across specified Spotify editorial playlists. A coding agent can add pagination and duration calculations to the project using returned track identifiers and metadata.
Check an artist's playlist placement
Look for a public recording artist's tracks in a specified editorial playlist and report the matching titles, albums, and Spotify identifiers.
Compare playlist editions
Compare two permitted observations of an editorial playlist to identify tracks added or removed. Read every page before calculating differences.
Measure artist representation
Count track appearances by credited artist in a public editorial playlist. Keep collaborations visible so the counting method is clear.
Find overlapping selections
Compare specified public editorial playlists by track identifier to find shared recordings and tracks unique to each selection.
Calculate playlist duration
Sum returned track durations to estimate the playlist's total running time, and list its shortest and longest tracks.
Audit repeated recordings
Find repeated track identifiers and repeated artist-title combinations in a public brand playlist. Keep exact duplicates separate from potentially different recordings.
Prepare a music editorial brief
Turn a public editorial playlist into a reference list of track titles, credited artists, albums, and available play counts for a music editor.
More on Spotify playlist tracks and VS Code
Overview
Spotify playlist tracks in other agents
Questions about Spotify playlist tracks in VS Code
Can VS Code use Spotify playlist tracks?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Spotify playlist tracks like any built-in tool.
How much does Spotify playlist tracks cost in VS Code?
Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need a ScrapeCreators account to use Spotify playlist tracks in VS Code?
No. Spiral runs Spotify playlist tracks on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.
How long does it take to set up Spotify playlist tracks in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Spotify playlist tracks runs?
Spotify playlist tracks runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
Does this cover private Spotify playlists?
The endpoint documents public playlists only. Spotify treats playlist privacy and profile visibility as separate controls, so absence from a profile alone does not establish that a playlist is private.
What does Spotify playlist data include?
The documented response includes playlist name, description, owner, artwork, followers, and total track count. Track rows include titles, artists, albums, durations in milliseconds, and play counts.
Will one request return the whole playlist?
Each request returns up to 50 tracks. For longer playlists, follow the returned continuation until it ends before treating the track list as complete.
How fresh is the playlist information?
ScrapeCreators says it fetches Spotify's latest available playlist information when you make a request. That describes retrieval freshness, rather than a fixed schedule for Spotify to update each playlist.
Does a response include past follower or play counts?
A current follower or play count is not a historical dataset. Comparing counts over time requires separate observations collected under the permissions that apply to your use.
Start using Spotify playlist tracks in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


