In case it's useful to anyone, I've put together a somewhat light (and not fully featured) wrapper around the companies house web based API - https://developer.companieshouse.gov...ocs/index.html
It handles the web call, the parsing of the JSON response and maps it to strongly typed objects, allowing you to write code such as this:
There's a workbook attached including the above code in a UserForm, and the necessary classes to encapsulate everything.![]()
Please Login or Register to view this content.
To use it, you'll need to sign up for a free developer API key and put that in.
Currently supports:
- Company Search
- Officer Search
- Company Details, including officers
If anyone fancies adding the rest of the data structures (it's very easy, it's just data mapping), I've got a Node (JavaScript) script that generates the classes (ish) from a JavaScript object - most of it is just boiler plate code - let me know and I'll send it over.
Enjoy
P.S This won't work on a Mac and I have no inclination to make it do so.
Bookmarks