# Can't get company\_details working

**URL:** <http://forum.companieshouse.gov.uk/t/cant-get-company-details-working/755>\
**Category:** Uncategorized\
**Created:** [September 19, 2016, 3:36pm UTC](http://forum.companieshouse.gov.uk/t/cant-get-company-details-working/755 "2016-09-19T15:36:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![phillips\_chris](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/48db29/32.png) [@phillips\_chris](http://forum.companieshouse.gov.uk/u/phillips_chris)\
**Post date:** [September 19, 2016, 3:36pm UTC](http://forum.companieshouse.gov.uk/t/cant-get-company-details-working/755/1 "2016-09-19T15:36:25Z")

</div>

Hi,

I thought that this would be easy. I have got the Oracle PLSQL code working to search for a company and I am trying to follow that up with an API call to get company details for a specific company - and so far failing.  
I am using

[https://developer.companieshouse.gov.uk/api/docs/company/company\_number/readCompanyProfile.html](https://developer.companieshouse.gov.uk/api/docs/company/company_number/readCompanyProfile.html)

so my endpoint is [https://api.companieshouse.gov.uk/company/](https://api.companieshouse.gov.uk/company/)  
and I then pass in a parameter called ‘company\_number’ with a string value of the actual company number that I’m interested in.

The result returned is simply {}.

I’m sure that I’m doing something silly, but I have been trying variations all afternoon with no luck.

Regards,  
Chris

---

<div class="post-metadata">

**Author:** ![phillips\_chris](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/48db29/32.png) [@phillips\_chris](http://forum.companieshouse.gov.uk/u/phillips_chris)\
**Post date:** [September 20, 2016, 8:12am UTC](http://forum.companieshouse.gov.uk/t/cant-get-company-details-working/755/2 "2016-09-20T08:12:50Z")

</div>

More information:  
I’m trying to exclude my Oracle code as being the problem and have found this website ([hurl.it](https://www.hurl.it/#top)). It is also not returning any data so may help in showing what I’m doing wrong.

 ![](http://discourselive.s3-eu-west-1.amazonaws.com/original/1X/031fb92b35893525878459b89f20eed21301647a.png)

Regards,  
Chris

---

<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:** [September 20, 2016, 8:20am UTC](http://forum.companieshouse.gov.uk/t/cant-get-company-details-working/755/3 "2016-09-20T08:20:25Z")

</div>

@phillips_chris

The URL that should be used is

[https://api.companieshouse.gov.uk/company/01414945](https://api.companieshouse.gov.uk/company/01414945)

the…

`?company_number=01414945` is incorrect

Thanks

@mfairhurst

---

<div class="post-metadata">

**Author:** ![phillips\_chris](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/p/48db29/32.png) [@phillips\_chris](http://forum.companieshouse.gov.uk/u/phillips_chris)\
**Post date:** [September 20, 2016, 8:33am UTC](http://forum.companieshouse.gov.uk/t/cant-get-company-details-working/755/4 "2016-09-20T08:33:50Z")

</div>

Hi,

Thanks, that’s it. I knew it had to be something simple.  
I just couldn’t see the difference between the Search companies call and this basic company information call.

Thanks,  
Chris
