Global

Methods

airingTodayTVShows(queryopt, cb)

Method responsible for get the list of TV shows that air today. Without a specified timezone, this query defaults to EST (Eastern Time UTC-05:00)
Parameters:
Name Type Attributes Description
query Mixed <optional>
A object with the query options
cb function A callback with a array of tv shows
Source:
Example
client.airingTodayTVShows(function(err, tvshows) {
     console.log(tvshows);
});

getCreditsOfMovie(query, cb)

Method responsible for get the cast and crew information for a specific movie id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb movie id
cb function A callback with the movie credits
Source:
Example
client.getCreditsOfMovie(122917, function(err, credits) {
     console.log(credits);
});

getCreditsOfTVShow(query, cb)

Method responsible for get the cast and crew information for a specific tvshow id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb tvshow id
cb function A callback with the tv show credits
Source:
Example
client.getCreditsOfTVShow(60735, function(err, credits) {
     console.log(credits);
});

getEpisodeOfTVShow(query, season, episode, cb)

Method responsible for get the primary information about a episode of the show by combination of a season and episode number
Parameters:
Name Type Description
query Mixed A integer or object with TMDb tvshow id
season Number A integer of the season number
episode Number A integer of the episode number
cb function A callback with the tv show data
Source:
Example
client.getEpisodeOfTVShow(60735, 1, 1, function(err, episode) {
     console.log(episode);
});

getImagesOfMovie(query, cb)

Method responsible for get the images (posters and backdrops) for a specific movie id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb movie id
cb function A callback with the movie images
Source:
Example
client.getImagesOfMovie(122917, function(err, images) {
     console.log(images);
});

getImagesOfTVShow(query, cb)

Method responsible for get the images (posters and backdrops) for a specific tvshow id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb tvshow id
cb function A callback with the tv show images
Source:
Example
client.getImagesOfTVShow(60735, function(err, images) {
     console.log(images);
});

getMovie(query, cb)

Method responsible for get the basic movie information for a specific movie id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb movie id
cb function A callback with the movie data
Source:
Example
client.getMovie(122917, function(err, movie) {
     console.log(movie);
});

getSeasonOfTVShow(query, season, cb)

Method responsible for get the primary information about a season of the show by its season number
Parameters:
Name Type Description
query Mixed A integer or object with TMDb tvshow id
season Number A integer of the season number
cb function A callback with the tv show data
Source:
Example
client.getSeasonOfTVShow(60735, 1, function(err, season) {
     console.log(season);
});

getSimilarMovies(query, cb)

Method responsible for get the similar movies for a specific movie id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb movie id
cb function A callback with a array of movies
Source:
Example
client.getSimilarMovies(122917, function(err, movies) {
     console.log(movies);
});

getSimilarTVShows(query, cb)

Method responsible for get the similar tv shows for a specific tvshow id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb tvshow id
cb function A callback with a array of tv shows
Source:
Example
client.getSimilarTVShows(60735, function(err, tvshows) {
     console.log(tvshows);
});

getTVShow(query, cb)

Method responsible for get the basic tv show information for a specific tvshow id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb tvshow id
cb function A callback with the tv show data
Source:
Example
client.getTVShow(60735, function(err, tvshow) {
     console.log(tvshow);
});

getVideosOfMovie(query, cb)

Method responsible for get the videos for a specific movie id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb movie id
cb function A callback with the movie videos
Source:
Example
client.getVideosOfMovie(122917, function(err, videos) {
     console.log(videos);
});

getVideosOfTVShow(query, cb)

Method responsible for get the videos for a specific tvshow id
Parameters:
Name Type Description
query Mixed A integer or object with TMDb tvshow id
cb function A callback with the tv show videos
Source:
Example
client.getVideosOfTVShow(60735, function(err, videos) {
     console.log(videos);
});

onTheAirTVShows(queryopt, cb)

Method responsible for get the list of TV shows that are currently on the air. This query looks for any TV show that has an episode with an air date in the next 7 days
Parameters:
Name Type Attributes Description
query Mixed <optional>
A object with the query options
cb function A callback with a array of tv shows
Source:
Example
client.onTheAirTVShows(function(err, tvshows) {
     console.log(tvshows);
});

popularMovies(queryopt, cb)

Method responsible for get the list of popular movies on The Movie Database. This list refreshes every day
Parameters:
Name Type Attributes Description
query Mixed <optional>
A object with the query options
cb function A callback with a array of movies
Source:
Example
client.popularMovies(function(err, movies) {
     console.log(movies);
});

popularTVShows(queryopt, cb)

Method responsible for get the list of popular tv shows on The TVShow Database. This list refreshes every day
Parameters:
Name Type Attributes Description
query Mixed <optional>
A object with the query options
cb function A callback with a array of tv shows
Source:
Example
client.popularTVShows(function(err, tvshows) {
     console.log(tvshows);
});

searchMovies(query, cb)

Method responsible for search movies
Parameters:
Name Type Description
query Mixed A string or object with the search terms
cb function A callback with a array of movies
Source:
Example
client.searchMovies({query: 'The Hobbit: The Battle of the Five Armies', sortBy: 'popularity.desc', includeAdult: false}, function(err, movies) {
     console.log(movies);
});

searchTVShows(query, cb)

Method responsible for search tv shows
Parameters:
Name Type Description
query Mixed A string or object with the search terms
cb function A callback with a array of tv shows
Source:
Example
client.searchTVShows({query: 'The Flash', sortBy: 'popularity.desc', firstAirDate: '2014-10-07'}, function(err, tvshows) {
     console.log(tvshows);
});

setLanguage(language)

Method responsible to set the current language
Parameters:
Name Type Description
language String The language to use in the request
Source:
Example
client.setLanguage('en');

topRatedMovies(queryopt, cb)

Method responsible for get the list of top rated movies. By default, this list will only include movies that have 10 or more votes. This list refreshes every day
Parameters:
Name Type Attributes Description
query Mixed <optional>
A object with the query options
cb function A callback with a array of movies
Source:
Example
client.topRatedMovies(function(err, movies) {
     console.log(movies);
});

topRatedTVShows(queryopt, cb)

Method responsible for get the list of top rated TV shows. By default, this list will only include TV shows that have 2 or more votes. This list refreshes every day
Parameters:
Name Type Attributes Description
query Mixed <optional>
A object with the query options
cb function A callback with a array of tv shows
Source:
Example
client.topRatedTVShows(function(err, tvshows) {
     console.log(tvshows);
});