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 the Spotify player. 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 player 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.
Get the Code
Right-click any song, album or playlist in the Spotify player and select “Copy Track Link” or “Copy Spotify URI”:
Paste the link or URI in the field below:
(For example, spotify:track:2TpxZ7JUBn3uw46aR7qd6V or http://open.spotify.com/track/2TpxZ7JUBn3uw46aR7qd6V.)
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.
Frequently Asked Questions about Spotify Play Button
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.
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