Suporte do 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 resposta (na página 1 de 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.

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade