Assistance de TMDB

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 }

14 réponses (sur la page 1 sur 1)

Jump to last post

@AhmedZouari said:

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 }

You must set your head authentication method in 2 Authenticate under Getting Started, such as appkey or access token

i did that . my key is not valid

@AhmedZouari said:

i did that . my key is not valid

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)

@AhmedZouari said:

i did that . my key is not valid

I am using translation software and the translation may not be very accurate

So, do you mean only the POST requests will work in the "Try it Out"?

@johnnithin08 said:

So, do you mean only the POST requests will work in the "Try it Out"?

Try it Out can only use Access Token Auth authentication, not API Key Auth authentication, which is not related to the request

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

@Alucard2169 said:

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

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

@热心市民杨先生 Thanks a lot, it worked

"status_code": 7, "status_message": "Invalid API key: You must be granted a valid key.", "success": false

plz make video on youtube how to call api

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.

@Sylviaire said:

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. Same issue facing after trying all solution mentioned above

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

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion