when i click try it i got this { "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 热心市民杨先生
le 30 mai 2023 à 23h22
You must set your head authentication method in 2 Authenticate under Getting Started, such as appkey or access token
Réponse de AhmedZouari
le 30 mai 2023 à 23h31
i did that . my key is not valid
Réponse de 热心市民杨先生
le 31 mai 2023 à 00h03
You can try accessing it directly with a browser (https://api.themoviedb.org/3/tv/latest?api_key=youKey),
(api_key) is used for (queryParam) authentication of (get) requests, while (access token) is used for authentication in (head). Simple tests in the interface document can only use (access token) authentication. There is an error in the code of this document. When you select (api_key) requests, (api_key) exists in (head) instead of (queryParam), resulting in (Invalid API key)
Réponse de 热心市民杨先生
le 31 mai 2023 à 00h03
I am using translation software and the translation may not be very accurate
Réponse de Nithin John
le 1 juin 2023 à 12h30
So, do you mean only the POST requests will work in the "Try it Out"?
Réponse de 热心市民杨先生
le 1 juin 2023 à 21h43
Try it Out can only use Access Token Auth authentication, not API Key Auth authentication, which is not related to the request
Réponse de Alucard2169
le 2 juin 2023 à 05h47
I am getting the same error, i even tried regenerating my key but the new key doesn't work either
I am trying to use the
find By id
query, i even tried it in vscode, but it's still not working.Also when i use it to get all the popular movies, it works as it should
Réponse de 热心市民杨先生
le 2 juin 2023 à 06h27
You can try accessing this address directly with a browser first( https://api.themoviedb.org/3/find/nm0943104?external_source=imdb_id&api_key=youKey ), see if there is a prompt for Invalid API key
Réponse de Alucard2169
le 2 juin 2023 à 06h33
@热心市民杨先生 Thanks a lot, it worked
Réponse de Rajkumar patel
le 3 juin 2023 à 11h44
"status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false
Réponse de Rajkumar patel
le 3 juin 2023 à 12h26
plz make video on youtube how to call api
Réponse de Sylviaire
le 3 juin 2023 à 19h14
Facing the same issue when attempting to call the search/movie API function in my C++ program. I imagine this issue comes up a lot but I don't see much of a resolution other than a confusion over the two types of key.
Réponse de Rajkumar patel
le 4 juin 2023 à 09h32
Réponse de robbie3999
le 4 juin 2023 à 16h44
Hi @Rajkumar patel
The are a number of videos on youtube on how to use the api: https://www.youtube.com/results?search_query=tmdb+api
If you are absolutely convinced that your api key is invalid, the simplest way to test it is to run a simple query in your web browser. Type or paste the query below into the address bar of your web browser and replace YOUR_API_KEY with your api key. If you get back json describing movie id 550 (The Fight Club), then your api key is valid.
https://api.themoviedb.org/3/movie/550?api_key=YOUR_API_KEY