The Movie Database 지원

Hello, I'm trying to write a query that will return the entire cast from a TV Show but I have no idea how append another query to the one I already have : http://api.themoviedb.org/3/tv/1399/credits?api_key=************. I am totally aware that this query returns the cast team from the latest season of the show but how to make it return them all? Thank you

8 댓글 (1 / 1)

Jump to last post

Hi mp_blind,

There is no query to get all of the cast from every season. You would have to iterate though every season and call each credits method.

You can make one query for the TV show details and credits by using the ?append_to_response param. That request would look like so:

https://api.themoviedb.org/3/tv/1399?api_key=###&append_to_response=credits

Or a season's like so:

https://api.themoviedb.org/3/tv/1399/season/1?api_key=###&append_to_response=credits

Cheers.

Thank you

Hello,

I am trying to get credits from a tv show by my app displaying the name of the tv show (for example Always Sunny In Philadelphia) getting the credit ID and the tv show ID then using http://api.themoviedb.org/3/tv/{id}/credits?api_key=XXXXXXXXXXXXX. My question is which ID do I use just ID (which gave me null) or credit ID(which gave me the credits for that 70's show)?

My logging info: FOR TV SHOW CREDIT ID::: 52fdff9cc3a3684e451f3423 --> when I selected Always Sunny in Pili

tvID::: 296161328

Thank you in advance!

Hi jrichardson,

The id for "It's Always Sunny in Philadelphia" is 2710. So with that id, you can call the TV show credits:

http://api.themoviedb.org/3/tv/2710/credits?api_key=###

If you would like to get a specific credit's info, then you can use one of the ids returned in the credits array. Here's Glenn Howerton's credit as an example:

http://api.themoviedb.org/3/credit/525741f1760ee36aaa0b8b81?api_key=###

Cheers.

I am getting the wrong id then? What I do is choose an actor get the list of movies and tv shows they have been in. Then I select one and pull the credit id and id from the selected object. That is where I got that is from so why I are they different? Thank you for the info.

Hi jrichardson,

Well, I'm not sure where you got that id from… we don't have any TV ids as high as the number you referenced above.

Search for Glenn Howerton:

https://api.themoviedb.org/3/search/person?api_key=###&query=glenn+howerton

Returns id a person with the id of 77870, head off and request the combined_credits for 77870:

https://api.themoviedb.org/3/person/77870/combined_credits?api_key=###

Look at his "It's Always Sunny in Philadelphia" credit, which has the show id 2710 and credit id of 525741f1760ee36aaa0b8b81.

How would I get the credits of always sunny in phili then? Do I have to iterate through each season and get credits back from them? When I selected always sunny in phili from list this is the data that displays:

SELECTED DATA ::::: { character = Sal; "credit_id" = 52fdff9cc3a3684e451f3423; "episode_count" = 2; "first_air_date" = "2005-08-04"; id = 2710; "media_type" = tv; name = "It's Always Sunny in Philadelphia"; "original_name" = "It's Always Sunny in Philadelphia"; "poster_path" = "/jQ0U5LjdFStCeZdOJca9Zs90yAa.jpg"; }

How do I get the credits of always sunny in phili from this data?

After a little searching: "http://themoviedb.apiary-mock.com/3/search/tv" but the documentation does specify the rest which is very inconvenient. I am assuming to be the same as for a person would be "http://themoviedb.apiary-mock.com/3/search/tv/It's+Always+Sunny+in+Philadelphia&api_key=XXXXXXXXXXXXX"?

There’s two types of credits that are added to TV. There’s season level credits (the season regulars) which can be returned by accessing any season/{season_number}/credits call and episode level which are the guest stars and episode level crew (writers, director). Some examples:

http://api.themoviedb.org/3/tv/2710/season/9/credits?api_key=###

The show level credits returns the “last season” credits:

http://api.themoviedb.org/3/tv/2710/credits?api_key=###

Episode level credits (which contain the guest stars and episode level crew) can be called via any episode number:

http://api.themoviedb.org/3/tv/2710/season/9/episode/10/credits?api_key=###

Cheers.

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

전체

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

미디어 페이지

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

TV 시즌 페이지

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

TV 에피소드 페이지

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

모든 이미지 페이지

a 이미지 추가 창 열기

모든 편집 페이지

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

토론 페이지

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

설정

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

로그인