Filter Company Profiles / Charges by 'persons entitled'

Hi,

I have a requirement of pulling general company profile information and Charges information for companies where ‘persons entitled’ section under ‘Charges’ contains a list of companies I hold.**

I’m a recent user of the API but it doesn’t seem ideal (nor feasible) to loop over all the company ids on Charges API and pull all the ‘persons entitled’ sections. I need to subset this for my analysis. Ideally I would like to pull Charges/Company information for companies containing my list of entities on the ‘persons entitled’ section.

Assuming this is not possible, perhaps a good start could be to get a list of company_ids/company names for companies where the Charges flag is TRUE. How is this achievable?

Many thanks,
Joao