🍿 @lorenzopant/tmdb

Quick Start Guide

This section provides an overview of how to quickly get started using the TMDB wrapper.

API KEY

We assume you already have a valid api key for using the TMDB api. If not, Go to the TMDB portal and get your own api key. For more information follow the steps in the TMDB website

References:

Install

npm install @lorenzopant/tmdb

Create TMDB object

export const tmdb = new TMDB("<your-tmdb-apikey>");

Use TMDB methods

Once you've initialized the TMDB client, you can start using the API methods. Here's how to search for a movie:

const results = await tmdb.search.movies({ query: "Inception" });
console.log(results.results);

You’ll get a paginated response with a list of matching movies, including their titles, poster paths, IDs, and other metadata.

What's Next?

For the full reference, visit the TMDB Developer Documentation and check out each endpoint.

On this page