Please tell should I create a new account and try it out again or try to paste it directly in the url or just hide it in env file. Btw, it's giving error on their Request Token page too. Please provide a solution.
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 December 16, 2021 at 6:27 PM
Take a Test
Click to go to your Profile > API: https://www.themoviedb.org/settings/api
At the bottom of the page, below, you'll find the Example API Request.
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY
Use this example to do a search using a new tab in your browser.
You will receive the basic data of the Movie Fight Club (1999)
https://www.themoviedb.org/movie/550-fight-club
If it works, your Key is OK.
When there is a problem, the TMDb Server sends a message.
Can you tell which message the server sent?
Here is a list of possible messages:
https://www.themoviedb.org/documentation/api/status-codes
If it does not work, let us know right here.
You may be using Try it out feature.
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
And ...
Problems with API Request
In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.
Not the programming code you used to build the API Request.
But the API Request that is sent to the TMDb server.
Reply by _Suvigya_
on December 17, 2021 at 7:57 PM
Actually, how I solved was to not use the env file provided by the YouTuber's GitHub and directly made use of the config file he provided to enter the API Key inside the variable. I'm fairly a new programmer so I haven't figured out a way to hide the key inside the env file and use it inside that file to do the same. But I also checked if my API key was functioning using the link you provided and it did fetch the data for Fight Club. Thank You for helping me understand how to make use of the website.