# tmdb-v3

> Nodejs wrapper around the TMDb API.

Latest version **2.2.1** (published 2016-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install tmdb-v3
pnpm add tmdb-v3
yarn add tmdb-v3
bun add tmdb-v3
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2016-12-20 |
| First published | 2016-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Laurent Dezitter |
| Maintainers | dezitter |
| Keywords | tmdb |

## Links

- npm: https://www.npmjs.com/package/tmdb-v3
- Repository: https://github.com/dezitter/tmdb-v3
- Homepage: https://github.com/dezitter/tmdb-v3#readme
- Issues: https://github.com/dezitter/tmdb-v3/issues
- npm.io page: https://npm.io/package/tmdb-v3

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.79.0
- [request-promise-native](https://npm.io/package/request-promise-native.md) ^1.0.3

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 2.2.1 (latest) — 2016-12-20
- 2.2.0 — 2016-12-20
- 2.1.0 — 2016-12-09
- 2.0.0 — 2016-12-09
- 1.0.0 — 2016-12-01

## README

# tmdb-v3

Promise-based Nodejs wrapper around the [TMDb API](https://www.themoviedb.org/documentation/api).

## Install

    $ npm install tmdb-v3

## Example

```javascript
const Tmdb = require('tmdb-v3');
const tmdb = new Tmdb({ apiKey: 'YOUR_API_KEY' });

tmdb.searchMovie('Star Wars')
    .then(response => {
        console.log(response.body);
        // => '{"page":1,"results":[...],...}"
    });
```

## API

### searchMovie(text, options={})

Search for movies using a text query.

```javascript
tmdb.searchMovie('Star Wars', { year: 1983 })
    .then(response => {
        // ...
    });
```

### discoverMovie()

Discover movies.

```javascript
tmdb.discoverMovie()
    .then(response => {
        // ...
    });
```

### find(externalID, source)

Find a movie by external id. See [the tmdb docummentation](https://developers.themoviedb.org/3/find) for supported sources.

```javascript
tmdb.find('tt0338013', 'imdb_id')
    .then(response => {
        // ...
    });
```

### movieDetails(id)

Get the primary information about a movie.

```javascript
tmdb.movieDetails(38)
    .then(response => {
        // ...
    });
```

## Run the tests

    $ git clone https://github.com/dezitter/tmdb-v3
    $ cd tmdb-v3/
    $ npm install
    $ npm test

---
_Source: https://npm.io/package/tmdb-v3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
