Here we link to some simple examples that demonstrate the capabilities of the Spotify Web API and to wrapper libraries for various languages.

Web API Tutorial

Example App Code

This is the application code that goes with our Web API Tutorial. It includes three examples, one for each of our supported authorization flows.

Basic snippets

Users Endpoint Demo

Displays current user’s information such as display name, picture and email.

Search for an Artist (and Lookup) Demo

Searches for an artist, displaying their albums and making it possible to play a 30 second preview of the first track of each album.

Play a track using voice commands

A demo that recognizes voice commands and plays the desired song. Remember to enable your microphone and grant access to the web app to make it work.

Example apps


A Spotify web player built using the 30s audio previews from the Web API. Demo · Source on GitHub

Playlist Creation

This example creates a playlist based on the words of a sentence. Demo · Source on GitHub

30s Drum Machine

A simple drum machine using Spotify 30s preview mp3s as samples. Demo · Source on GitHub

For more examples of complete apps, see our Developer Showcase.


Here we collect a list of libraries for integrating with the Spotify Web API using several programming languages and platforms.

Web API Wrappers

Javascript (client-side)


OAuth2 integration