Assistance de TMDB

So i fetched 'Hannibal' by name and got id 40008. When trying to fetch credentials, i receive some chinese movie. Name fetch

"adult": false,
            "backdrop_path": "/vlG182ZY2WMzD5bjFZNnhyvv5V4.jpg",
            "id": 40008,
            "name": "Hannibal",
            "original_language": "en",
            "original_name": "Hannibal",
            "overview": "Both a gift and a curse, Graham has the extraordinary ability to think like his prey—he sees what they see, feels what they feel. But while Graham is pursuing an especially troubling, cannibalistic murderer, Special Agent Jack Crawford teams him with a highly respected psychiatrist – a man with a taste for the criminal minded – Dr. Hannibal Lecter.",
            "poster_path": "/pbV2eLnKSIm1epSZt473UYfqaeZ.jpg",
            "media_type": "tv",
            "genre_ids": [
                18,
                80
            ],
            "popularity": 133.347,
            "first_air_date": "2013-04-04",
            "vote_average": 8.2,
            "vote_count": 2265,
            "origin_country": [
                "US"
            ]

ID fetch:

{
  "id": 40008,
  "cast": [
    {
      "adult": false,
      "gender": 2,
      "id": 118350,
      "known_for_department": "Acting",
      "name": "Cheung Tat-Ming",
      "original_name": "Cheung Tat-Ming",
      "popularity": 10.228,
      "profile_path": "/zq3vkchDeeQXkGWx4ywf7GLQ6BO.jpg",
      "cast_id": 4,
      "character": "Fortune Teller Cheung",
      "credit_id": "52fe457ac3a36847f80c9cb7",
      "order": 0
    },
    {
      "adult": false,
      "gender": 2,
      "id": 92829,
      "known_for_department": "Acting",
      "name": "Matt Chow Hoi-Kwong",
      "original_name": "Matt Chow Hoi-Kwong",
      "popularity": 4.861,
      "profile_path": "/zAZYDCvRUsKd5KjRgSZxxpMPByB.jpg",
      "cast_id": 5,
      "character": "Lo Mong-tak",
      "credit_id": "52fe457ac3a36847f80c9cbb",
      "order": 1
    },
    {
      "adult": false,
      "gender": 0,
      "id": 123657,
      "known_for_department": "Acting",
      "name": "Ha Chun-Chau",
      "original_name": "Ha Chun-Chau",
      "popularity": 0.604,
      "profile_path": null,
      "cast_id": 6,
      "character": "Rich Man Chiu",
      "credit_id": "52fe457ac3a36847f80c9cbf",
      "order": 2
    },
    {
      "adult": false,
      "gender": 1,
      "id": 118741,
      "known_for_department": "Acting",
      "name": "Elanne Kwong",
      "original_name": "Elanne Kwong",
      "popularity": 4.615,
      "profile_path": "/n4Lg27FNmDQBQperBHdJWIM4Yxr.jpg",
      "cast_id": 7,
      "character": "Ling",
      "credit_id": "52fe457ac3a36847f80c9cc3",
      "order": 3
    },
    {
      "adult": false,
      "gender": 2,
      "id": 74193,
      "known_for_department": "Acting",
      "name": "Sam Lee",
      "original_name": "Sam Lee",
      "popularity": 6.232,
      "profile_path": "/8bPqONKhCJkYKGPL0wKhdjR1Shv.jpg",
      "cast_id": 8,
      "character": "Sam",
      "credit_id": "52fe457ac3a36847f80c9cc7",
      "order": 4
    },
... etc.

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

Jump to last post

name endpoint : https://api.themoviedb.org/3/search/multi?query=hannibal&include_adult=false&language=en-US&page=1 cast endpoint: https://api.themoviedb.org/3/movie/40008/credits?language=en-US

"Hannibal" is a TV series, not a movie. You need to use https://api.themoviedb.org/3/tv/40008/aggregate_credits?language=en-US

You need to check the "media_type" value in the result of search/multo to know the type of the result returned.

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