Keys / TMDB
TMDB_API_KEY
The TMDB API key your app reads movie and TV data with, sent as the api_key parameter. Free for non-commercial use with attribution.
- Expires
- the docs don't say
- API
- none; account settings only
Get it
Create one on www.themoviedb.org/settings/api. The steps aren't recorded yet.
Set it
TMDB_API_KEY=...
TMDB lists only community libraries; your app adds the key to each request as api_key. The API Read Access Token on the same page works as a Bearer token instead. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- On the API page of your account settings, click the regenerate key link. The docs don't say whether the old key stops working at once, so deploy the new one right away.
- Deploy it everywhere that reads
TMDB_API_KEY. - Check that requests succeed with the new key.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.