Spotify

Learn how to use Spotify with Composio

Overview

Enum

SPOTIFY

Description

Spotify is a digital music and podcast streaming service with millions of tracks, personalized playlists, and social sharing features

Authentication Details

client_id
stringRequired
client_secret
stringRequired
base_url
stringRequired
oauth_redirect_uri
string
scopes
string
access_token
string

Actions

Add one or more items to a user's playlist.

Action Parameters

playlist_id
stringRequired
position
integer
uris
array

Action Response

data
object
error
string
successful
boolean
Add an item to the end of the user's current playback queue. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_id
string
uri
stringRequired

Action Response

data
object
error
string
successful
boolean
Add one or more items to a user's playlist. <<DEPRECATED use add_items_to_playlist>>

Action Parameters

playlist_id
stringRequired
position
integer
uris
array

Action Response

data
object
error
string
successful
boolean
Change a playlist's name and public/private state. (the user must, of course, own the playlist.)

Action Parameters

collaborative
boolean
description
string
name
string
playlist_id
stringRequired
public
boolean

Action Response

data
object
error
string
successful
boolean
Check to see if the current user is following one or more artists or other spotify users.

Action Parameters

ids
stringRequired
type
stringRequired

Action Response

data
object
error
string
successful
boolean
Check to see if one or more spotify users are following a specified playlist.

Action Parameters

ids
stringRequired
playlist_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Check if one or more albums is already saved in the current spotify user's 'your music' library.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
Check if one or more audiobooks are already saved in the current spotify user's library.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
This spotify api endpoint (in beta) checks if episodes are saved in a user's library. feedback and issues can be shared in the developer forum.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
Check if one or more shows is already saved in the current spotify user's library.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
Check if one or more tracks is already saved in the current spotify user's 'your music' library.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
Create a playlist for a spotify user. (the playlist will be empty until you [add tracks](/documentation/web-api/reference/add-tracks-to-playlist).) each user is generally limited to a maximum of 11000 playlists.

Action Parameters

collaborative
boolean
description
string
name
stringRequired
public
boolean
user_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Add the current user as a follower of one or more artists or other spotify users.

Action Parameters

ids
arrayRequired
type
stringRequired

Action Response

data
object
error
string
successful
boolean
Add the current user as a follower of a playlist.

Action Parameters

playlist_id
stringRequired
public
boolean

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for a single audiobook chapter. chapters are only available within the us, uk, canada, ireland, new zealand and australia markets.

Action Parameters

id
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for a single album.

Action Parameters

id
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about an album’s tracks. optional parameters can be used to limit the number of tracks returned.

Action Parameters

id
stringRequired
limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get a list of the playlists owned or followed by the current spotify user. <<DEPRECATED use get_current_user_s_playlists>>

Action Parameters

limit
integerDefaults to 20
offset
integer

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for a single artist identified by their unique spotify id. <<DEPRECATED use get_artist>>

Action Parameters

id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about an artist's albums. <<DEPRECATED use get_artist_s_albums>>

Action Parameters

id
stringRequired
include_groups
string
limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about an artist's top tracks by country. <<DEPRECATED use get_artist_s_top_tracks>>

Action Parameters

id
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for a single audiobook. audiobooks are only available within the us, uk, canada, ireland, new zealand and australia markets.

Action Parameters

id
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for a single artist identified by their unique spotify id.

Action Parameters

id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about an artist's albums.

Action Parameters

id
stringRequired
include_groups
string
limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about an artist's top tracks by country.

Action Parameters

id
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about an show’s episodes. optional parameters can be used to limit the number of episodes returned. <<DEPRECATED use get_show_episodes>>

Action Parameters

id
stringRequired
limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about an audiobook's chapters. audiobooks are only available within the us, uk, canada, ireland, new zealand and australia markets.

Action Parameters

id
stringRequired
limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get information about a user’s available spotify connect devices. some device models are not supported and will not be listed in the api response. <<DEPRECATED use get_available_devices>>

Action Parameters

Action Response

data
object
error
string
successful
boolean
Get information about a user’s available spotify connect devices. some device models are not supported and will not be listed in the api response.

Action Parameters

Action Response

data
object
error
string
successful
boolean
Retrieve a list of available genres seed parameter values for [recommendations](/documentation/web-api/reference/get-recommendations).

Action Parameters

