Which ones did you try? How were you doing this e.g. what were you setting in the start_index
parameter?
I found the following old example - OC305357 - from our collection still seems to work. This company has over a thousand officers total. Don’t think I’ve ever tested the lot but I just got 200 now and have got back more in the past. Notice the etag has changed between calls - so this represents the record set you’ve requested (not the entire list). Not that this system is fully functional yet if I recall…
Example shown was obtained using curl but the principle’s the same e.g. just page through using parameters start_index
and items_per_page
(obviously I’ve snipped the results for this one!)
curl -u{Our API key here}: “https://api.companieshoe.gov.uk/company/OC305357/officers?start_index=0&items_per_page=100”
{
"total_results":1641,
"links":{"self":"/company/OC305357/officers"},
"active_count":677, "resigned_count":964,
"etag":"a1750b86b9c5e77c7e3725e991b620e199a48480",
"start_index":0,
"items": [ ... ]
}
Next call:
curl -u{Our API key here}: “https://api.companieshoe.gov.uk/company/OC305357/officers?start_index=100&items_per_page=100”
{
"total_results": 1641,
"start_index": 100,
"inactive_count": 0,
"items_per_page": 100,
"active_count": 677,
"etag": "55b890e63e2cc2a81b8cc4ba0adffbe7fdb47645",
"kind": "officer-list",
"resigned_count": 964,
"items":[ ... ]
}