CH Public Data API OpenAPI specification refs refer to localhost


The OpenAPI references for: Companies House Public Data API: Specification summary


Reference, I’d like to autogenerate my Typescript types for your API but this is causing a few issues.

Replacing that with allows me to access the referenced file. But that file also then contains the localhost as path.

Is this something I need to work around?

Also the entry for Officers is repeated twice which is also the case with the website.

Alternatively if we could get access to then this might be something we could do ourselves or work around with a simple text replace. None of the API’s on Github are public. Unsure if that’s something that could change

1 Like

We have in the specs because they vary between environments during development and we expect that people will adjust them manually for their specific environment. However we can see that is not convenient for developers using the live service so we will investigate that when priorities allow.

1 Like

No worries, I had a feeling that it could be something like that.

If we had a convenient way to access all files at once, like a zip of all of them that might be good. I can see how this would be low down in the list of priorities though. Thanks for taking the time to reply so quickly!