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
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by robbie3999
on July 31, 2023 at 11:03 AM
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".
Reply by sammydigits
on July 31, 2023 at 11:44 AM
Thank you @robbie3999!