Web Playback SDK Beta

Important: The Web Playback SDK is currently in Beta. The content and functionality may change without warning in future versions.

By using Spotify developer tools, you accept our Developer Terms of Use. They contain important information about what you can and can’t do with our developer tools. Please read them carefully.

About the SDK

The Web Playback SDK is client-side JavaScript library which allows you to create a new player in Spotify Connect and play any audio track from Spotify in the browser via Encrypted Media Extensions. It’s the same technology we use to power our Web Player experience.

Some things you can do with the Web Playback SDK:

Some things you cannot do with the Web Playback SDK:

  • Download audio / video
  • Manipulate audio / video
  • Authenticate the user with Spotify (Check out Web API using OAuth.)
  • Control playback of other devices (Check out the Connect Web API.)
  • Play a track from a Spotify URI (You can do this through the Web API. Pause/resume can be done inside the SDK.)
  • Access the Web API (You can integrate this separately from our Web API Console.)

Please refer to the Developer Terms of Use for more information about what you can and cannot do with our developer tools.

Requirements

Supported Browsers

Operating System Browsers Status
Mac/Windows/Linux Chrome, Firefox, IE* ✓ Supported
  Microsoft Edge ✓ Supported
  Safari ✕ Not Supported
Android Chrome, Firefox ✕ Not Supported
iOS Safari, Chrome ✕ Not Supported

* IE 11 or above. Must be on Windows 8.1 or above.

Tutorial and Examples

We provide a beginner’s tutorial to help you get started with the Web Playback SDK. It leads you through the creation of a simple web app that makes a Spotify Player instance that can be controlled through Spotify Connect.

API Documentation

The API documentation is available online.

Issues

Please report problems with this SDK through the public issue tracker on GitHub.

Frequently Asked Questions

Does the Web Playback SDK work on mobile devices?

No, the Web Playback SDK works only in supported browsers.