# 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:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenlong\_wang](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/w/4af34b/32.png) [@wenlong\_wang](http://forum.companieshouse.gov.uk/u/wenlong_wang)\
**Post date:** [April 28, 2017, 1:55pm UTC](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144/1 "2017-04-28T13:55:35Z")

</div>

Hi,

Apologies for my ignorance as I’m a newbie to this API, and also fairly new to Python.

I’m trying to fetch family trees using this API, which means, input a list of company names and returns its parent company and/or child company, if applicable.

Is this API capable to achieve my goal? If so, could you please give me some idea how to do it?

Many many thanks.

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [April 28, 2017, 2:56pm UTC](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144/2 "2017-04-28T14:56:27Z")

</div>

There is no concept of parent/child companies, so no, this API will not help you achieve your goal.  
Companies can be corporate officers of other companies.  
Officers are available through the API.  
Hope this helps.

---

<div class="post-metadata">

**Author:** ![tmg](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/t/4491bb/32.png) [@tmg](http://forum.companieshouse.gov.uk/u/tmg)\
**Post date:** [November 14, 2017, 9:13am UTC](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144/3 "2017-11-14T09:13:52Z")

</div>

> [@MArkWilliams](#):
>
> Companies can be corporate officers of other companies.

I believe I have asked about the above quote in a new discussion.  
How do you find what companies that company is an officer of ? I can see it for a person officer using list appointments ?

many thanks.

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [November 16, 2017, 10:42am UTC](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144/4 "2017-11-16T10:42:36Z")

</div>

You just need to look that company up as an officer (not a company) and (if they are an officer of any companies) then lookup the appointments of that officer.  
Hope that helps

---

<div class="post-metadata">

**Author:** ![emma\_branagan](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/e/46a35a/32.png) [@emma\_branagan](http://forum.companieshouse.gov.uk/u/emma_branagan)\
**Post date:** [May 24, 2019, 2:08pm UTC](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144/5 "2019-05-24T14:08:40Z")

</div>

Hi,  
Im trying to find out if it is possible to get the parent company information. Ive found this thread that states you cannot using the API. However, listed under the company profile resource section of the API it mentions parent companies:

branch\_company\_details.parent\_company\_name string Parent company name.   
branch\_company\_details.parent\_company\_number string Parent company number.

Do these fields work and if so, do you have examples of companies that it works with?

Thankyou

Emma

---

<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).

---

<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:40pm UTC](http://forum.companieshouse.gov.uk/t/how-to-get-company-family-trees/1144/7 "2019-05-26T13:40:26Z")

</div>

Update: here’s a [neat example of using the api for generating graphic representations of company relationships](https://github.com/MatthewSmith430/CompaniesHouse) (using R).
