A Node.js module for using the Spotify Metadata Search API. Detailed information about the responses and their structure can be found in the Spotify documentation.
Install it
npm install spotify-metadata-search
Require it
var SpotifySearch = ;
Search Tracks
var search = ; // This is the string you want to search forvar searchText = "whatever"; // Use this to page through the Spotify responsevar optionPageNumber = 2; search;
Search Albums
var search = ; // This is the string you want to search forvar searchText = "whatever"; // Use this to page through the Spotify responsevar optionPageNumber = 2; search;
Search Artists
var search = ; // This is the string you want to search forvar searchText = "whatever"; // Use this to page through the Spotify responsevar optionPageNumber = 2; search;
Lookup By URI
var search = ; var spotifyURI = "spotify:track:1hP6wr5qYhXy5Am2tvndrZ"; search;
The second parameter for lookup
can be an array of words that are passed as extras to Spotify. These only apply if you pass in an artist or and album URI. For more information about extras check out the Spotify Metadata API documentation.