# Cannot Get all Companies from Public Data Api

**URL:** <http://forum.companieshouse.gov.uk/t/cannot-get-all-companies-from-public-data-api/6165>\
**Category:** API Issues\
**Created:** [April 13, 2023, 1:46am UTC](http://forum.companieshouse.gov.uk/t/cannot-get-all-companies-from-public-data-api/6165 "2023-04-13T01:46:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fairchanceforcrm36](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@fairchanceforcrm36](http://forum.companieshouse.gov.uk/u/fairchanceforcrm36)\
**Post date:** [April 13, 2023, 1:46am UTC](http://forum.companieshouse.gov.uk/t/cannot-get-all-companies-from-public-data-api/6165/1 "2023-04-13T01:46:28Z")

</div>

Helllo Every one Hope so you are all fine.

I was Working with the Public Data api to fetch all Companies. First, I used the Advanced searche api to get records. I used the Company Status and Size Parameter to Fetch All companies of same status and 5000 records per page. It Worked Successfully but the problem is that i cant get the next 5000 records  
When i try to give a start index of 5000 in the Parameter it works fine. but When i give start index more than 5000, it gives an internal server error

 ![Screenshot 2023-04-12 184513](http://discourselive.s3.dualstack.eu-west-1.amazonaws.com/original/2X/f/f708ec86aba2a5cf57e98c2e016db47a8c207fae.png)

---

<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 13, 2023, 12:36pm UTC](http://forum.companieshouse.gov.uk/t/cannot-get-all-companies-from-public-data-api/6165/2 "2023-04-13T12:36:24Z")

</div>

The API is NOT intended for bulk data download.  
Are you aware of our [free bulk product](http://download.companieshouse.gov.uk/en_output.html) ?  
We also have other bulk products if that one is not suitable.
