# UK Companies House Scraper: Profiles, Officers, Filings & PSCs (`best_apis/companies-house-scraper`) Actor

Scrape the UK Companies House public register: company profiles, directors and secretaries, filing history, persons with significant control and charges. Search by name or look up by company number. No API key. $2 per 1,000 companies.

- **URL**: https://apify.com/best_apis/companies-house-scraper.md
- **Developed by:** [A Q](https://apify.com/best_apis) (community)
- **Categories:** Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Scraper: Profiles, Officers, Filings & PSCs

Pull structured data from the **public UK Companies House register** with no API key and no login. Look up companies by number or search by name and get:

- **Company profiles**: name, status, type, incorporation / dissolution dates, registered office address, SIC codes, previous names, accounts due dates, confirmation statement dates
- **Officers**: directors, secretaries and LLPs — role, active/resigned, appointed/resigned dates, nationality, occupation, country of residence, correspondence address (month/year of birth only, as published)
- **Filing history**: type, date, description and document PDF link (accounts, confirmation statements, SH forms, and more)
- **Persons with significant control (PSCs)**: beneficial owners when the company has notified any
- **Charges summary**: outstanding / satisfied counts and a short sample list

Data comes from the same public pages anyone can browse at [find-and-update.company-information.service.gov.uk](https://find-and-update.company-information.service.gov.uk). Personal contact details beyond what Companies House publishes are never collected.

### Pricing: $2 per 1,000 companies

| Event | Price | Notes |
|---|---|---|
| Company profile | **$0.002** ($2 / 1,000) | One per successfully scraped company |
| Officer | **$0.001** ($1 / 1,000) | One per officer row |
| Filing | **$0.0004** ($0.40 / 1,000) | One per filing-history row |
| PSC | **$0.001** ($1 / 1,000) | One per PSC row |
| Actor start | $0.0005 per GB (256 MB default) | |
| Failed lookups, search listing only | **free** | |

Competitors typically charge $4–10 per 1,000 companies plus officer fees. Set **Max companies** and your Apify maximum cost per run; both are always respected.

### Input examples

Two companies with officers (the Store Try-it default):

```json
{ "companyNumbers": ["00445790", "00000006"], "includeOfficers": true }
```

Search by name, take the top 10 matches, with officers:

```json
{ "searchQueries": ["tesco"], "maxResultsPerSearch": 10, "includeOfficers": true }
```

Full pack for one company (profile + officers + 25 newest filings + PSCs + charges):

```json
{
  "companyNumbers": ["00445790"],
  "includeOfficers": true,
  "includeFilings": true,
  "maxFilingsPerCompany": 25,
  "includePscs": true,
  "includeCharges": true
}
```

### Output

Flat mode (default) writes one dataset row per entity with a `kind` of `company`, `officer`, `filing` or `psc`. Company mode nests officers/filings/PSCs on the profile row. Failed numbers get a free row with `status: "failed"` and appear in the `FAILURES` key-value record. `SUMMARY` holds run totals.

### Use cases

- **KYC / vendor onboarding**: verify a UK company's status, address and directors before you sign.
- **Lead enrichment**: attach Companies House data to a list of company numbers from another scraper or CRM.
- **Competitor and market research**: watch filings and officer changes for a peer set on a schedule.
- **Due diligence**: pull filing history and PSC notices into a case file.

### FAQ

**Do I need a Companies House API key?** No. This Actor reads the public website.

**Are company numbers zero-padded?** Numeric numbers are normalised to 8 digits (`445790` → `00445790`). Prefixed numbers (Scottish `SC…`, NI `NI…`, OE, etc.) keep their letters.

**Is director date of birth included?** Only the month and year, exactly as Companies House publishes them. Full dates of birth are not public.

**Will this work for dissolved companies?** Yes — profiles and historical officers/filings are returned when still on the register.

### API example

```bash
curl "https://api.apify.com/v2/acts/best_apis~companies-house-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"companyNumbers":["00445790"],"includeOfficers":true}'
```

### Changelog

- **1.0.0** — Initial public release: search, profiles, officers, filings, PSCs, charges summary; flat or nested output; charge-cap aware.

# Actor input Schema

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

UK company numbers to look up (e.g. 00445790 or 00000006). Leading zeros matter. You can also paste full Companies House URLs.

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

Company name searches on the public Companies House register. Each query returns matching companies (see Max results per search).

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

Fetch every current and resigned officer. Charged per officer row.

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

Fetch filing history (accounts, confirmation statements, share allotments…). Charged per filing row. Can be large for old PLCs.

## `includePscs` (type: `boolean`):

Fetch PSCs / beneficial owners when the company has them. Charged per PSC row.

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

Add the charges count and a short list of outstanding charges on the company row (no extra charge).

## `officersOnlyActive` (type: `boolean`):

Skip resigned officers.

## `maxOfficersPerCompany` (type: `integer`):

Cap officers fetched per company.

## `maxFilingsPerCompany` (type: `integer`):

Cap filing-history rows per company (newest first).

## `maxResultsPerSearch` (type: `integer`):

How many companies to take from each search query (Companies House returns 20 per page).

## `maxCompanies` (type: `integer`):

Hard cap for the whole run so cost stays predictable.

## `outputMode` (type: `string`):

Flat mode is best for CSV/Sheets and MCP. Company mode nests related data on the profile row.

## `proxyConfiguration` (type: `object`):

Optional. Not needed for Companies House. Use Apify Proxy only if you hit rate limits.

## Actor input object example

```json
{
  "companyNumbers": [
    "00445790",
    "00000006"
  ],
  "includeOfficers": true,
  "includeFilings": false,
  "includePscs": false,
  "includeCharges": false,
  "officersOnlyActive": false,
  "maxOfficersPerCompany": 200,
  "maxFilingsPerCompany": 50,
  "maxResultsPerSearch": 20,
  "maxCompanies": 100,
  "outputMode": "flat",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `companies` (type: `string`):

No description

## `officers` (type: `string`):

No description

## `filings` (type: `string`):

No description

## `pscs` (type: `string`):

No description

## `full` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `failures` (type: `string`):

No description

# 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 = {
    "companyNumbers": [
        "00445790",
        "00000006"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("best_apis/companies-house-scraper").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 = { "companyNumbers": [
        "00445790",
        "00000006",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("best_apis/companies-house-scraper").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 '{
  "companyNumbers": [
    "00445790",
    "00000006"
  ]
}' |
apify call best_apis/companies-house-scraper --silent --output-dataset

```

## MCP server setup

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

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/pMsiStaieIWlmO6xT/builds/wtd3FPXrMEljk163y/openapi.json
