# Able to download only 20 items

**URL:** <http://forum.companieshouse.gov.uk/t/able-to-download-only-20-items/5339>\
**Category:** API Question\
**Created:** [August 9, 2022, 8:22am UTC](http://forum.companieshouse.gov.uk/t/able-to-download-only-20-items/5339 "2022-08-09T08:22:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashgourav505](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@yashgourav505](http://forum.companieshouse.gov.uk/u/yashgourav505)\
**Post date:** [August 9, 2022, 8:22am UTC](http://forum.companieshouse.gov.uk/t/able-to-download-only-20-items/5339/1 "2022-08-09T08:22:57Z")

</div>

Hello Team

I am using “advanced search” to download the list of companies which contains a specific string. But in the result, I can see only 20 records at a time, but the number of hits is more than 800. How can I see all the results.  
I thought of using “search all”, but I am not sure, if that would fetch me the same result.

---

<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:** [August 9, 2022, 9:35am UTC](http://forum.companieshouse.gov.uk/t/able-to-download-only-20-items/5339/2 "2022-08-09T09:35:13Z")

</div>

From the advance search documentation:

[https://developer-specs.company-information.service.gov.uk/companies-house-public-data-api/reference/search/advanced-company-search](https://developer-specs.company-information.service.gov.uk/companies-house-public-data-api/reference/search/advanced-company-search)

Are you specifying the `size` and `start_index` parameters? In your example if you specified a `size` of 1000 in your example you should get all results.

Currently Companies House limits the number of results returned at once for the _other_ search endpoints to lower values. In the other search endpoints (e.g. [Search All](https://developer-specs.company-information.service.gov.uk/companies-house-public-data-api/reference/search/search-all)) this is called `items_per_page`. If the total results were more than that number then you’d need to page through the result list. If you’d set `size` to 100 and you had 800 results, then you’d make a request with request (`size`=100) `start_index`=0, then (`size`=100) `start_index`=100. That is - `start_index` starts from zero and should be set to a multiple of `size`.

---

<div class="post-metadata">

**Author:** ![yashgourav505](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/y/bcef8e/32.png) [@yashgourav505](http://forum.companieshouse.gov.uk/u/yashgourav505)\
**Post date:** [August 9, 2022, 11:37am UTC](http://forum.companieshouse.gov.uk/t/able-to-download-only-20-items/5339/3 "2022-08-09T11:37:44Z")

</div>

Thanks so much, this is very much helpful indeed.  
I can find those parameters in there. 🙂
