# Filter Company Profiles / Charges by 'persons entitled'

**URL:** <http://forum.companieshouse.gov.uk/t/filter-company-profiles-charges-by-persons-entitled/1533>\
**Category:** API Question\
**Created:** [December 19, 2017, 12:57pm UTC](http://forum.companieshouse.gov.uk/t/filter-company-profiles-charges-by-persons-entitled/1533 "2017-12-19T12:57:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaocunha11](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/j/58956e/32.png) [@joaocunha11](http://forum.companieshouse.gov.uk/u/joaocunha11)\
**Post date:** [December 19, 2017, 12:57pm UTC](http://forum.companieshouse.gov.uk/t/filter-company-profiles-charges-by-persons-entitled/1533/1 "2017-12-19T12:57:49Z")

</div>

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
