This is REST API application consumes tmdb api and adds a wrapper. Basically Developed as part of MovieBunkers Application
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
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
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
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 |
🟢 |
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 |
GET /tmdb/search?query=fight%20club&type=movie&year=1999&pageNo=1
GET /tmdb/movie/{tmdb_id}
Path Parameter | Type | Description |
---|---|---|
tmdb_id |
number |
Required. Id of movie to fetch |
GET /tmdb/movie/550
GET /tmdb/tv/{tmdb_id}
Path Parameter | Type | Description |
---|---|---|
tmdb_id |
number |
Required. Id of tv to fetch |
GET /tmdb/tv/1399
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 |
GET /tmdb/tv/1399/season/1