Spotify Play Button

Spotify Play Buttons can be added to any webpage that supports <iframe> tags. You can create Play Buttons for albums, tracks, artists, or playlists.

When a logged-in Spotify user clicks the button, the music will start playing in a Spotify client. (Which client depends on both the platform, and on the user account settings at https://play.spotify.com/settings.) If the user is not logged into their Spotify account, they will be prompted to do so. If the user does not have a Spotify client they will be sent to the Spotify sign-up page or prompted to download a suitable client, in a new window.

Follow the steps below and you’ll have your site singing in seconds.

You can choose different button themes and sizes, and you can link to any song or album in our music catalog, or to any playlist that you have created. (Note that we do have a few Terms of Use that we need you to comply with.)

Get the Code

Right click any song, album or playlist in Spotify and select “Copy HTTP Link” (or “Copy Album Link”, “Copy Track Link”, etc.):

Paste the link in the field below:

Copy the code below and paste it on your website.

Preview

Options

Size:

Large (default) xpixels

Compact (default) xpixels

Theme*:

Dark (default) Light

View*:

List (default) Cover Art

* Custom themes and views are only available for Spotify URIs referring to an album, an artist or a playlist.

Multiple tracks player

You can create a playable list of tracks without using a Spotify playlist by specifying a title and a comma-separated list of track IDs. The track ID is the 22 character string found after “spotify:track:” of each Spotify URI.

Example

Frequently Asked Questions about Spotify Play Button

Controlling through Javascript

Is there a JS SDK for the player? Can I send play/pause commands using Javascript?

The Play button doesn’t have any observable events, nor does it listen for any. Playback can only be triggered by the user clicking the button.
We’re certainly looking at creating a JS SDK; it’s a bigger project and right now we’re focussing on quickly releasing APIs to open up the general Spotify ecosystem (catalogue, playlists, etc).
None of these requests are falling on deaf ears, and we’re working hard to bring out as much functionality as we can.

Playlists

The playlist rendered is not updated

Any changes you make to a playlist will be synced to your Spotify Play Button within minutes (max 10 mins).

The widget doesn’t render all the tracks within a playlist

We only show the first 200 tracks in any playlist.
A user’s playlist of starred tracks is currently not available.

I can’t find out how to sort the tracks within a playlist

The displayed order is the one in which they are arranged in the playlist for regular playlists, and the order in which they were added in the case of a user’s starred playlist. If you want to change the order in your regular playlists, open (for example) the Spotify Desktop Player and drag-and-drop your tracks into the order you require. Alternatively, you can programmatically reorder tracks through our

Terms of Use

To protect users, content providers, the Spotify trademarks, our software and the Spotify service we therefore require you to comply with our Spotify Widget Terms of Use.