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
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por robbie3999
el 31 de julio de 2023 a las 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".
Contestado por sammydigits
el 31 de julio de 2023 a las 11:44
Thank you @robbie3999!