Action Response

data
object
error
string
successful
boolean
Get the list of markets where spotify is available.

Action Parameters

Action Response

data
object
error
string
successful
boolean
Get a list of spotify playlists tagged with a particular category.

Action Parameters

category_id
stringRequired
limit
integerDefaults to 20
offset
integer

Action Response

data
object
error
string
successful
boolean
Get the object currently being played on the user's spotify account.

Action Parameters

additional_types
string
market
string

Action Response

data
object
error
string
successful
boolean
Get a list of the playlists owned or followed by the current spotify user.

Action Parameters

limit
integerDefaults to 20
offset
integer

Action Response

data
object
error
string
successful
boolean
Get detailed profile information about the current user (including the current user's username).

Action Parameters

Action Response

data
object
error
string
successful
boolean
Get detailed profile information about the current user (including the current user's username). <<DEPRECATED use get_current_user_s_profile>>

Action Parameters

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for a single episode identified by its unique spotify id.

Action Parameters

id
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get the current user's followed artists.

Action Parameters

after
string
limit
integerDefaults to 20
type
stringRequired

Action Response

data
object
error
string
successful
boolean
Get information about the user’s current playback state, including track or episode, progress, and active device. <<DEPRECATED use get_playback_state>>

Action Parameters

additional_types
string
market
string

Action Response

data
object
error
string
successful
boolean
Get a list of the playlists owned or followed by a spotify user. <<DEPRECATED use get_user_s_playlists>>

Action Parameters

limit
integerDefaults to 20
offset
integer
user_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get a list of new album releases featured in spotify (shown, for example, on a spotify player’s “browse” tab).

Action Parameters

limit
integerDefaults to 20
offset
integer

Action Response

data
object
error
string
successful
boolean
Get information about the user’s current playback state, including track or episode, progress, and active device.

Action Parameters

additional_types
string
market
string

Action Response

data
object
error
string
successful
boolean
Get a playlist owned by a spotify user.

Action Parameters

additional_types
string
fields
string
market
string
playlist_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get the current image associated with a specific playlist.

Action Parameters

playlist_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get full details of the items of a playlist owned by a spotify user.

Action Parameters

additional_types
string
fields
string
limit
integerDefaults to 20
market
string
offset
integer
playlist_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get the list of objects that make up the user's queue. <<DEPRECATED use get_the_user_s_queue>>

Action Parameters

Action Response

data
object
error
string
successful
boolean
Get tracks from the current user's recently played tracks. **note**: currently doesn't support podcast episodes. <<DEPRECATED use get_recently_played_tracks>>

Action Parameters

after
integer
before
integer
limit
integerDefaults to 20

Action Response

data
object
error
string
successful
boolean
Get tracks from the current user's recently played tracks. **note**: currently doesn't support podcast episodes.

Action Parameters

after
integer
before
integer
limit
integerDefaults to 20

Action Response

data
object
error
string
successful
boolean
Recommendations are based on seed entity data, matched with similar artists and tracks. if data is ample, a track list and pool size are returned. for new or obscure artists and tracks, data may be insufficient for recommendations.

Action Parameters

limit
integerDefaults to 20
market
string
max_acousticness
integer
max_danceability
integer
max_duration_ms
integer
max_energy
integer
max_instrumentalness
integer
max_key
integer
max_liveness
integer
max_loudness
integer
max_mode
integer
max_popularity
integer
max_speechiness
integer
max_tempo
integer
max_time_signature
integer
max_valence
integer
min_acousticness
integer
min_danceability
integer
min_duration_ms
integer
min_energy
integer
min_instrumentalness
integer
min_key
integer
min_liveness
integer
min_loudness
integer
min_mode
integer
min_popularity
integer
min_speechiness
integer
min_tempo
integer
min_time_signature
integer
min_valence
integer
seed_artists
string
seed_genres
string
seed_tracks
string
target_acousticness
integer
target_danceability
integer
target_duration_ms
integer
target_energy
integer
target_instrumentalness
integer
target_key
integer
target_liveness
integer
target_loudness
integer
target_mode
integer
target_popularity
integer
target_speechiness
integer
target_tempo
integer
target_time_signature
integer
target_valence
integer

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for multiple albums identified by their spotify ids.

Action Parameters

ids
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for several artists based on their spotify ids.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for several audiobooks identified by their spotify ids. audiobooks are only available within the us, uk, canada, ireland, new zealand and australia markets.

Action Parameters

ids
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get a list of categories used to tag items in spotify (on, for example, the spotify player’s “browse” tab).

Action Parameters

limit
integerDefaults to 20
locale
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for several audiobook chapters identified by their spotify ids. chapters are only available within the us, uk, canada, ireland, new zealand and australia markets.

Action Parameters

ids
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for several episodes based on their spotify ids.

Action Parameters

ids
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for several shows based on their spotify ids.

Action Parameters

ids
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for multiple tracks based on their spotify ids.

Action Parameters

ids
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get audio features for multiple tracks based on their spotify ids.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for a single show identified by its unique spotify id.

Action Parameters

id
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about an show’s episodes. optional parameters can be used to limit the number of episodes returned.

Action Parameters

id
stringRequired
limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get a single category used to tag items in spotify (on, for example, the spotify player’s “browse” tab).

Action Parameters

category_id
stringRequired
locale
string

Action Response

data
object
error
string
successful
boolean
Get the object currently being played on the user's spotify account. <<DEPRECATED use get_currently_playing_track>>

Action Parameters

additional_types
string
market
string

Action Response

data
object
error
string
successful
boolean
Get the list of objects that make up the user's queue.

Action Parameters

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information for a single track identified by its unique spotify id.

Action Parameters

id
stringRequired
market
string

Action Response

data
object
error
string
successful
boolean
Get a low-level audio analysis for a track in the spotify catalog. the audio analysis describes the track’s structure and musical content, including rhythm, pitch, and timbre.

Action Parameters

id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get audio feature information for a single track identified by its unique spotify id.

Action Parameters

id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get a list of the playlists owned or followed by a spotify user.

Action Parameters

limit
integerDefaults to 20
offset
integer
user_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get public profile information about a spotify user.

Action Parameters

user_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get public profile information about a spotify user. <<DEPRECATED use get_user_s_profile>>

Action Parameters

user_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Get a list of the albums saved in the current spotify user's 'your music' library.

Action Parameters

limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get a list of the audiobooks saved in the current spotify user's 'your music' library.

Action Parameters

limit
integerDefaults to 20
offset
integer

Action Response

data
object
error
string
successful
boolean
This api endpoint, currently in beta, allows retrieving episodes saved in a spotify user's library. changes may occur without notice. feedback and issues can be shared in spotify's developer forum.

Action Parameters

limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get a list of shows saved in the current spotify user's library. optional parameters can be used to limit the number of shows returned.

Action Parameters

limit
integerDefaults to 20
offset
integer

Action Response

data
object
error
string
successful
boolean
Get a list of the songs saved in the current spotify user's 'your music' library.

Action Parameters

limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get a list of the songs saved in the current spotify user's 'your music' library. <<DEPRECATED use get_user_s_saved_tracks>>

Action Parameters

limit
integerDefaults to 20
market
string
offset
integer

Action Response

data
object
error
string
successful
boolean
Get the current user's top artists based on calculated affinity.

Action Parameters

limit
integerDefaults to 20
offset
integer
time_range
stringDefaults to medium_term

Action Response

data
object
error
string
successful
boolean
Get the current user's top artists based on calculated affinity. <<DEPRECATED use get_user_s_top_artists>>

Action Parameters

limit
integerDefaults to 20
offset
integer
time_range
stringDefaults to medium_term

Action Response

data
object
error
string
successful
boolean
Get the current user's top tracks based on calculated affinity.

Action Parameters

limit
integerDefaults to 20
offset
integer
time_range
stringDefaults to medium_term

Action Response

data
object
error
string
successful
boolean
Get the current user's top tracks based on calculated affinity. <<DEPRECATED use get_user_s_top_tracks>>

Action Parameters

limit
integerDefaults to 20
offset
integer
time_range
stringDefaults to medium_term

Action Response

data
object
error
string
successful
boolean
Pause playback on the user's account. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_id
string

Action Response

data
object
error
string
successful
boolean
Remove one or more items from a user's playlist.

Action Parameters

playlist_id
stringRequired
snapshot_id
string
tracks
arrayRequired

Action Response

data
object
error
string
successful
boolean
Remove one or more albums from the current user's 'your music' library.

Action Parameters

ids
arrayRequired

Action Response

data
object
error
string
successful
boolean
Remove one or more audiobooks from the spotify user's library.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
This api endpoint, currently in beta, allows for the removal of episodes from a user's library and may change without notice. feedback and issues can be shared on the spotify developer forum.

Action Parameters

ids
arrayRequired

Action Response

data
object
error
string
successful
boolean
Delete one or more shows from current spotify user's library.

Action Parameters

ids
arrayRequired
market
string

Action Response

data
object
error
string
successful
boolean
Remove one or more tracks from the current user's 'your music' library.

Action Parameters

ids
arrayRequired

Action Response

data
object
error
string
successful
boolean
Save one or more albums to the current user's 'your music' library.

Action Parameters

ids
arrayRequired

Action Response

data
object
error
string
successful
boolean
Save one or more albums to the current user's 'your music' library. <<DEPRECATED use save_albums_for_current_user>>

Action Parameters

ids
arrayRequired

Action Response

data
object
error
string
successful
boolean
Save one or more audiobooks to the current spotify user's library.

Action Parameters

ids
stringRequired

Action Response

data
object
error
string
successful
boolean
This api endpoint, currently in beta, allows saving episodes to a user's library. users are encouraged to provide feedback or report issues in the spotify developer forum.

Action Parameters

ids
arrayRequired

Action Response

data
object
error
string
successful
boolean
Save one or more shows to current spotify user's library.

Action Parameters

ids
arrayRequired

Action Response

data
object
error
string
successful
boolean
Save one or more tracks to the current user's 'your music' library.

Action Parameters

ids
arrayRequired

Action Response

data
object
error
string
successful
boolean
Get spotify catalog information about albums, artists, playlists, tracks, shows, episodes or audiobooks that match a keyword string. audiobooks are only available within the us, uk, canada, ireland, new zealand and australia markets.

Action Parameters

include_external
string
limit
integerDefaults to 20
market
string
offset
integer
q
stringRequired
type
arrayRequired

Action Response

data
object
error
string
successful
boolean
Seeks to the given position in the user’s currently playing track. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_id
string
position_ms
integerRequired

Action Response

data
object
error
string
successful
boolean
Set the volume for the user’s current playback device. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_id
string
volume_percent
integerRequired

Action Response

data
object
error
string
successful
boolean
Set the repeat mode for the user's playback. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_id
string
state
stringRequired

Action Response

data
object
error
string
successful
boolean
Skips to next track in the user’s queue. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_id
string

Action Response

data
object
error
string
successful
boolean
Skips to previous track in the user’s queue. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_id
string

Action Response

data
object
error
string
successful
boolean
Skips to next track in the user’s queue. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints. <<DEPRECATED use skip_to_next>>

Action Parameters

device_id
string

Action Response

data
object
error
string
successful
boolean
Start a new context or resume current playback on the user's active device. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints. <<DEPRECATED use start_resume_playback>>

Action Parameters

context_uri
string
device_id
string
offset
object
position_ms
integer
uris
array

Action Response

data
object
error
string
successful
boolean
Start a new context or resume current playback on the user's active device. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

context_uri
string
device_id
string
offset
object
position_ms
integer
uris
array

Action Response

data
object
error
string
successful
boolean
Toggle shuffle on or off for user’s playback. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_id
string
state
booleanRequired

Action Response

data
object
error
string
successful
boolean
Transfer playback to a new device and optionally begin playback. this api only works for users who have spotify premium. the order of execution is not guaranteed when you use this api with other player api endpoints.

Action Parameters

device_ids
arrayRequired
play
boolean

Action Response

data
object
error
string
successful
boolean
Remove the current user as a follower of one or more artists or other spotify users.

Action Parameters

ids
arrayRequired
type
stringRequired

Action Response

data
object
error
string
successful
boolean
Remove the current user as a follower of a playlist.

Action Parameters

playlist_id
stringRequired

Action Response

data
object
error
string
successful
boolean
To modify a playlist, use rearrange (with `range start`, `insert before`, `range length`, `snapshot id`) or replace items (`uris` in body/query). replace overwrites items. operations can't combine in one request; they are exclusive but share an endpoint.

Action Parameters

insert_before
integer
playlist_id
stringRequired
range_length
integer
range_start
integer
snapshot_id
string
uris
array

Action Response

data
object
error
string
successful
boolean