Embeds

Embeds enable you to share music and other content from Spotify on your own website.

Add audio to your own website

Embeds help you share interactive content from Spotify on a website that you control. Using an Embed, you can add a podcast, an album, or other audio content on your website that your users can listen to. It's a great way to promote your music, share your new podcast episodes with fans, or highlight your favorite album or playlist.

Embed content easily

You can create a simple Embed by copying a few lines of HTML and dropping it into a web page that you control. The Embed will give your website's users a window into a piece of Spotify content that you'd like to highlight.

Embeds are interactive. Users can tap on them to listen to the content, find out more about the creator, or follow the artist or show. You can make an Embed for tracks, albums, artists, playlist and podcasts for use within your web project.

Customize your Embed

Each website is different. We know that you'll want your Embed to fit in with the look and feel of your existing website or app.

You can adjust the background color, height, and width of your Embed using the options available to you on the Embed creation menu. In the case of podcast episodes, you can set a custom start point, allowing listeners to begin listening at a defined point in the show.

Bring Embeds into your web app

window.onSpotifyIframeApiReady = (IFrameAPI) => {
  let element = document.getElementById('embed-iframe');
  let options = {
      uri: 'spotify:episode:7makk4oTQel546B0PZlDM5'
    };
  let callback = (EmbedController) => {};
  IFrameAPI.createController(element, options, callback);
};

Using our iFrame API, you can create web apps that dynamically load, play and pause Spotify podcast episodes in an Embed.

If your website handles links that have been shared by users then you can also programmatically create Embeds using our oEmbed API. It’s also possible to combine Embeds with other Spotify developer tools, like our Web API.