# UK Companies House Enricher (`insulin_junkie/companies-house-enricher`) Actor

Enrich UK company data instantly using the official Companies House API. Input a list of company names or numbers and get back registered address, SIC codes, active directors, insolvency flags, filing history and more. Requires a free Companies House API key.

- **URL**: https://apify.com/insulin\_junkie/companies-house-enricher.md
- **Developed by:** [Josh Watterson](https://apify.com/insulin_junkie) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 per company enricheds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🏢 Companies House Enricher

Instantly enrich UK company data using the **official Companies House API**. Input a list of company names or registration numbers and get back a full profile for each — registered address, SIC codes, active directors, insolvency flags, filing history, and more.

No scraping. No rate-limit workarounds. Direct from the source.

---

### ✅ What you get

For each company, the actor returns:

| Field | Description |
|---|---|
| `companyName` | Full registered company name |
| `companyNumber` | Companies House registration number |
| `status` | Active, Dissolved, Liquidation etc. |
| `type` | Ltd, PLC, LLP, etc. |
| `incorporatedOn` | Date of incorporation |
| `dissolutionDate` | Date dissolved (if applicable) |
| `registeredAddress` | Full registered office address |
| `sicCodes` | SIC industry codes |
| `hasBeenLiquidated` | Boolean flag |
| `hasInsolvencyHistory` | Boolean flag |
| `hasCharges` | Boolean flag (charges/mortgages registered) |
| `jurisdiction` | england-wales, scotland, etc. |
| `companyHouseUrl` | Direct link to CH record |
| `officers` | Active directors/secretaries *(optional)* |
| `recentFilings` | Latest account filings *(optional)* |

---

### 🔑 Requirements

You need a **free Companies House API key**.

1. Go to [developer.company-information.service.gov.uk](https://developer.company-information.service.gov.uk/)
2. Register (takes 2 minutes)
3. Create a new application and copy your API key
4. Paste it into the **API Key** field in the actor input

The Companies House API is completely free with a limit of **600 requests per 5 minutes** — more than enough for most use cases.

---

### 📥 Input

```json
{
    "queries": ["Tesco PLC", "00445790", "Rolls-Royce Holdings PLC"],
    "searchType": "company_name",
    "apiKey": "your-api-key-here",
    "includeOfficers": true,
    "includeFilingHistory": false
}
````

#### Input fields

| Field | Type | Required | Description |
|---|---|---|---|
| `queries` | Array of strings | ✅ | Company names or CH numbers |
| `searchType` | `company_number` or `company_name` | ✅ | How to interpret your inputs |
| `apiKey` | String | ✅ | Your free Companies House API key |
| `includeOfficers` | Boolean | ❌ | Fetch active directors for each company |
| `includeFilingHistory` | Boolean | ❌ | Fetch recent account filings |
| `maxFilings` | Integer (1–20) | ❌ | How many filings to return (default: 5) |

**Tip:** If you're using company numbers, set `searchType` to `company_number` — it's faster and skips the search step entirely.

***

### 📤 Output example

```json
{
    "query": "00445790",
    "companyNumber": "00445790",
    "companyName": "TESCO PLC",
    "status": "active",
    "type": "plc",
    "incorporatedOn": "1947-11-27",
    "dissolutionDate": null,
    "registeredAddress": "Tesco House, Shire Park, Kestrel Way, Welwyn Garden City, AL7 1GA, England",
    "sicCodes": ["47110"],
    "hasBeenLiquidated": false,
    "hasInsolvencyHistory": false,
    "hasCharges": true,
    "jurisdiction": "england-wales",
    "companyHouseUrl": "https://find-and-update.company-information.service.gov.uk/company/00445790"
}
```

***

### 💡 Use cases

- **Lead enrichment** — append registered address, status and SIC codes to your prospect lists
- **Due diligence** — quickly check insolvency history and active directors before engaging a supplier
- **Data cleaning** — validate company names and numbers against the official register
- **Compliance** — identify dissolved or liquidated companies in your database
- **Sales intelligence** — filter leads by SIC code or company type

***

### ⚡ Performance & rate limits

- The actor adds a **200ms delay** between requests to stay well within the 600/5min limit
- For large batches (1,000+ companies), consider running multiple actor instances with split lists
- Company number lookups are faster than name searches (one fewer API call)

***

### 🔗 Data source

All data comes directly from the **UK Companies House official API** — the same data used by Companies House Search itself. Data is updated in near real-time as companies file.

- [Companies House API docs](https://developer.company-information.service.gov.uk/api/docs/)
- [Companies House Search](https://find-and-update.company-information.service.gov.uk/)

***

### 📬 Support

Found a bug or need a feature? Use the **Issues** tab on this actor's page or contact us through Apify.

# Actor input Schema

## `queries` (type: `array`):

List of company names or Companies House registration numbers to look up. You can mix names and numbers.

## `searchType` (type: `string`):

Choose whether your inputs are company numbers (faster, exact) or company names (searches CH register).

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

Your free Companies House API key. Get one at https://developer.company-information.service.gov.uk/ — takes 2 minutes to register.

## `includeOfficers` (type: `boolean`):

If enabled, fetches the current active officers (directors, secretaries etc.) for each company.

## `includeFilingHistory` (type: `boolean`):

If enabled, fetches the most recent account filings from Companies House.

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

How many recent filings to return per company (only used if Include filing history is enabled).

## Actor input object example

```json
{
  "queries": [
    "Tesco PLC",
    "00445790",
    "PayItMonthly Ltd"
  ],
  "searchType": "company_number",
  "includeOfficers": false,
  "includeFilingHistory": false,
  "maxFilings": 5
}
```

# 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("insulin_junkie/companies-house-enricher").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("insulin_junkie/companies-house-enricher").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 insulin_junkie/companies-house-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=insulin_junkie/companies-house-enricher",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "UK Companies House Enricher",
        "description": "Enrich UK company data instantly using the official Companies House API. Input a list of company names or numbers and get back registered address, SIC codes, active directors, insolvency flags, filing history and more. Requires a free Companies House API key.",
        "version": "1.0",
        "x-build-id": "BujBfrGOtNEppM8dF"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/insulin_junkie~companies-house-enricher/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-insulin_junkie-companies-house-enricher",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/insulin_junkie~companies-house-enricher/runs": {
            "post": {
                "operationId": "runs-sync-insulin_junkie-companies-house-enricher",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/insulin_junkie~companies-house-enricher/run-sync": {
            "post": {
                "operationId": "run-sync-insulin_junkie-companies-house-enricher",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "queries",
                    "apiKey"
                ],
                "properties": {
                    "queries": {
                        "title": "Company names or numbers",
                        "type": "array",
                        "description": "List of company names or Companies House registration numbers to look up. You can mix names and numbers.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchType": {
                        "title": "Search type",
                        "enum": [
                            "company_number",
                            "company_name"
                        ],
                        "type": "string",
                        "description": "Choose whether your inputs are company numbers (faster, exact) or company names (searches CH register).",
                        "default": "company_number"
                    },
                    "apiKey": {
                        "title": "Companies House API Key",
                        "type": "string",
                        "description": "Your free Companies House API key. Get one at https://developer.company-information.service.gov.uk/ — takes 2 minutes to register."
                    },
                    "includeOfficers": {
                        "title": "Include active officers (directors)",
                        "type": "boolean",
                        "description": "If enabled, fetches the current active officers (directors, secretaries etc.) for each company.",
                        "default": false
                    },
                    "includeFilingHistory": {
                        "title": "Include recent filing history",
                        "type": "boolean",
                        "description": "If enabled, fetches the most recent account filings from Companies House.",
                        "default": false
                    },
                    "maxFilings": {
                        "title": "Max filings to return",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "How many recent filings to return per company (only used if Include filing history is enabled).",
                        "default": 5
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
