i tried to authenticate my api key but it is showing error 404
{
"status_code": 7,
"status_message": "Invalid API key: You must be granted a valid key.",
"success": false
}
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de superboy97
le 23 octobre 2023 à 14h13
What is the exact query that you have sent ?
Réponse de ritkg_05
le 20 novembre 2023 à 03h24
the one the TMDB have give me..
Réponse de superboy97
le 20 novembre 2023 à 03h25
TMDB didn't give you the query you have sent, only the key.
Réponse de yahn
le 22 novembre 2023 à 04h47
Same here, I tried to make a call and my key seems to not work anymore.
I used : https://api.themoviedb.org/3/movie/550?api_key=MY_KEY
{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}
Réponse de ticao2 🇧🇷 pt-BR
le 22 novembre 2023 à 14h25
Did you change MY_KEY to your Key and open this URL in a browser tab on your Win/Linux/OSx PC?
Was this the error response you received in your browser?
Réponse de yahn
le 22 novembre 2023 à 17h42
Of course I replaced it. I tried with Firefox, Chrome, Postman, even with the sample code in the documentation. Finally, I regenerated my key and it worked fine. I suppose it expired...
Réponse de John
le 23 novembre 2023 à 20h25
I'm having the same issue. Was working for months then just recently started getting this error.
Réponse de yahn
le 24 novembre 2023 à 02h07
Regenerate the key solve it...
Réponse de ticao2 🇧🇷 pt-BR
le 24 novembre 2023 à 07h00
Sometimes people test using it within the code.
Do not test using the PC browser.
Or using a mobile device.
I just wanted to make sure how you did the test.
I don't think it expires.
Mine has been the same for about 7 years.
If you regenerated and now it works without problems, great.
Réponse de ticao2 🇧🇷 pt-BR
le 24 novembre 2023 à 07h07
Test your API Key on this page.
https://developer.themoviedb.org/reference/authentication-validate-key
If you are unsuccessful, go to your profile and ask to regenerate.
https://www.themoviedb.org/settings/api
In the menu, on the right, Regenerate Key.
Réponse de vijaru
le 25 novembre 2023 à 05h34
i have same problem,
Réponse de ticao2 🇧🇷 pt-BR
le 25 novembre 2023 à 07h24
I will repeat what I said in my previous comment.
Test your API Key on this page.
https://developer.themoviedb.org/reference/authentication-validate-key
If you are unsuccessful, go to your profile and ask to regenerate.
https://www.themoviedb.org/settings/api
In the menu, on the right, Regenerate Key.
Réponse de John
le 25 novembre 2023 à 08h51
Same issue, I regenerated the key, tested the new key here but I get 401 status code 7 when I try to use API Key Auth. I get 200 when I use Access Token Auth. I have tried regenerating the key multiple time, every time with the same result. Why does the key fail but the token works?
Réponse de ticao2 🇧🇷 pt-BR
le 25 novembre 2023 à 10h33
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.
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.
Réponse de John
le 25 novembre 2023 à 11h00
That was it! Using your directions worked with my api key. Thanks for the explanation. Scripts are working again!