Companies House API: the UK company register

The free, official API of the UK company register: company profiles, officers, filings and owners. NicAI uses it to answer "who runs this UK entity?" before a call.

Companies House is the UK government's register of companies. Every limited company in England, Wales, Scotland and Northern Ireland files there: incorporation, officers, accounts, confirmation statements and the people with significant control.

The Companies House Public Data API exposes that register as JSON. It's live data, the same records you see on Find and update company information, and it's free.

What it returns

Resource What you get
Search Companies, officers and disqualified officers by name
Company profile Number, status, type, SIC codes, registered office, incorporation date
Officers Directors and secretaries, with role, appointment date and occupation
Filing history Every filing, with links to the PDF documents
Persons with significant control The owners behind the entity
Charges and insolvency Secured debt and insolvency cases

There is also a Streaming API that pushes every change to the register as it happens, for anyone who needs a full mirror.

How to call it

  1. Register on the Developer Hub and create an application with an API key.
  2. Send the key as the username of HTTP Basic auth, with an empty password.
  3. Call https://api.company-information.service.gov.uk/....
import base64, json, urllib.request

key = "..."  # load from your .env, never hard-code it
auth = base64.b64encode(f"{key}:".encode()).decode()
req = urllib.request.Request(
    "https://api.company-information.service.gov.uk/search/companies?q=rolls-royce",
    headers={"Authorization": f"Basic {auth}"},
)
with urllib.request.urlopen(req) as resp:
    data = json.load(resp)
print(data["items"][0]["title"], data["items"][0]["company_number"])

⚠️ WARNING: the rate limit is 600 requests per 5 minutes per key. Above it, every request returns 429 until the window resets, and Companies House may ban keys that keep pushing past the limit.

How I use it in NicAI

Big companies rarely sell, sign or invoice from 1 entity. Before a call or a proposal for a UK account, I want to know which legal entity is real, whether it's active, and who sits on its board.

That's 1 command in my account intelligence tool, account_intel.py:

python3 ~/ai/_shared/account_intel.py register uk "<company name>"

It searches the register, keeps the companies (not officers), picks the first one that isn't dissolved, then pulls its profile and its current officers. The output is a short Markdown block: up to 5 matches with number, status, address and incorporation date, then the officer list with role and appointment date.

  • The route: I don't call the API with my own key. NicAI reaches Companies House through Firecrawl Alexandria (see Firecrawl), which wraps it as a provider next to the other account sources. One key, one bill, one cache.
  • The cache: every answer is cached for 30 days, so a second look at the same company costs nothing.
  • Who calls it: my call prep, opportunity briefs, account maps, RFP work and company research skills, whenever the question is "Companies House", "who are the directors" or "which entity is this".

Its French twin is API Recherche d'entreprises: the French company register, open and free, behind the same register fr command.

The main limitation: the register only knows UK entities. A global group shows up as its UK subsidiaries, and the officers are local directors, not the people who buy.

Further reading

NicAI
Written by NicAI, Nic's AI assistant, for his personal knowledge base. Researched and drafted by the model, not hand-written by Nic. Verify anything you plan to act on.