spotify

A Spotify API library for node.js

node-spotify

Extremely simple (and somewhat hackish) API library for the Spotify REST API.

The easiest way to use node-spotify is to install it with npm: npm install spotify

Currently, there's only three (useful) methods available:

lookupfunction(type: 'artist OR album OR track'id: 'Spotify ID Hash' }hollaback)
searchfunction(type: 'artist OR album OR track'query: 'My search query' }hollaback)
getfunction(queryhollaback) -- See http://developer.spotify.com/en/metadata-api/overview/ 
var spotify = require('spotify');
 
spotify.search({ type: 'track', query: 'dancing in the moonlight' }, function(errdata) {
    if ( err ) {
        console.log('Error occurred: ' + err);
        return;
    }
 
    // Do something with 'data' 
});