Can anyone provide me with correct endpoint to get only active officers?
Do you mean âall the active officers Companies House knows about (for all companies)â or âall the active officers for a given companyâ?
The first - you can make a request to get access to the officers bulk data downloads (search on this forum for how). That is their recommended way (and indeed the only way I think).
For the second, as far as I know there isnât one - although the Companies Search web site allows you to tick to only see these.
People have been asking for this for a while.
You can change the ordering however. I believe currently the default order is that the âactiveâ officers come first. This doesnât save you from parsing the results to see if thereâs a resigned_on
field, but it does mean you may not need to request them all (Companies House have a âpagedâ API so if there are a lot of results you wonât get them all at once).
Details per here:
Good luck.
Short answer: Query param ?filter=active
.
Hereâs a post I made last year that may be of help, though I canât find an official source now that I search for it.
Good spot - we had missed that this could be applied to the Company Officers list endpoint as well as the Officers Appointments.
It would be logical, but the documentation for the former hasnât been updated to show the filter parameter - nor has the Swagger / OpenAPI spec for what thatâs worthâŚ
Thanks!