The Movie Database Support

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.

2 replies (on page 1 of 1)

Jump to last post

@Suvigya said:
Can't receive API Response, it says 401 authentication error in the console and the application isn't working. Please enter a valid API key... when I'm pasting it correctly inside the code!
Can't receive API Response, it says 401 authentication error in the console and the application isn't working. Please enter a valid API key... when I'm pasting it correctly inside the code!
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.

Please enter a valid API key...

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.

401 authentication error in the console
try it out again or try to paste it directly in the url

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:

Response    503 Service Unavailable  

Error: Network Error  
Check the developer tools console, it might have more information on the error.  
If you are using an Ad blocker, it is possible your Ad blocker is blocking the request.  

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

Hi @ user,
I believe Stoplight has temporarily blocked the Try it out feature for our account
because too many people were using it as the source for their apps,
and not using api.themoviedb.org for some reason.
No timeline on getting it restored, but that's the problem.
Switch to use our proper production address, api.themoviedb.org.

And here (2021-06-04)
https://www.themoviedb.org/talk/60ba469218b75100785c163b#60ba6c76ffd44d0079eaa363

Hi @, indeed Stoplight has temporarily blocked the "Try it out" feature for our account
because too many people were using it as the source for their apps,
and not using api.themoviedb.org for some reason.
No timeline on getting it restored, but that's the problem.

And ...

Btw, it's giving error on their Request Token page too.

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.

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.

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

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login