The Movie Databse TypeScript API
WARNING: This is a work-in-progress (v0.0.x
). Once v1
is released I'll
consider the API stable. For now, there may be lots of changes.
Upcoming
How to install
Install the tmdb-ts-api
npm package.
npm install tmdb-ts-api
yarn add tmdb-ts-api
How to configure
Add the following environmental varaibles to your .env
file.
TMDB_API_KEY="your key goes here"
TMDB_API_PROXY_URL="server side endpoint"
How to use
Create a new instance of Tmbd
and use it!
import { Tmdb } from 'tmdb-ts-api'
const tmdb = new Tmdb()
const details = await tmdb.movie.getDetails('603')
console.log(details)
How to publish
Coming soon