Reputation: 21
I am using themoviedb to query about a specific Movie. I have utilized Discover to get list of movies which works fine. Now based on Id for a specific movie I am attempting get details of the movie. My URL for getting details of movie gives me error - Status Code 34. I am not sure what is wrong in my URL.
http://api.themoviedb.org/3/movie?id=150689&api_key=xxxxxxxxxxxxxxxx
Can you please point out what I am doing wrong in above URL?
Upvotes: 1
Views: 1615
Reputation: 1012
I've just discovered that this can happen even if your request is a valid one. This page details the TMDB API's response codes and how they translate to traditional status codes. 34 corresponds to 404, meaning that the requested resource could not be found. For example, a request to https://api.themoviedb.org/3/movie/1000?language=en-US
will come back with this status code (at the time of writing this answer), even though the URL is formatted properly.
Upvotes: 0
Reputation: 214
That's not quite a valid request. The one you're looking for is:
http://api.themoviedb.org/3/movie/150689?api_key=xxxxxxxxxxxxxxxx
Cheers.
Upvotes: 1