Spotify API guide

spotify.com

Find tracks, manage playlists, and control playback. Playback controls require Spotify Premium.

Actions and inputs

search

Return matching tracks without starting playback.

Inputs Track search terms. Optional result limit

status

Return the current playback status.

play

Resume playback or play a matching track on your active Spotify device.

Inputs Optional track search terms

pause

Pause current playback.

queue

Add a matching track to the playback queue.

Inputs Track search terms

Playlists

Create

Start an empty playlist with the name you choose.

Inputs Playlist name

Read

Show the details of a playlist.

Inputs Playlist ID

Update

Rename a playlist you own or switch it between public and private.

Inputs Playlist ID, new name or visibility

Delete

Remove the playlist from your library.

Inputs Spotify playlist URI