How to filter entries(type A) by a entry ID(type B) linked to the entries(type A)

I wanna get one ContentType entries (in my case, movies) by another ContentType entries (peoples, such as directors and actors …).
Please tell me how.

I suppose: in movies there are reference fields linking to directors and actors. As an example, in order to retrieve movies based on the value of fields.directorName with a single API call:

Thanks for your replying.
In my case, a people (for example, Clint Eastwood) fits in directers fields and also actors fields.
In addition, actors fields and directers fields are list type.

How do I retrieve movies by people Ids?