When I use the search api for a given phrase I tried using the id
key to then query the /movie
endpoint as I assumed it would be movie_id
but I'm getting 404.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Bene8493
on June 19, 2020 at 6:40 AM
Do you use /search/movie? The id should be the movie id. What are your exact requests?
Reply by bcardarella
on June 19, 2020 at 7:31 AM
When I search for "Gone with the Wind" the corresponding id in the response is
770
. I then request with this url:https://api.themoviedb.org/3/movie?api_key=<api_key>&movie_id=770
and I get status code 34Reply by Bene8493
on June 19, 2020 at 7:37 AM
the movie details url is /movie/{movie_id}
so it should be
Reply by bcardarella
on June 19, 2020 at 7:45 AM
ah yes, thanks!
Reply by denirodrigues
on March 12, 2022 at 5:05 PM
I need make the request by movie name but this endpoit get the movie for id, is there something I don't know about making my requests by name?
Reply by ticao2 š§š· pt-BR
on March 13, 2022 at 4:20 PM
If you don't know what the TMDb ID of a movie is and you only know the Title of the movie,
you must make an API Request of the Search type to be able to know what the TMDb ID is of the movie that you want the complete data.
https://developers.themoviedb.org/3/search/search-movies
Knowing the TMDb ID of the movie, then you can make an API Request of the Details type to get all the data.
https://developers.themoviedb.org/3/movies/get-movie-details
See the basic explanation here.
https://developers.themoviedb.org/3/getting-started/search-and-query-for-details