For “Officer Appointments List” API, we have below query parameter :
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.
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.