tmdblib
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

TMDBLib

The movie database library for NodeJS.

instalation

  npm install tmdblib

You can use your api key or your api token

  import getTMDBLib from 'tmdblib';

  const tmdb = getTMDBLib({
    apiKey: 'YOUR_API_KEY',
    apiToken: 'YOUR_API_TOKEN',
  })

  const movies = await tmdb.findMovies({
    query: Harry Potter,                // Required - A text to search.
    language: en-US,                    // Optional - The language to display translated data(default en-US)
    page: number,                       // Optional - Specify the page for results(maximmun 500), each page have up to 20 items. (default 1)
    include_adult: boolean,             // Optional - Specify if the request should return adult content or not
    region: string,                     // Optional - Specify a ISO 3166-1 code to filter release dates.
    year: number,                       // Optional
    primary_release_year: number,       // Optional
  });

  // id: string;
  const harryPotterMovie = await tmdb.getMovie(id);

Package Sidebar

Install

npm i tmdblib

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

17.9 kB

Total Files

27

Last publish

Collaborators

  • felipedecome