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.
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?
Răspuns de FearArt
pe data de 27 februarie 2024 la ora 6:46 AM
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
Răspuns de superboy97
pe data de 27 februarie 2024 la ora 9:53 AM
"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.