The Movie Database Support

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.

6 replies (on page 1 of 1)

• Jump to last post

Do you use /search/movie? The id should be the movie id. What are your exact requests?

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 34

the movie details url is /movie/{movie_id}

so it should be

https://api.themoviedb.org/3/movie/770?api_key=<api_key>

ah yes, thanks!

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?

@denirodrigues said:

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?

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

Can't find a movie or TV show? Login to create it.

Want to rate or add this item to a list?

Login