Get all current officers / not all officers from history

Hi,
When trying to get current information on officers form CH api, we get a full list of all the the officers there ever was, there is now a button in the site to show only current, is there a way to do this right now via api?

If not will it be added?

Thanks

Dan

I don’t know of one but if you order by resigned_on in descending order then that’ll show all the ones who haven’t first. You can then filter out the rest by ignoring any where the resigned_on field is set. (See documentation for the endpoint). The point of doing so would be that if there are hundreds of historic ones and CH only serves you e.g. 30 the first time, you shouldn’t need to make further requests.

E.g. following should show active directors first:

https://api.companieshouse.gov.uk/company/00048839/officers?order_by=-resigned_on

1 Like

HI, thanks for that, we can try this to start.