The Movie Database 지원

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 댓글 (1 / 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.

찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.

전체

s 검색 바 띄우기
p 프로필 메뉴 열기
esc 열린 창 닫기
? 키보드 단축키 창 열기

미디어 페이지

b 돌아가기
e 편집 페이지로 이동

TV 시즌 페이지

(우 화살표) 다음 시즌으로 가기
(좌 화살표) 이전 시즌으로 가기

TV 에피소드 페이지

(우 화살표) 다음 에피소드로 가기
(좌 화살표) 이전 에피소드로 가기

모든 이미지 페이지

a 이미지 추가 창 열기

모든 편집 페이지

t 번역 선택 열기
ctrl+ s 항목 저장

토론 페이지

n 새 토론 만들기
w 보기 상태
p 공개/비공개 전환
c 열기/닫기 전환
a 활동 열기
r 댓글에 글쓰기
l 마지막 댓글로 가기
ctrl+ enter 회원님의 메세지 제출
(우 화살표) 다음 페이지
(좌 화살표) 이전 페이지

설정

이 항목을 평가하거나 목록에 추가할까요?

로그인