Back to all protocols

Spotify

Open songs, albums, playlists, artists, and podcasts in the Spotify app.

windows macos linux ios android

Base Syntax

spotify:[type]:[id]

Commands

track:[id]

Play a specific track

Test

Parameters

id string
Required

Spotify Track ID (22 characters)

Example:

3n3Ppam7vgaVa1iaRUc9Lp

Full Example

spotify:track:3n3Ppam7vgaVa1iaRUc9Lp

album:[id]

Open an album

Test

Parameters

id string
Required

Spotify Album ID

Example:

6QaVfG1pHYl1z15ZxkvVDW

Full Example

spotify:album:6QaVfG1pHYl1z15ZxkvVDW

playlist:[id]

Open a playlist

Test

Parameters

id string
Required

Spotify Playlist ID

Example:

37i9dQZF1DXcBWIGoYBM5M

Full Example

spotify:playlist:37i9dQZF1DXcBWIGoYBM5M

artist:[id]

View an artist's page

Test

Parameters

id string
Required

Spotify Artist ID

Example:

0TnOYISbd1XYRBk9myaseg

Full Example

spotify:artist:0TnOYISbd1XYRBk9myaseg

user:[username]:playlist:[id]

Open a user's playlist (legacy format)

Test

Parameters

username string
Required

Spotify username

Example:

spotify
id string
Required

Playlist ID

Example:

37i9dQZF1DXcBWIGoYBM5M

Full Example

spotify:user:spotify:playlist:37i9dQZF1DXcBWIGoYBM5M