Skip to main content
Every spotify.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Albums

get

albums.get Get info about an album Risk: read
Input Output

getNewReleases

albums.getNewReleases Get new album releases Risk: read
Input Output

getTracks

albums.getTracks Get tracks from an album Risk: read
Input Output

albums.search Search for albums Risk: read
Input Output

Artists

get

artists.get Get info about an artist Risk: read
Input Output

getAlbums

artists.getAlbums Get albums by an artist Risk: read
Input Output

getRelatedArtists

artists.getRelatedArtists Get artists related to an artist Risk: read
Input Output

getTopTracks

artists.getTopTracks Get top tracks for an artist Risk: read
Input Output

search

artists.search Search for artists Risk: read
Input Output

Library

getLikedTracks

library.getLikedTracks Get the current user’s liked tracks Risk: read
Input Output

My Data

getFollowedArtists

myData.getFollowedArtists Get artists followed by the current user Risk: read
Input Output

Player

addToQueue

player.addToQueue Add a track to the playback queue Risk: write
Input Output: empty object

getCurrentlyPlaying

player.getCurrentlyPlaying Get the currently playing track Risk: read
Input Output

getRecentlyPlayed

player.getRecentlyPlayed Get recently played tracks Risk: read
Input Output

pause

player.pause Pause playback Risk: write
Input Output: empty object

resume

player.resume Resume playback Risk: write
Input Output: empty object

setVolume

player.setVolume Set the playback volume Risk: write
Input Output: empty object

skipToNext

player.skipToNext Skip to the next track Risk: write
Input Output: empty object

skipToPrevious

player.skipToPrevious Skip to the previous track Risk: write
Input Output: empty object

startPlayback

player.startPlayback Start playback of specified content Risk: write
Input
Output: empty object

Playlists

addItem

playlists.addItem Add a track to a playlist Risk: write
Input Output

create

playlists.create Create a new playlist Risk: write
Input Output

get

playlists.get Get info about a playlist Risk: read
Input Output

getTracks

playlists.getTracks Get tracks in a playlist Risk: read
Input Output

getUserPlaylists

playlists.getUserPlaylists Get the current user’s playlists Risk: read
Input Output

removeItem

playlists.removeItem Remove a track from a playlist Risk: write
Input
Output

search

playlists.search Search for playlists Risk: read
Input Output

Tracks

get

tracks.get Get info about a track Risk: read
Input Output

getAudioFeatures

tracks.getAudioFeatures Get audio features for a track Risk: read
Input Output

search

tracks.search Search for tracks Risk: read
Input Output