rajohns08 / words-in-movies

0 stars 0 forks source link

How can I get an IMDB ID from an API using movie title as search term? #5

Closed rajohns08 closed 3 years ago

rajohns08 commented 3 years ago

I'd like the frontend to allow users to start typing a movie name, then return an autocompleted dropdown list of movies from IMDB based on what they are typing. The list of movies would presumably come from an IMDB api which includes an ID as part of the data sent down for each movie. I can then use that id in the opensubtitles.org rest api.

rajohns08 commented 3 years ago

It looks like I can use [1] to search for the list of movies, then when a movie is selected, use the selected id (for tmdb) to call [2] which will return the IMDB ID for that movie.

References: [1] https://developers.themoviedb.org/3/search/search-movies [2] https://developers.themoviedb.org/3/movies/get-movie-details

rajohns08 commented 3 years ago

I set up requests showing this works in Postman after setting up a TMDb account with an API key.