https://github.com/plotwist-app/tmdb
TypeScript client for TMDB API with modular endpoints and fully typed responses.
https://github.com/plotwist-app/tmdb
tmdb-api
Last synced: 9 months ago
JSON representation
TypeScript client for TMDB API with modular endpoints and fully typed responses.
- Host: GitHub
- URL: https://github.com/plotwist-app/tmdb
- Owner: plotwist-app
- Created: 2024-11-11T11:28:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-22T14:34:34.000Z (over 1 year ago)
- Last Synced: 2025-09-03T00:09:55.449Z (10 months ago)
- Topics: tmdb-api
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@plotwist_app/tmdb
- Size: 540 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A TypeScript library for interacting with The Movie Database (TMDB) API, offering strongly-typed and modular access to movies, TV shows, and other media.
## **Installation**
```bash
npm install @plotwist_app/tmdb
```
## **Usage**
Initialize the client with your API key:
```typescript
import { TMDB } from "@plotwist_app/tmdb";
const tmdb = TMDB("YOUR_TMDB_ACCESS_TOKEN");
```
### Examples:
- **Get Movie Details**:
```typescript
const movie = await tmdb.movies.details(550, "en-US");
```
- **Multi search**:
```typescript
const results = await search.multi("Inception", "en-US");
```
## **License**
This project is licensed under the MIT License.