When using my API key to make a request with API 3, I receive results back from various endpoints. However, when I switch to API 4, I get results back for discover but when I try to get data from genre or credits or movie then I receive a status code 34 (The resource you requested could not be found). This occurs both in php using curl and also via the terminal. I am using the API 4 token and even used the exact code on this page for my terminal request...
https://developers.themoviedb.org/3/getting-started/authentication
If I make the genre list request using 3 then it works fine but as soon as I switch it to 4 then I receive the status code 34. Any idea what this could be?
Thanks, Wil
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 superboy97
on June 22, 2022 at 4:48 AM
What is the exact query you are sending ?
Reply by wilhud
on June 22, 2022 at 12:31 PM
This is the API call...
https://api.themoviedb.org/4/genre/movie/list?language=en-US
I am using the Bearer Token method with my API token sent in the curl headers as described in that link in my original post.
The results come back good when I switch to 3 but as soon as I change to 4 it tells me Status Code: 34 Error: 404 - The resource you requested could not be found.
Thanks, Wil
Reply by superboy97
on June 22, 2022 at 12:39 PM
Did you try to use https://api.themoviedb.org/3/genre/movie/list?language=en-US ? Even if you use the bearer token method to authentify, this is still a V3 API call.
Reply by wilhud
on June 22, 2022 at 12:47 PM
Yes, 3 works fine. So I should just use that? Is it best to just use 3 or are there certain calls that 4 is better to use for? I am primarily doing standard movie/tv show discovery and title calls. Don't need access to any of the lists or user account calls.
Thanks, Wil
Reply by superboy97
on June 22, 2022 at 12:53 PM
The only V4 API calls are the ones listed on this documentation page.