Socket
Book a DemoInstallSign in
Socket

imdb

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imdb

An IMDB API for getting information on your favourite movies!

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
8
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

imdb

npm downloads

An IMDB API for getting information on your favourite movies!

Installing

Install via npm

$ npm install imdb

Running / Building

To run the example:

$ npm install
$ node examples/movie.js

API / Usage

Provide the IMDB ID and go! Also see the examples/ folder for inspiration!

var imdb = require('imdb');

imdb('tt3659388', function(err, data) {
  if(err)
    console.log(err.stack);

  if(data)
    console.log(data);
});

This will return an object similar to this:

{ title: 'The Martian',
  year: '2015',
  contentRating: 'PG-13',
  runtime: '2h 24min',
  description: 'During a manned mission to Mars, Astronaut Mark Watney is presumed dead after a fierce storm and left behind by his crew. But Watney has survived and finds himself stranded and alone on the hostile planet. With only meager supplies, he must draw upon his ingenuity, wit and spirit to subsist and find a way to signal to Earth that he is alive.',
  rating: '8.1',
  poster: 'http://ia.media-imdb.com/images/M/MV5BMTc2MTQ3MDA1Nl5BMl5BanBnXkFtZTgwODA3OTI4NjE@._V1_UX182_CR0,0,182,268_AL_.jpg',
  genre: [ 'Adventure', ' Drama', ' Sci-Fi' ],
  director: 'Ridley Scott',
  metascore: '80',
  writer: 'Drew Goddard' }

Keywords

movies

FAQs

Package last updated on 29 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.