Skip to content
For LLMsView as Markdown·

Spotify

Access music catalog, manage playlists, and control playback via the Spotify Web API.

DetailValue
CategoryMedia
Base URLhttps://api.spotify.com/v1
AuthenticationOAuth2
Endpoints6
Connector keyspotify

Using Spotify in a workflow

  1. Go to Connections and click New Connection.
  2. Pick Spotify from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
GET /meGet current user profile
GET /me/playlistsGet current user playlists
GET /playlists/{playlist_id}Get a playlist
GET /searchSearch for tracks, artists, albums
GET /tracks/{id}Get a track
GET /artists/{id}Get an artist

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /me

Get current user profile

DetailValue
Operation IDmedia.getCurrentUser
MethodGET
Path/me

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Spotify connection from the Connection dropdown.
  3. In the Operation dropdown, select media.getCurrentUser.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Spotify API reference.

GET /me/playlists

Get current user playlists

DetailValue
Operation IDmedia.listPlaylists
MethodGET
Path/me/playlists

Parameters

NameLocationTypeRequired
limitqueryintegerNo
offsetqueryintegerNo

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Spotify connection from the Connection dropdown.
  3. In the Operation dropdown, select media.listPlaylists.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Spotify API reference.

GET /playlists/{playlist_id}

Get a playlist

DetailValue
Operation IDmedia.getPlaylist
MethodGET
Path/playlists/{playlist_id}

Parameters

NameLocationTypeRequired
playlist_idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Spotify connection from the Connection dropdown.
  3. In the Operation dropdown, select media.getPlaylist.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Spotify API reference.

Search for tracks, artists, albums

DetailValue
Operation IDmedia.search
MethodGET
Path/search

Parameters

NameLocationTypeRequired
qquerystringYes
typequerystringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Spotify connection from the Connection dropdown.
  3. In the Operation dropdown, select media.search.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Spotify API reference.

GET /tracks/{id}

Get a track

DetailValue
Operation IDmedia.getTrack
MethodGET
Path/tracks/{id}

Parameters

NameLocationTypeRequired
idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Spotify connection from the Connection dropdown.
  3. In the Operation dropdown, select media.getTrack.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Spotify API reference.

GET /artists/{id}

Get an artist

DetailValue
Operation IDmedia.getArtist
MethodGET
Path/artists/{id}

Parameters

NameLocationTypeRequired
idpathstringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your Spotify connection from the Connection dropdown.
  3. In the Operation dropdown, select media.getArtist.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Spotify API reference.