GithubHelp home page GithubHelp logo

thanosdi / imdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattallty/imdb

2.0 2.0 0.0 23 KB

An IMDB API for getting information on your favourite movies!

License: MIT License

JavaScript 100.00%

imdb's Introduction

imdb npm downloads

An IMDB API for getting information on your favourite movies!

Installing

Install via npm

$ npm install --save imdb

Running

To run the example:

$ npm install
$ node examples/movie.js

Usage

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

const imdb = require('imdb');

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

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

This will return an object similar to this:

{ title: 'The Martian',
  originalTitle: 'N/A',  year: '2015',  contentRating: 'PG',
  runtime: '2h 24min',  description: 'An astronaut becomes stranded on Mars after his team assume him dead, and must rely on his ingenuity to find a way to signal to Earth that he is alive.',
  rating: '8.0',
  poster: 'https://images-na.ssl-images-amazon.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',
  language: 'English, Mandarin',
  actors:
   [ 'Matt Damon',
     ...
     'Shu Chen' ] }

imdb's People

Contributors

alecrajeev avatar danwakeem avatar amilajack avatar ebouther avatar flakolefluk avatar patrickspemann avatar thanosdi avatar

Stargazers

Dimitrios-Nikolaos Sinogeorgos avatar Ivan Monteiro Cantalice avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.