node-movie
v3.0.0
Published
Node imdb API
Downloads
30
Readme
node-movie
Get movie data easily from imdb
Install
$ npm i --save node-movie
Usage
// get movie by title
const movie = require("node-movie");
movie("fury", data => {
console.log(data);
});
// get movie by imdbID
const movie = require("node-movie").getByID;
movie("tt2713180", data => {
console.log(data);
});
// Output:
// {
// "Title":"Fury",
// "Year":"2014",
// "Rated":"R",
// "Released":"17 Oct 2014",
// "Runtime":"134 min",
// "Genre":"Action, Drama, War",
// "Director":"David Ayer",
// "Writer":"David Ayer",
// "Actors":"Brad Pitt, Shia LaBeouf, Logan Lerman, Michael Peña",
// "Plot":"April, 1945. As the Allies make their final push in the European Theatre..",
// "Language":"English, German",
// "Country":"UK, China, USA",
// "Awards":"4 wins & 9 nominations.",
// "Poster":"http://ia.media-imdb.com/images/M/MV5BMjA4MDU0NTUyN15BMl5BanBnXkFtZTgwMzQxMzY4MjE@._V1_SX300.jpg",
// "Metascore":"64",
// "imdbRating":"7.9",
// "imdbVotes":"89,030",
// "imdbID":"tt2713180",
// "Type":"movie",
// "Response":"True"
// }
// Returns object with error key when failed
const movie = require("node-movie").getByID;
movie("tt2", data => {
console.log(data);
});
// Output: { Response: 'False', Error: 'Incorrect IMDb ID.' }
Credit
This module is developed using OMDb.
License
MIT © Mert Kahyaoğlu 2015