You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tmdblib

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmdblib

A library to make requests to TMDB API.

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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);

Keywords

TMDB

FAQs

Package last updated on 03 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.