IMDB-API is an unofficial API to scrape data from IMDB site...
You can get the data by using two methods.
- Searching By IMDB ID. It looks something like
tt0848228
/api/id/{ID}
- Searching By Movie Name.
/api/title/{movie_name}
Request
$ /api/id/avengers
Response
[
{
"name": "The Avengers",
"year": "2012",
"rating": "8.0",
"genre": "ActionAdventureSci-Fi",
"plot": "Earth's mightiest heroes must come together and learn to fight as a team if they are going to stop the mischievous Loki and his alien army from enslaving humanity.",
"director": "Joss Whedon"
}
]
Go to https://imdb-api.fixalis706.repl.co/api/id/${IMDB_ID}
to search by IMDB ID
or
https://imdb-api.fixalis706.repl.co/api/title/${Movie_Name}
to search by movie title