# UK Companies House Bulk Lookup and Change Monitor (`vesperl9/companies-house-uk`) Actor

Look up UK companies by company number or name through the official Companies House API (your own free API key), and monitor status and filing changes.

- **URL**: https://apify.com/vesperl9/companies-house-uk.md
- **Developed by:** [Arian](https://apify.com/vesperl9) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 company records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## UK Companies House Bulk Lookup and Change Monitor

Look up thousands of UK companies by **company number** (or search by name) and get clean, structured company data from the **official Companies House API**. Switch on **monitor mode** and get alerted only when something changes: status, accounts or confirmation-statement dates, SIC codes, name, office location, or a new filing.

You bring your own free Companies House API key. That means no scraping, no proxies, no blocked requests, and a rate limit that belongs to you.

### What you get

One row per company:

| Field | Meaning |
|---|---|
| `companyNumber`, `companyName` | Identifier and registered name |
| `companyStatus`, `companyStatusDetail` | For example active, dissolved, liquidation |
| `companyType`, `subtype`, `jurisdiction` | Legal form and where it is registered |
| `dateOfCreation`, `dateOfCessation` | Incorporation and dissolution dates |
| `sicCodes` | SIC 2007 activity codes |
| `registeredOffice` | Locality, region, postcode area (outward code) and country |
| `accountsNextDue`, `accountsOverdue`, `accountsLastMadeUpTo` | Accounts deadlines |
| `confirmationStatementNextDue`, `confirmationStatementOverdue` | Confirmation statement deadlines |
| `hasCharges`, `hasInsolvencyHistory`, `hasBeenLiquidated` | Risk flags |
| `filings` (optional) | Recent filings: category, type, date, description code |
| `charges` (optional) | Counts and charge list: status, dates, classification |
| `companyUrl` | Link to the company page on Companies House |

Export as JSON, CSV, Excel or HTML, or read it through the Apify API.

### Use cases

- **Supplier and customer checks (KYB light):** verify that a list of company numbers is still active and filing on time.
- **Credit and risk monitoring:** get a row only when a company's status, overdue flags or insolvency flags change.
- **Sales and market research:** enrich a CRM list with SIC codes, age, type and location area.
- **Compliance teams:** a daily change feed for a watchlist of companies, delivered to e-mail, Slack, Google Sheets or a webhook through Apify integrations.

### How to use it

1. Register a free account at the Companies House developer hub, create an application of type **API key**, and copy the key.
2. Paste the key into **Your Companies House API key** (it is hidden and never stored or logged by this Actor).
3. Paste company numbers, one per line, for example `00000006`. Short numbers are padded with zeros.
4. Optionally add names to search, and tick **Include recent filings** or **Include charges summary**.
5. Click **Start**.

#### Daily change alerts (monitor mode)

Turn on **Monitor mode**, use the same company list every time, and schedule the Actor daily (Apify **Schedules**). The first run returns each company once as a baseline (or saves state silently if you switch the baseline off). After that you receive a row only for companies that changed, with a `changes` list (`field`, `from`, `to`) and any `newFilings`. You pay only for the rows you receive.

### Input

| Field | What it does |
|---|---|
| API key | Your own Companies House API key (required) |
| Company numbers | List of numbers; duplicates removed |
| Company names to search | Optional; matches are looked up in full |
| Results per name search | 1 to 100 |
| Include recent filings / Filings per company | Adds up to 100 recent filings per company |
| Include charges summary | Adds charge counts and a charge list |
| Monitor mode / baseline | Change-only output |
| Maximum rows | Cap per run (1 to 10,000) |

### Speed and limits

The Actor sends about 1.4 requests per second, below the Companies House limit of 600 requests per 5 minutes per key. A company costs 1 request, plus 1 for filings and 1 for charges when selected (monitor mode always uses 2). Roughly 1,000 companies with filings take about 25 minutes. If the limit is hit, the Actor waits and retries, and stops cleanly if it keeps being hit; run it again later for the rest.

### Pricing

Pay per result: you are charged for each company row delivered. Companies that cannot be found and lookup errors are returned as rows with an `error` field and are **not charged**. In monitor mode only rows for changed companies are charged. Set a maximum cost per run in the Apify run options; the Actor stops when it is reached. See the **Pricing** tab for the current price per 1,000 rows.

### Data source, privacy and legal

- **Source: Companies House.** Contains information from Companies House. Every output row carries this credit in its `attribution` field; please keep it when you republish the data.
- Data comes from the official **Companies House API**, using **your** API key. Companies House states that it "imposes no rules or requirements on how the information on the public register is used"; you remain responsible for your own use, and for the API terms you accepted when you registered. This Actor is **not affiliated with or endorsed by Companies House or the UK Government**, and uses no Crown insignia or Companies House logo.
- **No personal data on purpose:** this Actor does not request officers (directors, secretaries) or persons with significant control, does not output names of charge holders, and does not output filing description details that can contain names. The registered office is reduced to locality, region, postcode area and country, because small companies often register at a private address.
- Company data can be out of date or incomplete; check the original record on Companies House before relying on it. This is not credit, legal or financial advice.

### FAQ

**Do I have to pay Companies House?** The API key is free. Check the Companies House terms for current conditions.

**Can I get directors?** Not in this version, by design.

**Does it find companies by name?** Yes, with "Company names to search". Matching is done by Companies House's own search.

**What if a company number does not exist?** You get a row with `error: "Company not found"`, which is not charged.

**Issues or missing fields?** Use the Actor's **Issues** tab.

### Changelog

- 0.1: first version.

# Actor input Schema

## `apiKey` (type: `string`):

A free 'API key' application key from the Companies House developer hub. It is sent only to Companies House and is never stored or logged by this Actor.

## `companyNumbers` (type: `array`):

One per line, for example 00000006 or SC123456. Short numbers are padded with zeros (6 becomes 00000006). Duplicates are removed.

## `searchQueries` (type: `array`):

Optional. Each name is searched in the Companies House register and the matching companies are looked up in full.

## `maxSearchResults` (type: `integer`):

How many matches to take from each name search.

## `includeFilings` (type: `boolean`):

Adds the most recent filing history entries (category, type, date) to each company. One extra API request per company.

## `maxFilings` (type: `integer`):

Number of recent filings to include (first page only).

## `includeCharges` (type: `boolean`):

Adds counts and a list of registered charges (status, dates, classification; lender names are left out). One extra API request per company.

## `monitorMode` (type: `boolean`):

Compare each company with the state saved by the previous run and return only companies with changes (status, accounts and confirmation-statement dates, SIC codes, name, office location, new filings). Schedule the Actor daily. State is kept in a named key-value store in your account.

## `emitBaseline` (type: `boolean`):

If on, the first monitor run returns every company once as the baseline. If off, the first run only saves state and returns nothing.

## `maxResults` (type: `integer`):

Hard cap on rows delivered (and charged) in one run.

## Actor input object example

```json
{
  "maxSearchResults": 20,
  "includeFilings": false,
  "maxFilings": 10,
  "includeCharges": false,
  "monitorMode": false,
  "emitBaseline": true,
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

One row per company: number, name, status, type, SIC codes, accounts and confirmation statement dates, optional filings and charges, and in monitor mode the changes since the last run. Rows that could not be retrieved carry an error and are not charged.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("vesperl9/companies-house-uk").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("vesperl9/companies-house-uk").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call vesperl9/companies-house-uk --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesperl9/companies-house-uk"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3XYkoiJYEAfw9IwUK/builds/kXe8VwXhnqvL9p3Of/openapi.json
