Hi,
I noticed an issue with the Multi search endpoint: https://api.themoviedb.org/3/search/multi
It has a poster_path in the response object, but it's always null. When checking the Person search, the image can be found under profile_path instead of poster_path.
I was wondering if the backend can fix that by redirecting the Person profile_path as a poster_path in the Multi endpoint.
Thank you.
찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.
이 항목을 평가하거나 목록에 추가할까요?
회원이 아닌가요?
Travis Bell님의 댓글
1월 26, 2024 at 11:01 오전
Hi @gustavopeq, no, we cannot make a change like this.
Every media object returned across all of the many different endpoints are the same. Whether it's search, lists, popular, or trending, everything is consistent per media type.
You'll have to check which media type it is you're dealing with and template out accordingly. Note the
media_type
field that is returned so you can make that decision.Cheers.
gustavopeq님의 댓글
1월 26, 2024 at 5:39 오후
Understood... So when using this Multi endpoint, if I need to display the Person's profile picture, it's expected that I do an extra API call by the Person ID, to be able to get the profile_path right? Thanks @travisbell
Travis Bell님의 댓글
1월 26, 2024 at 6:06 오후
No. The
profile_path
field is returned as part of the object. Here's the response for a search of "Brad Pitt", notice the first response has aprofile_path
fieldRequest
Response
gustavopeq님의 댓글
1월 26, 2024 at 6:22 오후
Ohhh, so it does comes with the profile_path when the media_type is "person" I was using "Response 200 body" in https://developer.themoviedb.org/reference/search-multi , and it doesn't list the profile_path there, so I thought it didn't exist at all. That makes more sense... Thanks a lot @travisbell