I am trying to get movie details and the API end point is return 403 error. I am trying from Postman. Getting same for past few days. What am I doing wrong?
GET https://api.themoviedb.org/3/movie/5?api_key=apikey&language=en-US
Here is the response:
Generated by cloudfront (CloudFront) Request ID: IYvhiIiUPtcXzID8Rm4W86Mw-AsvB81k374iBJ88BmkhuPcpy_8EMA==
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 ticao2 š§š· pt-BR
on April 14, 2022 at 8:59 AM
Are you trying to access the TMDb servers from Russia/Belarus ?
If yes, see below.
Regarding Russian-originated access to TMDb servers, here's what our Administrator Travis Bell said.
https://www.themoviedb.org/talk/625129f1a135330b929e29d6#62522f9456b9f700665f8cce
The Movie Database Suspends Access From Russia and Belarus
Reply by cryptoking
on April 14, 2022 at 9:14 AM
No, I am in USA
Reply by cryptoking
on April 14, 2022 at 9:18 AM
When I try to do the same thing on tmdb website, I am getting this error in the console.
Is this redirect legit? Postman should not have this CORS issues.
Reply by ticao2 š§š· pt-BR
on April 14, 2022 at 9:20 AM
I made your API Request example in my browser.
https://api.themoviedb.org/3/movie/5?api_key=THE_KEY&language=pt-BR
I received all the data normally.
So maybe Postman is not making the exact same Request or some other parameter in Postman Request is not correct.
I'll add the word Postman to your topic title.
Maybe some Postman user here on the forum can help.
Reply by ticao2 š§š· pt-BR
on April 14, 2022 at 9:23 AM
You are probably sending your API Request directly from the Developers page.
https://developers.themoviedb.org/3/getting-started/introduction
Developers.themoviedb.org is hosted by https://stoplight.io/
And yes, he's in trouble.
This is the error response I get on developers.themoviedb:
But if I use the URL directly in the browser I get the correct answer.
Copy the URL of the API Request and paste it into a new tab or window.
Travis Bell, the Manager, said (2021-01-15):
https://www.themoviedb.org/talk/600184fc6aa8e0004077e364?page=1#6001bbacbe4b36003d514ac3
And here (2021-06-04)
https://www.themoviedb.org/talk/60ba469218b75100785c163b#60ba6c76ffd44d0079eaa363
Reply by cryptoking
on April 14, 2022 at 9:26 AM
Got it, I think I figured it out. I have a json body appended to the request. Anomaly of an interceptor I have. Thank you so much. All good now. Really appreciate your help.