The Movie Database Support

Hi! I'm new here and haven't set up any API keys on a site of my own yet
but I was browsing around and decided to test my API key
here: https://developer.themoviedb.org/reference/intro/authentication
using my access token I get a 200 response,
but when I use my API-key it gives me a 401 and this message: 401 Invalid API key: You must be granted a valid key.
I've tested that the fightclub endpoint works for me with my given API key but I don't get why the one on the page doesn't.

1 reply (on page 1 of 1)

Jump to last post

@lampscyco said:
401 Invalid API key: You must be granted a valid key.
Hi!
I'm new here and haven't set up any API keys on a site of my own yet
but I was browsing around and decided to test my API key
here: https://developer.themoviedb.org/reference/intro/authentication
using my access token I get a 200 response,
but when I use my API-key it gives me a 401 and this message: 401 Invalid API key: You must be granted a valid key.
I've tested that the fightclub endpoint works for me with my given API key but I don't get why the one on the page doesn't.

I assume you are testing/using "Try it!" in the documentation.

The "Try it!" option in DOCs it only works with the "Access Token Auth" option.
It doesn't work if you select the "API Key Auth" option.
It is a birth defect since the migration to this service.
I don't know if it can be fixed. I'm not a programmer.
Your API Key validation test is done using your Token.
https://developer.themoviedb.org/reference/authentication-validate-key
If your Token works then your API Key must also work.
If you want to test your API Key directly, follow the instructions below.

Take a Test
Using a computer, desktop or notebook.
On some mobile devices this test may not work correctly.
In the URL below, change THE_KEY to your API Key.
https://api.themoviedb.org/3/movie/550?api_key=THE_KEY
Use this example to do a search using a new tab or window 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.

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

Global

s focus the search bar
p profil menyusini ochish
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?

kirish