# What is the End Point URL to get company\_status alone into salesforce

**URL:** <http://forum.companieshouse.gov.uk/t/what-is-the-end-point-url-to-get-company-status-alone-into-salesforce/7804>\
**Category:** API Question\
**Created:** [April 22, 2024, 6:42am UTC](http://forum.companieshouse.gov.uk/t/what-is-the-end-point-url-to-get-company-status-alone-into-salesforce/7804 "2024-04-22T06:42:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakkaiah.madipalli](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/b/779978/32.png) [@bakkaiah.madipalli](http://forum.companieshouse.gov.uk/u/bakkaiah.madipalli)\
**Post date:** [April 22, 2024, 6:42am UTC](http://forum.companieshouse.gov.uk/t/what-is-the-end-point-url-to-get-company-status-alone-into-salesforce/7804/1 "2024-04-22T06:42:50Z")

</div>

trying to connect to use the below curl command

GET [https://api.company-information.service.gov.uk/company/{companyNumber}/company\_status](https://api.company-information.service.gov.uk/company/%7BcompanyNumber%7D/company_status)

C:\Windows\>curl -XGET -API\_KEY: [https://api.company-information.service.gov.uk/company/12387654](https://api.company-information.service.gov.uk/company/12387654)  
curl: (56) CONNECT tunnel failed, response 407

please guide its first time we are using this CH APIs .

---

<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:** [April 22, 2024, 10:49am UTC](http://forum.companieshouse.gov.uk/t/what-is-the-end-point-url-to-get-company-status-alone-into-salesforce/7804/2 "2024-04-22T10:49:28Z")

</div>

Welcome - I suppose the first question is “what is it you want to achieve overall”? Depending on that using the API may not be the best course of action! (e.g. if you just want “the data” in spreadsheet form the Companies House Bulk data products may be more appropriate).

You can search this forum using the “magnifying glass” icon at the top left. If you do so for “salesforce” you’ll find there are already various questions / topics covered:

[https://forum.aws.chdev.org/search?q=salesforce](https://forum.aws.chdev.org/search?q=salesforce)

The error you’re getting there is odd - however I’m not sure you’re using curl correctly. The curl command you’ve posted should look like the following (where MY\_API\_KEY is the API key you’ve obtained when you registered) (no need to specify X GET either - that’s a default):

curl -u MY\_API\_KEY: [https://api.company-information.service.gov.uk/company/12387654](https://api.company-information.service.gov.uk/company/12387654)

Note the colon immediately following the API key.

If you’re connecting from Windows unless you’re running on a server you will probably need to use [the localhost workaround](https://forum.aws.chdev.org/t/allow-localhost-javascript-domain/83/12) since Companies House checks that you’re calling from a registered IP address or (if calling via AJAX e.g. from javascript) a registered domain name. You also want to use a “live” application not test / sandbox (you can change this in the app registration settings).

To understand how the API works I recommend reading the documentation, starting here for an overview:

[https://developer-specs.company-information.service.gov.uk/guides/index](https://developer-specs.company-information.service.gov.uk/guides/index)

There are several pages covering the basics.

There is then more detailed information on the various APIs at:

[https://developer-specs.company-information.service.gov.uk/](https://developer-specs.company-information.service.gov.uk/)

It seems you want the [Public Data API here](https://developer-specs.company-information.service.gov.uk/companies-house-public-data-api/reference).

There’s a good short third-party overview produced by another site user here:

[https://chguide.co.uk/](https://chguide.co.uk/)

Good luck

---

<div class="post-metadata">

**Author:** ![bakkaiah.madipalli](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/b/779978/32.png) [@bakkaiah.madipalli](http://forum.companieshouse.gov.uk/u/bakkaiah.madipalli)\
**Post date:** [May 2, 2024, 5:35am UTC](http://forum.companieshouse.gov.uk/t/what-is-the-end-point-url-to-get-company-status-alone-into-salesforce/7804/4 "2024-05-02T05:35:12Z")

</div>

Thanks your for your quick replay able to getting the response

 ![image](http://discourselive.s3.dualstack.eu-west-1.amazonaws.com/original/2X/2/2681b55883db6581199d60083017179716b82fa3.png)
