Here we link to some simple examples that demonstrate the capabilities of the Spotify Web API.

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

Thirtify

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

Artist Explorer

Artists Explorer is a tool that helps music enthusiasts explore artist relationships and discover new music. It uses both the Spotify Web API and the Echo Nest APIs. Demo · Source on GitHub

Echo Nest example apps

Together, the Echo Nest and Spotify APIs provide broad and deep data on millions of artists and songs, making it easy for you to build world-class music apps that take advantage of all of the capabilities provided by both APIs. You can find many excellent examples at the Echo Nest website, including:

  • Genre Browser – With The Genre Browser you can learn about a new genres. You can read about the background and history of the genre, listen to its music, learn about the genre’s key artists and more. It uses the Echo Nest’s Genre APIs and the Spotify Web API.
  • Similar Artist Browser – Given a seed artist, this app shows images of similar artists.
  • Simple Playlist – Creates an Echo Nest artist radio playlist with the Spotify Play Button.
  • Simple Playlist with Web API – Creates an Echo Nest artist radio playlist using the Spotify Web API.
  • Chill Radio – Creates an artist radio of low energy songs using the Spotify and Echo Nest APIs

Find these and other examples at the Echo Nest / Spotify git repository. In addition there are several more exciting and sophisticated demonstration apps at the Echo Nest site.

Libraries

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

Web API Wrappers

OAuth2 integration