Assistance de TMDB

Iam just trying the api for discover/movie and the server responds with the error that the id is invalid and when inspect the credentials iam getting the message that cant get authenticated with such key

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

Jump to last post

@BYIRINGIRO.E said:
API CONFLICT
Iam just trying the api for discover/movie and the server responds with the error that the id is invalid
and when inspect the credentials iam getting the message that cant get authenticated with such key

Please post the full text of the error warning here.
Are there two errors? ID and Key?

{ "success": false, "status_code": 6, "status_message": "Invalid id: The pre-requisite id is invalid or not found." }

@BYIRINGIRO.E said:

{ "success": false, "status_code": 6, "status_message": "Invalid id: The pre-requisite id is invalid or not found." }

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

here is the fetch request iam sending
const url = 'https://api.themoviedb.org/3/keyword/keyword_id/movies?include_adult=false&language=en-US&page=1';
const options = {
method: 'GET',
headers: {
accept: 'application/json',
Authorization: 'Bearer eyJhbGciO ...... HWoX668'
}
};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));

@BYIRINGIRO.E said:
here is the fetch request iam sending
const url = 'https://api.themoviedb.org/3/keyword/keyword_id/movies?include_adult=false&language=en-US&page=1';
const options = {
method: 'GET',
headers: {
accept: 'application/json',
Authorization: 'Bearer eyJhbGciO ...... HWoX668'
}
};

fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));

This method has been deprecated. See:
https://developer.themoviedb.org/reference/keyword-movies

This method is deprecated, you should use /discover/movie instead.

It still works,
But you need to inform which keyword ID you want to search.
https://api.themoviedb.org/3/keyword/{keyword_id}/movies
Your Request does not contain the ID. See and compare:

https://api.themoviedb.org/3/keyword/keyword_id/movies?include_adult=false&language=en-US&page=1
https://api.themoviedb.org/3/keyword/210740/movies?include_adult=false&language=en-US&page=1

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