Search against iTunes using nodejs.
npm install itunes-search
var itunes = require('itunes-search');
var options = {
term: "field of dreams"
, media: "movie" // options are: podcast, music, musicVideo, audiobook, shortFilm, tvShow, software, ebook, all
, entity: "movie"
, attribute: "movieTerm"
, limit: 50
, explicit: "No" // explicit material
, country: "CA" // default US
};
itunes.search(options, function(err, response) {
if (err) {
console.log(err);
} else {
console.log(response);
}
});
var itunes = require('itunes-search');
var options = {
id: 481473944
, entity: "album"
, limit: 25
, sort: "recent"
, country: "CA" // default US
};
itunes.lookup(options, function(err, response) {
if (err) {
console.log(err);
} else {
console.log(response);
}
});