https://github.com/blakejoy/tmdb-ts
Typescript client wrapper for TheMovieDB (TMDB) v3
https://github.com/blakejoy/tmdb-ts
tmdb tmdb-api tmdb-movie tmdb-rest-api typescript
Last synced: 2 months ago
JSON representation
Typescript client wrapper for TheMovieDB (TMDB) v3
- Host: GitHub
- URL: https://github.com/blakejoy/tmdb-ts
- Owner: blakejoy
- License: mit
- Created: 2021-05-15T04:20:24.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-04T05:59:02.000Z (8 months ago)
- Last Synced: 2025-03-29T08:03:27.900Z (2 months ago)
- Topics: tmdb, tmdb-api, tmdb-movie, tmdb-rest-api, typescript
- Language: TypeScript
- Homepage:
- Size: 242 KB
- Stars: 53
- Watchers: 1
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tmdb-ts
Typescript library wrapper of [TMDB API](https://developers.themoviedb.org/) v3 .
[](https://www.npmjs.com/package/tmdb-ts)[](https://npmcharts.com/compare/tmdb-ts?minimal=true)
This uses new jwt authentication token for requests so there is no need to append api key to the url.
Once you have registered for access to the api you can use your access token as follows:Installation:
``
npm install --save tmdb-ts
``Version 1.0 removed the default import so make sure you update accordingly!
```js
import { TMDB } from 'tmdb-ts';const tmdb = new TMDB('accessToken');
try {
const movies = await tmdb.search.movies({ query: 'American Pie' });
console.log(movies);
} catch(err) {
// handle error
}
```