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
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de robbie3999
le 31 juillet 2023 à 11h03
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".
Réponse de sammydigits
le 31 juillet 2023 à 11h44
Thank you @robbie3999!