# API num & startIndex not working

**URL:** <http://forum.companieshouse.gov.uk/t/api-num-startindex-not-working/80>\
**Category:** API Issues\
**Created:** [May 16, 2015, 11:21pm UTC](http://forum.companieshouse.gov.uk/t/api-num-startindex-not-working/80 "2015-05-16T23:21:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wahibbouasla](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/w/a5b964/32.png) [@wahibbouasla](http://forum.companieshouse.gov.uk/u/wahibbouasla)\
**Post date:** [May 16, 2015, 11:21pm UTC](http://forum.companieshouse.gov.uk/t/api-num-startindex-not-working/80/1 "2015-05-16T23:21:49Z")

</div>

i try to searh with this link companies?q=a  
there are more thean 38000 result but the request json show me just 20 items and when i try with [https://api.companieshouse.gov.uk/search/companies?q=a&items\_per\_page=100](https://api.companieshouse.gov.uk/search/companies?q=a&items_per_page=100) i recive 100 items also i try with ,

[https://api.companieshouse.gov.uk/search/companies?q=a&num=100](https://api.companieshouse.gov.uk/search/companies?q=a&num=100)  
but not working  
&startIndex=100

please help me

---

<div class="post-metadata">

**Author:** ![amaddaford](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/amaddaford/32/45_2.png) [@amaddaford](http://forum.companieshouse.gov.uk/u/amaddaford)\
**Post date:** [May 18, 2015, 8:46am UTC](http://forum.companieshouse.gov.uk/t/api-num-startindex-not-working/80/2 "2015-05-18T08:46:51Z")

</div>

Hi wahibbouasla,

Apologies, it looks like the developer site has not been updated to match the latest search API. The `num` and `startIndex` parameters have been renamed `items_per_page` and `start_index` (to align with the rest of the API). The query should be [https://api.companieshouse.gov.uk/search/companies?q=a&start\_index=100&items\_per\_page=100](https://api.companieshouse.gov.uk/search/companies?q=a&start_index=100&items_per_page=100).

Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![genextwebs](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/g/b38774/32.png) [@genextwebs](http://forum.companieshouse.gov.uk/u/genextwebs)\
**Post date:** [August 10, 2015, 9:29am UTC](http://forum.companieshouse.gov.uk/t/api-num-startindex-not-working/80/3 "2015-08-10T09:29:31Z")

</div>

I searched with keyword a & found 886758 results & want to iterate it pagewise so I changed the start-index to 100, 200 & so on but when I am making start-index 300 its not fetching the results even if the number of records are more. Am I doing any mistake? Can you please help me to fetch all records page wise?

Thanks.

---

<div class="post-metadata">

**Author:** ![csmith](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/csmith/32/8_2.png) [@csmith](http://forum.companieshouse.gov.uk/u/csmith)\
**Post date:** [August 12, 2015, 4:31pm UTC](http://forum.companieshouse.gov.uk/t/api-num-startindex-not-working/80/4 "2015-08-12T16:31:31Z")

</div>

The limit of 200 results has been done by design, since it was felt that by the time you get to the 200th search match, the relevance to the search is so small, that it would not be interesting.

We have reviewed this decision and will be changing this. See:

> [@Search API NOT working Properly](http://forum.aws.chdev.org/t/search-api-not-working-properly/86):
>
> i search eduction companies using search api( [https://api.companieshouse.gov.uk/search/companies?q=a&start\_index=100&items\_per\_page=100](https://api.companieshouse.gov.uk/search/companies?q=a&start_index=100&items_per_page=100)) That’s api working fine i got result total records = 10045 again i call that api with starting index 200 but not working. i got below response 416 Request Range Not Satisfiable How can i get more than 200 records using search api Thanks Suresh
