Initialize the IMDb class with the default parameters to scrap content.
// Initialize Imdb with default language = English, and debug = false
const imdb1 = new Imdb()
// Initialize Imdb to fetch content with Brazilian Portuguese
const imdb2 = new Imdb('pt-BR')
Scrap the main information, credits and episodes (if it's a series) of a show.
// Get the all information (details, credits and episodes) of the show "Cobra Kai"
imdb.getAllShowData('tt7221388')
.then(console.log);
the unique identifier for movies or series.
Scrap the main information of a person, like name, job titles, filmography, etc.
// Get information about the actress "Scarlett Johansson"
imdb.getShow('nm0424060')
.then(console.log)
the unique identifier for a person.
Person - object presenting a person.
Scrap the episodes references of a series.
// Get the references to the episodes of the series "The Mandalorian"
imdb.getSeriesEpisodes('tt8111088')
.then(show => console.log(show.episodes))
the unique identifier for movies or series.
Series - object presenting a movie or series.
Scrap the credits of a show, like the list of directors, writers and cast.
// Get the credits (directors, writers and actors) of the show "Better Call Saul"
imdb.getShowCredits('tt3032476')
.then(show => console.log(show.credits))
the unique identifier for movies or series.
Generated using TypeDoc
Represents an IMDb instance from where the data will be scraped.