node.js library that makes the interaction with themoviedb.org V3 API easy.
npm install themoviedb-api-client --save
Require MovieDB and provide your themoviedb.org API KEY
const tmdb = require('themoviedb-api-client"')('your api key');
Use the api methods as you want, for example:
tmdb.searchMovie({ query: 'Alien' }).then((res) => {
console.log(res.body);
})
.catch(function(error) {
console.log(error)
});
or
tmdb.movieInfo({ id: 666}).then((res) => {
console.log(res.body);
})
.catch(function(error) {
console.log(error)
});
All themoviedb.org API v3 methods included.