Skip to content

This is REST API application consumes tmdb api and adds a wrapper. Basically Developed as part of MovieBunkers Application

License

Notifications You must be signed in to change notification settings

charan379/tmdb-api-wrapper

Repository files navigation

tmdb-api-wrapper 🎬

VERSION LAST UPDATD AGPL License

This is REST API application consumes tmdb api and adds a wrapper. Basically Developed as part of MovieBunkers Application

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

APP_TMDB_API
APP_TMDB_API_URL
APP_TMDB_API_IMAGES_URL
APP_TMDB_API_LANGUAGE
APP_TMDB_API_REGION

Example

APP_TMDB_API=1010cbcbe48**********************
APP_TMDB_API_URL=https://api.themoviedb.org/3/
APP_TMDB_API_IMAGES_URL=https://image.tmdb.org/t/p/
APP_TMDB_API_LANGUAGE=en-US
APP_TMDB_API_REGION=IN

Run

Clone the project

  git clone https://github.com/charan379/tmdb-api-wrapper.git

Go to the project directory

  cd tmdb-api-wrapper

Add Environment Variables then Install dependencies

  npm install

Start the server

  npm run start

Server will start running

Supported API END Points

Following is the list of supports API End points by tmdb-api-wrapper

Name API END Point Example Status
search GET /tmdb/search /tmdb/search?query=fight%20club&type=movie&year=1999&pageNo=1 🟢
movieDetails GET /tmdb/movie/{tmdb_id} /tmdb/movie/550 🟢
tvDetails GET /tmdb/tv/{tmdb_id} /tmdb/tv/1399 🟢
tvSeasonDetails GET /tmdb/tv/{tmdb_tv_id}/season/{season_number} tmdb/tv/1399/season/1 🟢

API Reference

GET Search

Retirve a list of movies or tv shows from tmdb

  GET /tmdb/search
Query Parameter Type Description
query string Required. movie or tv name
type string Required. movie or tv
year number release year
pageNo string page number

Example

  GET /tmdb/search?query=fight%20club&type=movie&year=1999&pageNo=1

GET movie details

Retirve movie details from tmdb

  GET /tmdb/movie/{tmdb_id}
Path Parameter Type Description
tmdb_id number Required. Id of movie to fetch

Example

  GET /tmdb/movie/550

GET tv details

Retirve tv details from tmdb

  GET /tmdb/tv/{tmdb_id}
Path Parameter Type Description
tmdb_id number Required. Id of tv to fetch

Example

  GET /tmdb/tv/1399

GET tv show season details from tmdb

Retirve tv show season details from tmdb

  GET /tmdb/tv/{tmdb_tv_id}/season/{season_number}
Path Parameter Type Description
tmdb_tv_id number Required. Id of tv to fetch
season_number number Required. season number of tv to fetch

Example

  GET /tmdb/tv/1399/season/1

Authors

License

AGPL License

About

This is REST API application consumes tmdb api and adds a wrapper. Basically Developed as part of MovieBunkers Application

Topics

Resources

License

Stars

Watchers

Forks

Packages