DEV Community

Dries Deboosere
Dries Deboosere

Posted on • Originally published at driesdeboosere.dev on

1 1

How to add a Spotify playlist to your site

Adding a Spotify playlist to your website is realy easy. It's just getting some HTML code from Spotify that you can paste in your own HTML.

Open Spotify

Open the Spotify application and go to your playlist that you want to share on your website.

Get the HTML

  1. Click on the three dots
  2. Go to Share and then Embed playlist

Embed playlist

Now you see the following screen: Embed playlist

This is how your playlist is gonna look like when you paste the html code in your website.

Now click on the Copy button to copy the code. This should look like something to this:

<iframe src="https://open.spotify.com/embed/playlist/5aXXutTCAQMAXHV7juYBR0" width="100%" height="380" frameBorder="0" allowtransparency="true" allow="encrypted-media"></iframe>

If you paste this HTML code in your the HTML of your website then you'll see the (playable) Spotify playlist on your website. It will look exactly like the playlist you see in the preview:

Embed playlist

Image of Datadog

Master Mobile Monitoring for iOS Apps

Monitor your app’s health with real-time insights into crash-free rates, start times, and more. Optimize performance and prevent user churn by addressing critical issues like app hangs, and ANRs. Learn how to keep your iOS app running smoothly across all devices by downloading this eBook.

Get The eBook

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more