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: scavio-companies-house
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
---
# 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=clawhub&utm_medium=skill&utm_campaign=scavio-companies-house) (50 free credits to get started, no card required):
```bash
export SCAVIO_API_KEY=sk_live_your_key
```
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 https://scavio.dev/docs/rate-limits.
- `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.
added explicit intent, structured inputs with env var setup, numbered procedure with input/output for each api call, expanded decision points covering all 6 error codes plus pagination edge cases and officer counting, detailed output contract with response shapes for all 4 endpoints, and outcome signal covering success criteria and verification checklist.
search the uk companies house register by company name to pull structured json data on incorporation status, officers (current and resigned), filing history, and regulatory compliance flags. use this skill for kyb checks, due diligence on uk counterparties, monitoring company filings, building uk b2b datasets, or verifying company registration details before contracts or partnerships. the skill normalizes company numbers, handles pagination across multiple result sets, and surfaces both active and historical officer records.
external connections:
environment variables:
SCAVIO_API_KEY - scavio bearer token (get free at https://scavio.dev, 50 free credits, no card required). export before running: export SCAVIO_API_KEY=sk_live_your_keycontext required:
cost model:
search for company number by name
POST https://api.scavio.dev/api/v1/companieshouse/search with json body {"query": "company name", "page": 1} and header Authorization: Bearer $SCAVIO_API_KEYdata array containing up to 20 results (company number, current name, former names, status, incorporation/dissolution date, registered office address)retrieve full company register entry
POST https://api.scavio.dev/api/v1/companieshouse/company with json body {"company_number": "09446231"} and bearer token headerFC (overseas company), also returns home registry, legal form, governing law. if BR (uk establishment), returns parent company. if CE (charitable), returns charity number.fetch current and resigned officers
POST https://api.scavio.dev/api/v1/companieshouse/officers with json body {"company_number": "09446231", "page": 1} and bearer token headerdata array of up to 35 officers per page. each record: name, role, appointment date, resignation date (null if current), correspondence address, nationality, country of residence, month-year date of birth, identity verification statusofficers_count field is lifetime appointments; resignations_count is how many ended. current officers = officers_count - resignations_count, or filter records where status is activedata array (indistinguishable from company with no officers - check page 1 first)retrieve filing history
POST https://api.scavio.dev/api/v1/companieshouse/filing-history with json body {"company_number": "09446231", "page": 1} and bearer token headerdata array of filings (most recent first). each filing: date, filing type code (e.g. AA, CS01, SH03), description, register annotations, child documents, url to filed pdf with page count. filings still processing have processing_note instead of document urldata array (indistinguishable from company with no filings - check page 1 first)continue paginating officers or filings if needed
page: 2, then page: 3, etc.data array is emptyif search returns no results:
if company number lookup fails (404):
if api key is invalid or missing (401):
SCAVIO_API_KEY env var is set and correct. prompt user to export it: export SCAVIO_API_KEY=sk_live_your_keyif rate or usage limit exceeded (429):
credits_remaining in response envelope.if upstream is temporarily unavailable (502, 503):
if search hits page 50 with more results claimed:
if officers or filing-history page returns empty:
if filing has processing_note instead of document:
if parameter validation fails (400):
query, missing company_number, or non-integer page. check the payload matches the parameter table below and retry.all responses use json envelope:
{
"data": [...],
"response_time": "123ms",
"credits_used": 1,
"credits_remaining": 49
}
search response (data array, 20 per page):
{
"company_number": "09446231",
"name": "Monzo Bank Limited",
"former_names": ["Monzo Ltd"],
"status": "active",
"incorporation_date": "2015-04-20",
"dissolved_date": null,
"registered_office": "...",
"address_postcode": "..."
}
company response (single object):
{
"company_number": "09446231",
"name": "Monzo Bank Limited",
"type": "private-limited-company",
"status": "active",
"incorporation_date": "2015-04-20",
"dissolved_date": null,
"registered_office": "...",
"sic_codes": ["64191"],
"previous_names": ["Monzo Ltd"],
"accounts_due_date": "2024-03-20",
"accounts_overdue": false,
"confirmation_statement_due": "2024-04-20",
"confirmation_statement_overdue": false,
"has_charges": false,
"has_insolvency_history": false,
"officers_count": 3,
"resignations_count": 1,
"has_uk_establishments": false
}
officers response (data array, 35 per page):
{
"name": "Alice Smith",
"role": "director",
"appointment_date": "2015-04-20",
"resignation_date": null,
"status": "active",
"correspondence_address": "...",
"nationality": "British",
"country_of_residence": "United Kingdom",
"date_of_birth": "1985-05",
"identity_verification_status": "verified"
}
filing-history response (data array, no per-page limit):
{
"date": "2024-01-15",
"type": "AA",
"description": "Annual Return",
"register_annotations": null,
"document_count": 1,
"document_url": "https://...",
"document_page_count": 2,
"processing_note": null
}
all responses include pagination metadata (search, officers, filing-history only):
page - current page numbertotal_results (search only) - total hit count across all pages (capped at 1000)data array signals end of pagination for officers and filing-historythe skill has succeeded when:
company_number that the user can verify by namestatus: active). if officers are present but page 1 is empty, that means none are currently filed with the registercredits_remaining count. if it reaches zero, further calls will fail with 429verification checklist:
data array is populated or explicitly empty (not null)credits_remaining is positive