Spiral gives your agent every tool with one account. Browse the tools →

Codex · Social Media

How to Use Spotify playlist tracks in Codex

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 Codex

Copy an example into Codex, 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.

Spotify playlist tracksCodex
Try asking
  • 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 Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. 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: Codex 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.

ScrapeCreatorsSocial Media
Spotify · Playlist
scrapecreators/spotify-playlist

What can you do with Spotify playlist tracks in Codex?

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.

Questions about Spotify playlist tracks in Codex

Can Codex use Spotify playlist tracks?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Spotify playlist tracks like any built-in tool.

How much does Spotify playlist tracks cost in Codex?

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 Codex plan is separate.

Do I need a ScrapeCreators account to use Spotify playlist tracks in Codex?

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 Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while Spotify playlist tracks runs?

Spotify playlist tracks runs in the background. Codex 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.

Get started

Start using Spotify playlist tracks in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options