# Officer ID with more than 100 appointments

**URL:** <http://forum.companieshouse.gov.uk/t/officer-id-with-more-than-100-appointments/487>\
**Category:** Uncategorized\
**Created:** [February 29, 2016, 5:11pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-with-more-than-100-appointments/487 "2016-02-29T17:11:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshad\_ranganathan](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/a5b964/32.png) [@harshad\_ranganathan](http://forum.companieshouse.gov.uk/u/harshad_ranganathan)\
**Post date:** [February 29, 2016, 5:11pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-with-more-than-100-appointments/487/1 "2016-02-29T17:11:12Z")

</div>

For “Officer Appointments List” API, we have below query parameter :

1. items\_per\_page

CH by default restricts the number of results returned per request to 100 for the API’s.

Do you have any “ **officer\_id** ” where the number of appointments is greater than 100 ? If so please share.

**Purpose :**

We would like to extract all appointments in a single request. Hence with the capped limit set by CH, we would like to know if there is any Officer (CUR or LLP) with more than 100 appointments. If not, then we can simply give items\_per\_page as 100 and extract the full list without the need to handle pagination.

Thanks,  
Harshad

---

<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:** [March 1, 2016, 5:35pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-with-more-than-100-appointments/487/2 "2016-03-01T17:35:14Z")

</div>

@harshad_ranganathan

There are officers with more than 100 appointments. For example,

officers/YREK2Mcn9YrboFMBSjMCAjNAQxI/appointments

Thanks

@mfairhurst

---

<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:** [March 1, 2016, 6:06pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-with-more-than-100-appointments/487/3 "2016-03-01T18:06:38Z")

</div>

Just wanted to point out that, besides that fact that there _are_ companies with more than 100 officers as Mark illustrates, your logic is slightly flawed and you would miss data.

If there were no companies with more than 100 officers today, that doesn’t mean there wont be tomorrow.

If a data set is paged (so **any** resource with an items: [] member) then you **must** code to page through the data, even if so far you have only ever seen less than a maximum page worth.

Cheers  
Chris

---

<div class="post-metadata">

**Author:** ![harshad\_ranganathan](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/a5b964/32.png) [@harshad\_ranganathan](http://forum.companieshouse.gov.uk/u/harshad_ranganathan)\
**Post date:** [March 1, 2016, 7:05pm UTC](http://forum.companieshouse.gov.uk/t/officer-id-with-more-than-100-appointments/487/4 "2016-03-01T19:05:35Z")

</div>

Can you confirm on the result limits set on the various api’s like officer appointments, corporate and natural disqualifications ?

For the officer id shared by mark, the maximum items\_per\_page returned per request seems to be “50”.

Thanks,  
Harshad
