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
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة robbie3999
بتاريخ يوليو 31, 2023 في 11:03 صباحا
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".
رد بواسطة sammydigits
بتاريخ يوليو 31, 2023 في 11:44 صباحا
Thank you @robbie3999!