Home > Uncategorized > Companies house UK opens up #API as #Beta

Companies house UK opens up #API as #Beta



Our Company Check App, version 1.8 for iOS just got a cool new feature (which is currently pending app store review), you can now click on a companies’ filings, and get PDF downloads for documents that they have filed with the Companies House in the UK. These include Annual returns, shareholder agreements, and so forth.

This was thanks to the Companies’ house opening up their document API as a beta. Which is a REST based JSON service. You need to register with them, provide some fixed IPs, and you get an authentication token back. This is passed bia basic authentication over HTTPS to their service.

I used c# to integrate with them, using the following code:

Response.ContentType = strMime;
var wc = new WebClient();
const string un = “**Token goes here***”;
var credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes(un + “:”));
wc.Headers[HttpRequestHeader.Authorization] = “Basic ” + credentials;
var bData = wc.DownloadData(strUrl);

When the mime type is set to application/pdf, then the page will display a PDF, relayed from the Companies House.

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: