# Company Profile - New API Seems Missing Number of Data Fields as Compare to Earlier API

**URL:** <http://forum.companieshouse.gov.uk/t/company-profile-new-api-seems-missing-number-of-data-fields-as-compare-to-earlier-api/188>\
**Category:** API Issues\
**Created:** [August 5, 2015, 5:45am UTC](http://forum.companieshouse.gov.uk/t/company-profile-new-api-seems-missing-number-of-data-fields-as-compare-to-earlier-api/188 "2015-08-05T05:45:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mfairhurst](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@mfairhurst](http://forum.companieshouse.gov.uk/u/mfairhurst)\
**Post date:** [August 14, 2015, 3:49pm UTC](http://forum.companieshouse.gov.uk/t/company-profile-new-api-seems-missing-number-of-data-fields-as-compare-to-earlier-api/188/2 "2015-08-14T15:49:33Z")

</div>

The following answer is assuming that your reference to our existing API and the data missing is a comparison with our XML gateway, because the end points you give (existing and new) are both for our new JSON API: -

**[https://api.companieshouse.gov.uk/search?q={company\_number}](https://api.companieshouse.gov.uk/search?q=%7Bcompany_number%7D)** - This is the new search API

**[https://api.companieshouse.gov.uk/company/{company\_number}](https://api.companieshouse.gov.uk/company/%7Bcompany_number%7D)** - This is the new company profile API (similar to the XMLGW company details service).

* * *

**The following details where to retrieve the data specified from the new API endpoints:**

* * *

**Company Profile Data**  
The following can be retrieved from the company profile resource. Documentation for the resource can be found at: [https://developer.companieshouse.gov.uk/api/docs/company/company\_number/companyProfile-resource.html](https://developer.companieshouse.gov.uk/api/docs/company/company_number/companyProfile-resource.html)

_ **2. RegDateType** _  
Not explicitly provided but can be determined from extracting the {“company\_type”} and then using the corresponding company\_birth\_type enumeration in the constants.yml file in the github repository which will then provide “Registered On or Formed On or Incorporated On” [GitHub - companieshouse/api-enumerations](https://github.com/companieshouse/api-enumerations).

_ **3. Accounts\_DocumentAvailable** _  
Not explicitly provided but the presence of the following being returned from the company profile resource would indicate that accounts documents are available. It should also be noted that the filing history and retrieval of the images can also be made through the new API, with documentation at: [https://developer.companieshouse.gov.uk/api/docs/company/company\_number/filing-history/filing-history.html](https://developer.companieshouse.gov.uk/api/docs/company/company_number/filing-history/filing-history.html)  
[https://developer.companieshouse.gov.uk/document/docs/](https://developer.companieshouse.gov.uk/document/docs/)

{“accounts” : {“last\_acounts” : {“made\_up\_to”}}}

_ **4. Returns\_DocumentAvailable** _  
Not explicitly provided but the presence of the following being returned from the company profile resource would indicate that annual return documents are available. It should also be noted that the filing history and retrieval of the images can also be made through the new API, with documentation at: [https://developer.companieshouse.gov.uk/api/docs/company/company\_number/filing-history/filing-history.html](https://developer.companieshouse.gov.uk/api/docs/company/company_number/filing-history/filing-history.html)  
[https://developer.companieshouse.gov.uk/document/docs/](https://developer.companieshouse.gov.uk/document/docs/)

{“annual\_return” : {“last\_made\_up\_to”}}

_ **5. Mortgages\_MortgageInd** _  
{“has\_charges”}

_ **12. InLiquidation** _  
The status of the company will indicate if its in Liquidation by returning a status of liquidation.  
{“company\_status”}

The following flags are also returned which indicate if the company has ever been in liquidation or has any insolvency history, with insolvency data then available from the insolvency resource [https://developer.companieshouse.gov.uk/api/docs/company/company\_number/insolvency/insolvency.html](https://developer.companieshouse.gov.uk/api/docs/company/company_number/insolvency/insolvency.html)

{“has\_been\_liquidated”}  
{“has\_insolvency\_history”}

_ **13. SicText** _  
The SIC codes are returned {“sic\_codes” : []}. The texts for these codes can then be looked up in our enumeration files; [GitHub - companieshouse/api-enumerations](https://github.com/companieshouse/api-enumerations). With SIC codes being in constants.yml ( [SIC Code look up](http://forum.aws.chdev.org/t/sic-code-look-up/185) )

* * *

**Mortgage**  
The following can be retrieved from the charge resource API; There are 2 endpoints for charges; One which lists all charges for a company and the second which can then be used to retrieve further details for a specific charge. The members detailed below are from the “list” endpoint. Documentation for the resources can be found at: [https://developer.companieshouse.gov.uk/api/docs/company/company\_number/charges/charges.html](https://developer.companieshouse.gov.uk/api/docs/company/company_number/charges/charges.html)

_ **6. Mortgages\_NumMortCharges** _  
{“total\_count”}

_ **7. Mortgages\_NumMortOutstanding** _  
The API does not explicitly return this information but can be deduced from the other totals provided.

_ **8. Mortgages\_NumMortPartSatisfied** _  
{“part\_satisfied\_count”}

_ **9. Mortgages\_NumMortSatisfied** _  
{“satisfied\_count”}

* * *

**Officer**  
The following can be determined from the officerlist resource; Documentation for the API can be found at:

> **[Company Officers](https://developer.company-information.service.gov.uk/api/docs/company/company_number/officers/officers.html)**

_ **11. HasAppointments** _  
_Not explicitly provided but a call to the officer resource will determine if the company has appointments._

A change is underway to provide links to resources such as officers to the profile data (and other resources) so that everything is discoverable.

* * *

**Overseas Data**  
Overseas functionality is not yet available through the new API.

_ **10. HasUKestablishment** _

* * *

_ **1. CountryOfOrigin** _  
The API is not returning this specific element.

---

_[View the full topic](http://forum.companieshouse.gov.uk/t/company-profile-new-api-seems-missing-number-of-data-fields-as-compare-to-earlier-api/188)._
