I am hoping to get the number of movies an actor has appeared in, and the number of movies a director has directed. I see we have "number_of_seasons" for tv shows, is something similar for "number of movies directed" by a specific director? Thanks
Kan ’n rolprent of TV-program nie vind nie? Teken aan om dit te skep.
Wil u hierdie item gradeer of tot ’n lys toevoeg?
Nie ’n lid nie?
Antwoord deur robbie3999
op 31 Julie 2023 om 11:03 VM
Hi @sammydigits, to get what you want you will want to use the person movie credits endpoint. It returns two arrays called "cast" and "crew".
For actors, you just need to count the number of entries in the "cast" array.
For directors, you will need to search the "crew" array and count all entries where "job=Director".
Antwoord deur sammydigits
op 31 Julie 2023 om 11:44 VM
Thank you @robbie3999!