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.
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת FearArt
ב-פברואר 27, 2024 ב-6:46לפני חצות יום
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
תגובה מאת superboy97
ב-פברואר 27, 2024 ב-9:53לפני חצות יום
"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.