Skip to content
search against iTunes using nodejs
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
lib
.gitignore
README.md
package.json

README.md

itunes-node

Search against iTunes using nodejs.

Installation

npm install itunes-search

Search

API Search reference

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);
    }  
});

Lookup

API Lookup reference

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);
    }  
});
Something went wrong with that request. Please try again.