Companies House API in Python: search UK companies by name, number or SIC
Search 5.6 million active UK companies from the Companies House register by name, company number, SIC code and postcode area, and link UK companies to their SEC filings, with Python.
Companies House publishes the UK register as a monthly bulk file of about 500 MB. The /v1/uk/companies endpoint loads it, keeps the active companies and answers searches in under a second, with no Companies House account or rate limit to manage. UK companies that also file with the SEC carry their CIK.
Setup
import os
import requests
H = {"Authorization": "Bearer " + os.environ["SECFEED_KEY"]}
BASE = "https://secfeedapi.com/v1"
Search by name
name is a prefix search on the registered name:
r = requests.get(BASE + "/uk/companies", headers=H, params={"name": "rio tinto", "size": 3}).json()
for c in r["companies"]:
print(c["companyNumber"], c["name"], c["type"], c["incorporated"], c.get("secCik"))
Output from a real run:
00719885 RIO TINTO PLC Public Limited Company 1962-03-30 863064
00464176 RIO TINTO AUSTRALIAN HOLDINGS LIMITED Private Limited Company 1949-02-02 None
01338672 RIO TINTO BAHIA HOLDINGS LIMITED Private Limited Company 1977-11-14 None
secCik is set on the plc because its registered name matches its SEC filer name exactly.
One company by number
c = requests.get(BASE + "/uk/company", headers=H, params={"number": "00719885"}).json()["company"]
print(c)
{'companyNumber': '00719885', 'name': 'RIO TINTO PLC', 'status': 'Active', 'type': 'Public Limited Company', 'incorporated': '1962-03-30', 'countryOfOrigin': 'United Kingdom', 'sicCodes': ['70100'], 'town': 'LONDON', 'postcodeArea': 'SW1Y', 'secCik': 863064, 'secMatch': 'exact_name'}
Going the other way, cik=863064 returns the same company, which is handy when you start from an SEC filing.
Companies by SIC code in an area
Combine a SIC code with an outward postcode to list, for example, software companies (SIC 62012) in London EC2A:
r = requests.get(BASE + "/uk/companies", headers=H, params={"sic": "62012", "postcodeArea": "EC2A", "size": 5}).json()
for c in r["companies"]:
print(c["companyNumber"], c["name"], c["incorporated"])
print("more pages:", r["hasMore"])
08252384 1 TAKE SYSTEMS LIMITED 2012-10-15
08293572 10AM LTD 2012-11-14
09727850 10BIT FX LIMITED 2015-08-11
09724325 10BIT TECHNOLOGIES LIMITED 2015-08-10
17241824 10MIL TECHNOLOGIES LTD 2026-05-26
more pages: True
What to keep in mind
- Active companies only, refreshed monthly from the bulk file. Dissolved companies and filing history are not included.
- Company level data only: no officers, no persons with significant control, and only the outward part of the postcode.
- The SEC link is an exact name match, so only about a hundred UK companies carry one. Subsidiaries with a different name are not linked.
sizegoes up to 50 per call.- Contains public sector information licensed under the Open Government Licence v3.0 (Companies House).