Wsparcie The Movie Database

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 odpowied藕 (strona 1 z 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.

Nie mo偶esz znale藕膰 filmu lub serialu? Zaloguj si臋, aby go utworzy膰.

Globalny

s zaznacz pasek wyszukiwania
p otw贸rz menu profilu
esc Zamknij otwarte okno
? otw贸rz okno skr贸t贸w klawiszowych

On media pages

b go back (or to parent when applicable)
e przejd藕 do strony edycji

On TV season pages

(prawa strza艂ka) przejd藕 do nast臋pnego sezonu
(lewa strza艂ka) przejd藕 do poprzedniego sezonu

On TV episode pages

(prawa strza艂ka) przejd藕 do nast臋pnego odcinka
(lewa strza艂ka) przejd藕 do poprzedniego odcinka

On all image pages

a otw贸rz okno dodawania obrazu

On all edit pages

t open translation selector
ctrl+ s prze艣lij formularz

On discussion pages

n otw贸rz now膮 dyskusj臋
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r odpowiedz na dyskusj臋
l przejd藕 do ostatniej odpowiedzi
ctrl+ enter wy艣lij swoj膮 wiadomo艣膰
(prawa strza艂ka) nast臋pna strona
(lewa strza艂ka) poprzednia strona

Ustawienia

Want to rate or add this item to a list?

Zaloguj