Skip to content

Promised based Javascript API wrapper for https://www.themoviedb.org/ that works in the browser and node.js.

License

Notifications You must be signed in to change notification settings

leocabeza/the-movie-db

Repository files navigation

npm bundle size npm bundle size GitHub license workflow status semantic-release

@leonardocabeza/the-movie-db

Promised based Javascript API wrapper for https://www.themoviedb.org/ that works in the browser and node.js.

It works for versions 3 and 4 of TMDB.

Table of Contents

Compatibility

It works out of the box for modern browsers and node versions greater or equal to 10.13.0

Installation

This package is distributed via npm:

npm install @leonardocabeza/the-movie-db

Usage

First, get an API key here: https://www.themoviedb.org/faq/api

You can read the examples folder in this repo or you can also try it out in a REPL

API

For more methods exposed by v3 and v4 functions, you could refer to the api docs for a full list:

CDN

<script crossorigin src="https://unpkg.com/@leonardocabeza/the-movie-db@latest/dist/the-movie-db.umd.js"></script>

Contributing

See CONTRIBUTING.md

Promises

@leonardocabeza/the-movie-db depends on a native ES6 Promise implementation to be supported. If your environment doesn't support ES6 Promises, you can polyfill.

About

This product uses the TMDb API but is not endorsed or certified by TMDb.

TMDb