Skip to content

Instantly share code, notes, and snippets.

@mager
Created January 5, 2012 18:45
Show Gist options
  • Save mager/1566599 to your computer and use it in GitHub Desktop.
Save mager/1566599 to your computer and use it in GitHub Desktop.
Spotify Apps API - Get the currently playing track
sp = getSpotifyApi(1);
var models = sp.require('sp://import/scripts/api/models');
var currentTrack = models.player.track;
console.log(currentTrack);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment