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

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay