node package manager

random-movie

random-movie

Get a random movie

Install

$ npm install --save random-movie

Contribute

Accepting PRs for additional movies.

Usage

var randomMovie = require('random-movie');
randomMovie(function(err, data) {
  console.log(data);
});
// Output: 
// { 
//   "Title":"Inception", 
//   "Year":"2010", 
//   "Rated":"PG-13", 
//   "Released":"16 Jul 2010", 
//   "Runtime":"148 min", 
//   "Genre":"Action, Mystery, Sci-Fi", 
//   "Director":"Christopher Nolan", 
//   "Writer":"Christopher Nolan", 
//   "Actors":"Leonardo DiCaprio, Joseph Gordon-Levitt, Ellen Page, Tom Hardy", 
//   "Plot":"A thief who steals corporate secrets through use of dream-sharing technology is given the inverse task of planting an idea into the mind of a CEO.", 
//   "Language":"English, Japanese, French", 
//   "Country":"USA, UK", 
//   "Awards":"Won 4 Oscars. Another 138 wins & 164 nominations.", 
//   "Poster":"http://ia.media-imdb.com/images/M/MV5BMjAxMzY3NjcxNF5BMl5BanBnXkFtZTcwNTI5OTM0Mw@@._V1_SX300.jpg", 
//   "Metascore":"74", 
//   "imdbRating":"8.8", 
//   "imdbVotes":"1,124,997", 
//   "imdbID":"tt1375666", 
//   "Type":"movie", 
//   "Response":"True" 
// } 

License

MIT © Mert Kahyaoğlu 2015