Search the UK Companies House register by name, then pull a company's full register entry, its officers, and its filing history as structured JSON. 4 endpoints, 1 credit each.
---
name: companies-house-api
description: Search the UK Companies House register by name, then pull a company's full register entry, its officers, and its filing history as structured JSON. 4 endpoints, 1 credit each.
version: 1.0.0
tags: companies-house, uk-companies, company-registry, kyc, kyb, due-diligence, directors, officers, filing-history, company-number, sic-codes, b2b-data, compliance, agents, langchain, crewai, autogen, structured-data, json, ai-agents
metadata:
openclaw:
requires:
env:
- SCAVIO_API_KEY
primaryEnv: SCAVIO_API_KEY
timeout: 90
throttle: 1
emoji: "\U0001F3E2"
homepage: https://scavio.dev/docs/companies-house-search?utm_source=agent-skills&utm_medium=skill&utm_campaign=companies-house-api
---
# Companies House via Scavio
Search the UK register by company name, then read the full register entry, the officers current and resigned, and the complete filing history. All four endpoints return structured JSON from the official UK registry.
## When to trigger
Use this skill when the user asks to:
- Find a UK company's registration number from its name
- Check whether a UK company is active, dissolved, or overdue on its accounts
- List a company's directors and secretaries, current and resigned
- Read a company's filing history and pull the filed PDFs
- Run KYB or due-diligence checks on a UK counterparty
- Look up SIC codes, incorporation dates, registered offices or previous names
- Build UK B2B datasets or company-monitoring pipelines
## Setup
Get a free API key at [scavio.dev](https://scavio.dev/?utm_source=agent-skills&utm_medium=skill&utm_campaign=companies-house-api) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
### If you do not have a key yet
An agent running this skill without `SCAVIO_API_KEY` set will get `401` on every
call below. The whole path from nothing to a working key is self-serve:
1. Sign up at [dashboard.scavio.dev](https://dashboard.scavio.dev/sign-up?utm_source=agent-skills&utm_medium=skill&utm_campaign=companies-house-api) - email or Google, no card required.
2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
3. A new account starts with 50 credits. Endpoints in this skill cost 1 credit each unless the table below says otherwise.
When the balance runs out the API answers `402` with a JSON body carrying
`billing_url`. Topping up needs no code change - the same key keeps working.
The smallest purchase is 2,500 credits for $25, and monthly plans work out
cheaper per credit if the usage is steady rather than one-off.
Every request is a `POST` with a JSON body and:
```
Authorization: Bearer $SCAVIO_API_KEY
```
## Endpoints
Base URL: `https://api.scavio.dev`. All paths are under `/api/v1/companieshouse`. Every endpoint costs **1 credit**.
| Endpoint | Credits | What it returns |
|---|---|---|
| `POST /api/v1/companieshouse/search` | 1 | **Start here.** Name search returning the company number |
| `POST /api/v1/companieshouse/company` | 1 | Full register entry for one company |
| `POST /api/v1/companieshouse/officers` | 1 | Officers current and resigned, 35 per page |
| `POST /api/v1/companieshouse/filing-history` | 1 | Filings, most recent first, with the filed PDF |
Note the last path is **hyphenated**: `/filing-history`.
## Workflow
**Search first.** Everything except `/search` is keyed by the company number.
1. **Find the company:** call `/companieshouse/search` with `query`. The register matches **current and former names**, so a rebranded company is still findable under its old one.
2. **Read the entry:** call `/companieshouse/company` with `company_number`.
3. **People:** call `/companieshouse/officers` with the same number.
4. **Filings:** call `/companieshouse/filing-history` with the same number.
### Company numbers are normalised for you
`company_number` is deliberately loose - there is no format check. The register 404s on `/company/445790` and `/company/sc090312` for companies that genuinely exist, so the transport zero-pads and upper-cases the value before sending it. That means a number copied off a letterhead, or one a spreadsheet stripped the leading zeros from, still resolves.
Registry prefixes supported: `SC` (Scotland), `NI` (Northern Ireland), `OC` / `SO` / `NC` (LLPs), `FC` (overseas), `BR` (UK establishment), `CE` (charitable incorporated organisation).
### Pagination
The three paginated endpoints behave differently at the end of the list, and it matters.
- **`/search`** - `page` 1-50, **20 results per page, hard-capped at page 50**. The register serves a 1000-result window per term whatever hit count it prints: it will claim 10,000 hits for a broad term and then answer page 51 with an HTTP 416. Narrow the query rather than paging deeper.
- **`/officers`** - `page`, **35 per page, no upper bound**. Past the last page the register answers an ordinary `200` with an empty list.
- **`/filing-history`** - `page`, **no upper bound**, same empty-`200` behaviour past the end.
So on officers and filings, an empty page is the stop signal - and it is **indistinguishable** from a company that has no officers or no filings at all. Check page 1 before concluding anything.
`/company` returns a single object and takes no paging parameter.
## Parameters
### Search (`/search`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `query` | string | required | Company name or fragment (1-200 chars, non-blank). Matches current **and former** names. |
| `page` | integer | `1` | 1-50. 20 results per page; the register only serves the first 1000 matches. |
### Company (`/company`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `company_number` | string | required | 1-20 chars. Zero-padded and upper-cased for you. |
### Officers (`/officers`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `company_number` | string | required | |
| `page` | integer | `1` | 35 per page. No upper bound - past the last page is a `200` with an empty list. |
### Filing history (`/filing-history`)
| Parameter | Type | Default | Description |
|---|---|---|---|
| `company_number` | string | required | |
| `page` | integer | `1` | No upper bound - past the last page is a `200` with an empty list. |
## Examples
```python
import requests
BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1. Find the company number - matches former names too
hits = requests.post(f"{BASE}/api/v1/companieshouse/search", headers=HEADERS,
json={"query": "Monzo Bank", "page": 1}).json()
# 2. Full register entry. Loose numbers are fine - "445790" and "sc090312" both work.
company = requests.post(f"{BASE}/api/v1/companieshouse/company", headers=HEADERS,
json={"company_number": "09446231"}).json()
# 3. Officers, current and resigned
officers = requests.post(f"{BASE}/api/v1/companieshouse/officers", headers=HEADERS,
json={"company_number": "09446231", "page": 1}).json()
# 4. Filings, most recent first (note the hyphen in the path)
filings = requests.post(f"{BASE}/api/v1/companieshouse/filing-history", headers=HEADERS,
json={"company_number": "09446231", "page": 1}).json()
```
Officers and filings have no upper page bound, so page until a page comes back
empty - that is the only stop signal:
```python
def walk(path, company_number, max_pages=10):
"""1 credit per page. Stop on the first empty page."""
pages = []
for page in range(1, max_pages + 1):
data = requests.post(f"{BASE}/api/v1/companieshouse/{path}", headers=HEADERS,
json={"company_number": company_number, "page": page}).json()["data"]
if not data:
break # empty page: past the end (or nothing to list at all)
pages.append(data)
return pages
```
## Response shapes
Every response uses the envelope `{ data, response_time, credits_used, credits_remaining }`.
- **search** - company number, name, status, incorporation or dissolution date, registered office address, and the matched former names. 20 per page.
- **company** - status, type, incorporation and dissolution dates, registered office, SIC codes, previous names, accounts and confirmation-statement due dates with overdue flags, and whether it has charges, insolvency history, officers or UK establishments. An `FC` company also returns home registry, legal form and governing law; a `BR` returns its parent; a `CE` returns the charity number.
- **officers** - name, role, appointment and resignation dates, correspondence address, nationality, country of residence, month-and-year date of birth, and identity-verification status. 35 per page.
- **filing-history** - date, filing type code (`AA`, `CS01`, `SH03`), description, register annotations and child documents, and a link to the filed PDF with its page count.
**Counting active officers.** `officers_count` is every appointment ever made and `resignations_count` is how many of those ended, so the number of currently-appointed officers is the **difference**, not `officers_count`. There is no server-side active/resigned filter - the register does that client-side - so filter on each officer's `status` in the response.
**A filing still being processed** carries a `processing_note` instead of a document. That is not an error and the document is not missing permanently.
## Guardrails
- Every call is 1 credit. A full profile (search + company + officers + filings) is 4.
- **Search is capped at page 50.** The register serves a 1000-result window per term no matter what hit count it prints, and page 51 is an HTTP 416. Never promise an exhaustive list from a broad term - narrow the query.
- On officers and filing history, an empty page means either "past the end" or "there are none". Do not report "no directors" from an empty page 3 - check page 1.
- Do not compute active officers as `officers_count`. Subtract `resignations_count`, or count rows whose `status` says active.
- A missing document with a `processing_note` is a filing the register has not finished processing. Say that, rather than "the document is unavailable".
- Officer records include a partial date of birth and a correspondence address. This is public register data, but treat it with care: do not compile it into profiles of private individuals beyond what the user actually asked for.
- Never fabricate company numbers, officer names, dates or filing codes. Only return API data, and quote the company number alongside the name so the user can verify.
## Failure handling
- `400` means an invalid or missing parameter, e.g. a blank `query`. Fix and retry.
- `401` means the API key is invalid or missing. Check `SCAVIO_API_KEY`.
- `404` means the company number does not resolve. The transport already pads and upper-cases, so re-check the number via `/search` rather than reformatting it yourself.
- `429` means rate or usage limit exceeded. Wait before retrying. See [rate limits](https://scavio.dev/docs/rate-limits?utm_source=agent-skills&utm_medium=skill&utm_campaign=companies-house-api).
- `502` / `503` mean upstream is temporarily unavailable - wait a few seconds and retry.
- If a name search returns nothing, try a shorter fragment - the register matches former names, so an old trading name is worth a second attempt.
- If `SCAVIO_API_KEY` is not set, prompt the user to export it before continuing.
## Python SDK
`langchain-scavio` has no Companies House tool - use the Scavio SDK directly:
```bash
pip install scavio==0.15.0
```
```python
from scavio import ScavioClient
client = ScavioClient() # reads SCAVIO_API_KEY
hits = client.companies_house.search("Monzo Bank")
company = client.companies_house.company("09446231")
officers = client.companies_house.officers("09446231", page=1)
filings = client.companies_house.filing_history("09446231", page=1)
```
JavaScript / TypeScript:
```bash
npm install scavio@0.15.0
```
```js
import { Scavio } from "scavio";
const scavio = new Scavio(); // reads SCAVIO_API_KEY
const hits = await scavio.companiesHouse.search({ query: "Monzo Bank" });
const filings = await scavio.companiesHouse.filingHistory({ company_number: "09446231" });
```
don't have the plugin yet? install it then click "run inline in claude" again.
restructured into 6 explicit implexa sections (intent, inputs, procedure with numbered steps, decision points with if-else branches, output contract with data shapes, outcome signal with success criteria), added edge cases (api key missing, pagination edge cases, officer count computation, processing notes, rate limits), clarified pagination behavior and empty-list ambiguity, made external connection (scavio api key, env var, signup url) explicit in inputs, added error response codes and handling guidance, preserved all original api details and author workflow.
Search the UK register by company name, then read the full register entry, the officers current and resigned, and the complete filing history. All four endpoints return structured JSON from the official UK registry.
this skill searches companies house (the uk official registry) by company name to fetch the company number, then pulls structured data on the company itself, its officers, and filing history. use it to run kyb or due-diligence checks on uk counterparties, verify company status and dates, list directors and secretaries (current and resigned), or build uk b2b datasets. each of the 4 api calls costs 1 credit.
scavio api key (required): env var SCAVIO_API_KEY. get a free key at scavio.dev (50 free credits, no card required). set via:
export SCAVIO_API_KEY=sk_live_your_key
if not set, all calls return 401 unauthorized. top up at dashboard.scavio.dev when balance runs out; the api answers 402 payment_required with a billing_url in the json body.
base url: https://api.scavio.dev
all requests: post method, json body, header Authorization: Bearer $SCAVIO_API_KEY
rate limits: see scavio.dev/docs/rate-limits. 429 means backoff and retry.
network timeout: 90 seconds per request. if upstream is slow or unavailable (502, 503), wait 2-5 seconds and retry.
input: company name or fragment (1-200 chars, required, non-blank). query matches both current and former company names.
call:
POST https://api.scavio.dev/api/v1/companieshouse/search
{
"query": "company name",
"page": 1
}
output: json envelope { data, response_time, credits_used, credits_remaining }. data is an array of up to 20 result objects, each with: company_number, company_name, company_status (active/dissolved/etc), incorporation_date, dissolution_date, registered_office_address, matched_former_names (array).
cost: 1 credit.
pagination: 20 results per page, pages 1-50 only. the register serves a 1000-result window max per term (even if it claims 10k hits); page 51 returns http 416. if you get no hits, retry with a shorter fragment (old trading names often resolve).
input: company_number from step 1 (or user-supplied number, 1-20 chars). numbers are auto-normalized (zero-padded, uppercase) before sending, so loose formats work. supported prefixes: SC (scotland), NI (northern ireland), OC/SO/NC (llps), FC (overseas), BR (uk establishment), CE (charitable incorporated organisation).
call:
POST https://api.scavio.dev/api/v1/companieshouse/company
{
"company_number": "09446231"
}
output: json envelope with single object in data containing: company_status, company_type, incorporation_date, dissolution_date, registered_office, sic_codes (array), previous_names (array), accounts_due_date (with overdue flag), confirmation_statement_due_date (with overdue flag), has_charges, has_insolvency_history, has_officers, has_uk_establishments. if FC (overseas): also home_registry, legal_form, governing_law. if BR (uk establishment): also parent company info. if CE (charity): also charity_number.
cost: 1 credit.
no pagination: returns a single object, not a list.
input: company_number, page (default 1).
call:
POST https://api.scavio.dev/api/v1/companieshouse/officers
{
"company_number": "09446231",
"page": 1
}
output: json envelope with data array of up to 35 officer objects. each contains: name, role, appointment_date, resignation_date (null if current), status (active/resigned), correspondence_address, nationality, country_of_residence, date_of_birth (month-year only), identity_verification_status.
cost: 1 credit per page.
pagination: 35 per page, no upper bound. past the last page, the api returns 200 with an empty list. to fetch all, loop until data is empty.
caveat: officers_count field is total appointments ever; subtract resignations_count to get current officer count, or filter on status == "active" client-side. never report "no officers" from an empty page 3 - check page 1 first.
input: company_number, page (default 1).
call:
POST https://api.scavio.dev/api/v1/companieshouse/filing-history
{
"company_number": "09446231",
"page": 1
}
output: json envelope with data array of filing objects, most recent first. each contains: filing_date, filing_type_code (e.g. AA, CS01, SH03), description, register_annotations (array), child_documents (array), document_link (url to filed pdf), page_count. if filing is still processing: processing_note instead of document_link (not an error; document will appear later).
cost: 1 credit per page.
pagination: no upper bound. past the last page, api returns 200 with empty list. loop until data is empty.
note: path is hyphenated: /filing-history, not /filing_history.
if SCAVIO_API_KEY env var is not set: prompt the user to export it before making any api calls. all calls will fail with 401 unauthorized otherwise.
if search returns zero hits: try again with a shorter fragment or an old trading name (the register matches former names, so rebranded companies are findable under old names). if still empty, the company may not exist in uk registry or the name is too misspelled.
if company lookup returns 404 not found: the company number does not resolve. the transport already normalizes, so re-search by name rather than trying to reformat the number yourself.
if api returns 429 too many requests: back off (wait 1-5 seconds, exponential recommended) and retry. check rate limits documentation.
if api returns 400 bad request: a parameter is invalid or missing (e.g. blank query). fix the input and retry.
if api returns 402 payment required: credit balance is exhausted. extract the billing_url from the response body and prompt the user to top up. the same api key continues working after payment.
if api returns 502 or 503: upstream registry is temporarily unavailable. wait 2-5 seconds and retry (idempotent).
if officers or filing-history page comes back empty: this is the stop signal for pagination. it is indistinguishable from a company with no officers or no filings at all. check page 1 before concluding "no officers" or "no filings".
if a filing has processing_note but no document_link: the register has not finished processing that document yet. report this to the user ("filing still being processed") rather than saying the document is permanently unavailable.
if computing active officer count: do not use officers_count directly. either subtract resignations_count or count rows where status == "active".
all endpoints return a standard json envelope:
{
"data": [ ... ],
"response_time": "123ms",
"credits_used": 1,
"credits_remaining": 49
}
search (/search):
data: array of up to 20 objects, each with company_number (string), company_name, company_status, incorporation_date, dissolution_date, registered_office_address, matched_former_names (array of strings).company (/company):
data: single object with company_status, company_type, incorporation_date, dissolution_date, registered_office, sic_codes, previous_names, accounts_due_date, confirmation_statement_due_date, has_charges, has_insolvency_history, has_officers, has_uk_establishments, and conditional fields for FC (home_registry, legal_form, governing_law), BR (parent), or CE (charity_number).officers (/officers):
data: array of up to 35 objects, each with name, role, appointment_date, resignation_date, status, correspondence_address, nationality, country_of_residence, date_of_birth, identity_verification_status, officers_count, resignations_count.filing-history (/filing-history):
data: array (no page size limit, order most recent first) of objects with filing_date, filing_type_code, description, register_annotations, child_documents, document_link (or processing_note if still processing), page_count.error responses:
400: missing/invalid parameter. error body includes error and message.401: invalid/missing api key.402: credit balance exhausted. includes billing_url.404: company number does not resolve.416: pagination out of range (search page > 50).429: rate or usage limit exceeded.502/503: upstream unavailable.data guarantees: all dates are iso 8601 (yyyy-mm-dd or yyyy-mm for officer birth). company numbers in response are already normalized. never fabricate data; return only what the api provides. always quote the company number alongside the name so the user can verify.
the user knows the skill worked when:
status == "active".import requests
BASE = "https://api.scavio.dev"
API_KEY = "sk_your_key_here" # load from SCAVIO_API_KEY env var in production
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1. search by name
hits = requests.post(
f"{BASE}/api/v1/companieshouse/search",
headers=HEADERS,
json={"query": "Monzo Bank", "page": 1}
).json()
print(f"found {len(hits['data'])} results")
company_number = hits['data'][0]['company_number']
# 2. full register entry
company = requests.post(
f"{BASE}/api/v1/companieshouse/company",
headers=HEADERS,
json={"company_number": company_number}
).json()
print(f"status: {company['data']['company_status']}")
print(f"accounts due: {company['data']['accounts_due_date']}")
# 3. officers
officers = requests.post(
f"{BASE}/api/v1/companieshouse/officers",
headers=HEADERS,
json={"company_number": company_number, "page": 1}
).json()
active = [o for o in officers['data'] if o['status'] == 'active']
print(f"{len(active)} active officers")
# 4. filing history (note the hyphen)
filings = requests.post(
f"{BASE}/api/v1/companieshouse/filing-history",
headers=HEADERS,
json={"company_number": company_number, "page": 1}
).json()
for filing in filings['data']:
print(f"{filing['filing_date']}: {filing['description']}")
def paginate(path, company_number, max_pages=100):
"""walk all pages until empty. 1 credit per page. returns list of all items."""
all_items = []
for page in range(1, max_pages + 1):
resp = requests.post(
f"{BASE}/api/v1/companieshouse/{path}",
headers=HEADERS,
json={"company_number": company_number, "page": page}
).json()
items = resp.get('data', [])
if not items:
break # empty page: past the end (or nothing to list at all)
all_items.extend(items)
return all_items
all_officers = paginate("officers", "09446231")
all_filings = paginate("filing-history", "09446231")
from scavio import ScavioClient
client = ScavioClient() # reads SCAVIO_API_KEY from env
hits = client.companies_house.search("Monzo Bank")
company = client.companies_house.company("09446231")
officers = client.companies_house.officers("09446231", page=1)
filings = client.companies_house.filing_history("09446231", page=1)
install: pip install scavio==0.15.0
import { Scavio } from "scavio";
const scavio = new Scavio(); // reads SCAVIO_API_KEY from env
const hits = await scavio.companiesHouse.search({ query: "Monzo Bank" });
const company = await scavio.companiesHouse.company({ company_number: "09446231" });
const officers = await scavio.companiesHouse.officers({ company_number: "09446231", page: 1 });
const filings = await scavio.companiesHouse.filingHistory({ company_number: "09446231", page: 1 });
install: npm install scavio@0.15.0
credits: original source clawhub. enriched to implexa standards.