TMDB v3 library wrapper
npm install tmdb-ts


TypeScript library wrapper for TMDB API v3.
- Full TypeScript support with comprehensive type definitions
- Modern authentication using JWT access tokens (no API key in URLs)
- Complete API coverage for TMDB v3 endpoints
- Promise-based async/await interface
- Zero configuration - just provide your access token
- Isomorphic - works in Node.js (18+) and modern browsers
- Zero dependencies - uses native fetch API
``bash`
npm install --save tmdb-ts
This library uses JWT authentication tokens for requests, so there is no need to append an API key to the URL. Once you have registered for access to the API, you can use your access token as follows:
> Note: Version 1.0 removed the default import. Make sure to use named imports.
`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
}
``
Contributions are welcome! Please see CONTRIBUTING.md for details.
This project is licensed under the MIT License - see the LICENSE.md file for details.