Skip to content

Spotify

Spotify is a popular music streaming service that offers a vast library of songs, podcasts, and playlists for users to enjoy.

Type: spotify/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeControl TypeDescriptionRequired
clientIdClient IdSTRINGTEXTtrue
clientSecretClient SecretSTRINGTEXTtrue

Actions

Play/Resume Playback

Name: startResumePlayback

Start or resume current playback on an active device.

Properties

NameLabelTypeControl TypeDescriptionRequired
deviceIdDevice IDSTRINGTEXTfalse
__itemItemOBJECT
Properties {STRING(context_uri), [STRING](uris), INTEGER(position_ms)}
OBJECT_BUILDERnull

JSON Example

{
"label" : "Play/Resume Playback",
"name" : "startResumePlayback",
"parameters" : {
"deviceId" : "",
"__item" : {
"context_uri" : "",
"uris" : [ "" ],
"position_ms" : 1
}
},
"type" : "spotify/v1/startResumePlayback"
}

Add Items to a Playlist

Name: addItemsToPlaylist

Adds one or more items to your playlist.

Properties

NameLabelTypeControl TypeDescriptionRequired
playlist_idPlaylist IDSTRINGSELECTtrue
urisTracksARRAY
Items [STRING]
ARRAY_BUILDERtrue
__itemItemOBJECT
Properties {INTEGER(position)}
OBJECT_BUILDERnull

Output

Type: OBJECT

Properties

NameTypeControl Type
bodyOBJECT
Properties {STRING(snapshot_id)}
OBJECT_BUILDER

JSON Example

{
"label" : "Add Items to a Playlist",
"name" : "addItemsToPlaylist",
"parameters" : {
"playlist_id" : "",
"uris" : [ "" ],
"__item" : {
"position" : 1
}
},
"type" : "spotify/v1/addItemsToPlaylist"
}

Create Playlist

Name: createPlaylist

Creates a new playlist

Properties

NameLabelTypeControl TypeDescriptionRequired
nameNameSTRINGTEXTThe name for the new playlist.true
descriptionDescriptionSTRINGTEXTThe description for the new playlist.false
publicPublicBOOLEAN
Options true, false
SELECTThe public status for the new playlist.true
collaborativeCollaborativeBOOLEAN
Options true, false
SELECTIf the playlist is collaborative or not.true

Output

Type: OBJECT

Properties

NameTypeControl Type
collaborativeBOOLEAN
Options true, false
SELECT
descriptionSTRINGTEXT
external_urlsOBJECT
Properties {STRING(spotify)}
OBJECT_BUILDER
hrefSTRINGTEXT
idSTRINGTEXT
nameSTRINGTEXT
typeSTRINGTEXT
uriSTRINGTEXT
ownerOBJECT
Properties {STRING(href), STRING(id), STRING(type), STRING(uri)}
OBJECT_BUILDER
publicBOOLEAN
Options true, false
SELECT

JSON Example

{
"label" : "Create Playlist",
"name" : "createPlaylist",
"parameters" : {
"name" : "",
"description" : "",
"public" : false,
"collaborative" : false
},
"type" : "spotify/v1/createPlaylist"
}