# How to get company family trees?

**URL:** <http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144>\
**Category:** API Question\
**Created:** [April 28, 2017, 1:55pm UTC](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144 "2017-04-28T13:55:35Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![voracityemail](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@voracityemail](http://forum.companieshouse.gov.uk/u/voracityemail)\
**Post date:** [May 26, 2019, 1:37pm UTC](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144/6 "2019-05-26T13:37:08Z")

</div>

There are actually a couple of ways in which you may be able to trace the relationships between companies using the API:

1. Foreign or overseas companies (company numbers starting FC… / NF… / SF…) should have an [endpoint available listing their UK Establishments](https://developer.companieshouse.gov.uk/api/docs/company/company_number/uk-establishments/getCompanyUKEstablishments.html) (company numbers starting BR…). In turn, the [company profile](https://developer.companieshouse.gov.uk/api/docs/company/company_number/companyProfile-resource.html) of the UK establishments should reference the “parent” overseas company.
2. Officers and PSCs of companies can be companies / corporate entities themselves. There is an `identification` member in the data returned when using the officer or PSC endpoint which _may_ contain useful details of the company allowing you to look this up.
3. As an alternative to the company officer endpoint you can start from the perspective of the corporate officer using the [Officer Appointment endpoint](https://developer.companieshouse.gov.uk/api/docs/officers/officer_id/appointments/appointmentList.html) to list companies it’s an officer of.

**1) UK Establishments**  
You were referring to (1) in your question - in general I’ve found that data here is populated and correct. Examples:

The UK Establishment resource normally returns a list with one or more UK Establishments. Note that there can be none however - and UK establishments can be listed but closed.

[SF001035 (on Beta)](https://beta.companieshouse.gov.uk/company/SF001035/ukestablishments) - in the [UK Establishment resource](https://developer.companieshouse.gov.uk/api/docs/company/company_number/uk-establishments/companyUKEstablishments-resource.html) note the `company_number` field which refers to this company number (BR010414). If you view the [company profile for BR010414](https://beta.companieshouse.gov.uk/company/BR010414) you’ll see a `branch_company_details` member with data:

“branch\_company\_details” : {  
“business\_activity” : “string”,  
“parent\_company\_name” : “string”,  
“parent\_company\_number” : “string”  
},

(On Beta CH made it so these are hyperlinked - so I think you can trust these fields e.g. they’re generated by CH rather than user-populated).

Other examples:  
[FC022268](https://beta.companieshouse.gov.uk/company/FC022268/ukestablishments)  
[FC003748](https://beta.companieshouse.gov.uk/company/FC003748/ukestablishments) - 3 UK establishments  
FC031853, FC032069, FC026254

Example foreign company with no UK establishments: [NF001560](https://beta.companieshouse.gov.uk/company/NF001560/ukestablishments)

**2) [Company Officer](https://developer.companieshouse.gov.uk/api/docs/company/company_number/officers/officerList-resource.html) / [Company PSC](https://developer.companieshouse.gov.uk/api/docs/company/company_number/persons-with-significant-control/corporateEntity-resource.html)**  
Unfortunately the [relevant fields are not compulsory](https://forum.aws.chdev.org/t/officer-list-return-company-number-for-corporates/976) and data here appears to be user-entered and not validated. Thus you may get a company number but:  
a) it may not be correctly formatted so you shouldn’t just plug it into e.g. company profile endpoint. ([Example /company/01047315/officers](https://beta.companieshouse.gov.uk/company/01047315/officers) - note corporate company IDs missing zeros). You should validate this against [company number format](https://forum.aws.chdev.org/t/valid-company-number-format/713/2) (note - linked info now not the current complete list).  
b) it may not be for the Companies House registry. There is a parent registry field but again users can put anything in here…

Less accurately, you could use the [company search endpoint](https://developer.companieshouse.gov.uk/api/docs/search/companies/companysearch.html) to look up a company name given here - but again you’ve got a matching problem - especially considering the use (or not) of different identifiers such as “limited”, “ltd”, “plc”, “corp”, “GmBH”, “Cie” …

_PSCs_  
a) There seem to be some issues with [people classifying things as “legal person” incorrectly](https://forum.aws.chdev.org/t/psc-list-legal-person-with-significant-control-data-issues/2036) - mostly seems to apply to individuals but I think I’ve seen some companies so categorised also.  
b) Rarely, you may find [more than one entry for a unique PSC](https://forum.aws.chdev.org/t/pscs-multiple-active-entries-for-same-individual/2061)

**3) Officer appointments**  
This initially seems promising as links from an officer to a company should work correctly. However there are other issues here:  
a) The [“officer ID” does not relate to any other data](https://forum.aws.chdev.org/t/how-to-find-officer-id-for-officer-appointment-list/1232/3) (no, no to “company officer”).  
b) There may be multiple entries in officer appointments for the “same” entity.  
c) Some [corporate officers are incorrectly categorised as individuals](https://forum.aws.chdev.org/t/human-v-non-human-officers/1682).

---

_[View the full topic](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144)._
