Socket
Socket
Sign inDemoInstall

tmdblib

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmdblib

A library to make requests to TMDB API.


Version published
Maintainers
1
Weekly downloads
1
Install size
412 kB

Weekly downloads

Readme

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

FAQs

Last updated on 03 Dec 2020

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc