The Movie Database 지원

I have a list of names and I want to determine if they were crew on any FEATURE motion pictures. At the moment I seem to have to do a bunch of queries:

Find the Person: search/person?query={name}

Assuming they exist find their id in the response

Find their Credits /person/{person_id}/movie_credits

I then have to look through crew credits and run a query on each movie i find

Find the Movie Details /movie/{movie_id}?append_to_response=release_dates

This means a minimum of three queries per person, and possibly a lot more if they have a lot of credits!

Any way to streamline this?

Also, what does it mean when a short is reported to have had a theatrical release? Movie ID = 295071 for example...

Thanks in advance for any help and insight!

3 댓글 (1 / 1)

Jump to last post

I'm not sure if I understand the problem, but... blush maybe by using this:

https://api.themoviedb.org/3/person/1304659?api_key=[MY_KEY]&language=en-US&append_to_response=combined_credits

Thanks for the quick response but your solution doesn't work for me as it

  1. presupposes I already know the ID of the person, which I don't; I only have his/her name
  2. (correct me if I'm wrong) but combined_credits include TV which I don't want
  3. the result does not include the release_type nor the length of the film so I can't verify if it was theatrical

Okay, I'll try and explain it again.

I have the *name * of a person, say "Robert Stadd" and I want to find out which Feature Films with Theatrical Releases he worked on, and what his positions were on those films.

What I'm looking to figure out is how can I accomplish that in the fewest possible calls, as the only way I can figure out how to do it requires a minimum of 3 calls, and generally a lot more.

What I'm doing know is the following, which seems really unwieldy:

 a. https://api.themoviedb.org/3/search/person?query={person_name)&api_key=[my key]&language=en-US

This returns me 0 or more users who match that name. In the case of Robert Stadd I take the one PersonID and call

 b. https://api.themoviedb.org/3/person/{person_id}/movie_credits?api_key=[my key]&language=en-US

In the case of Robert, this returns 10 separate projects but without enough information for me to know if each project had a theatrical release. So now I need to iterate through each one of these projects to get more details on them by calling

c. https://api.themoviedb.org/3/movie/{movie_id}?api_key=[my key]&language=en-US&append_to_response=release_dates

Note: The last append_to_response is required to get the release TYPE (Theatrical, Theatrical (Limited) etc)

Thus to get all the information I need on Robert requires 12 calls (one call in step a, one call in step band ten calls (one for each project) in step c

I'm hoping there is some way to make this more efficient.

Thanks in advance for any help!

Hi there,

The API isn't really designed for queries such as yours. Supporting something more efficient based on your use case here is not something that would be very easy to add.

Perhaps one day in the future something more dynamic could be built but until then, the best solution I can recommend is to bring the data in house, that way you can customize your schema however makes the most sense for your use case.

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

전체

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

미디어 페이지

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

TV 시즌 페이지

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

TV 에피소드 페이지

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

모든 이미지 페이지

a 이미지 추가 창 열기

모든 편집 페이지

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

토론 페이지

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

설정

Want to rate or add this item to a list?

로그인