The way I'm currently getting the directors and "top cast" for a given movie is through the https://developers.themoviedb.org/3/movies/get-movie-credits endpoint. I'm getting the first 10 itens of the array cast
and all the crew
such that crew[job] == 'Director'
. This is very inefficient when you do it for a lot of movies because the credits
response can be very long (100 KB
+).
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest element într-o listă?
Nu eşti membru?
Răspuns de Travis Bell
pe data de 11 mai 2020 la ora 12:07PM
Hi there,
At this time, there's no other method to get cast & crew. What you're doing is the only way. The only extra thing I will add is to use
append_to_response
if you're making a get details call as well. Not sure if you are, but that will at least allow the 2 calls to happen in a single HTTP call.