Spotify Playlists

Spotify playlists can be added to a SAM quickly and easily by grabbing the embed link right from the playlist.

Click Share on a playlist

Spotify playlists can be shared in two ways:

  1. Copy link to artist
  2. Copy embed code

For a Spotify Playlist to properly render in a SAM, be sure to use the Share/Copy Embed code:

The embed code needs to be edited before inserting it into the URL field of the iFrame Block. For example, the following is the embed code for The Beatles:

<iframe src="https://open.spotify.com/embed/artist/3WrFJ7ztbogyGnTHbHJFl2" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>

To use in a SAM, just copy the link inside the src="" section:

So for this example, this is what is needed:

https://open.spotify.com/embed/artist/3WrFJ7ztbogyGnTHbHJFl2

Paste that URL into an iFrame block in your desired SAM, and you’re done!

Results

The playlist should now be available in the SAM with each of the songs playable. With the SAM Block structure, other items can be added to the SAM, such as images, video, or text. This SAM has both an image block and an iFrame block with a Spotify Playlist: