# UK Companies House Scraper (`shimmering_sandworm/uk-companies-house-scraper`) Actor

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

## Pricing

from $20.00 / 1,000 uk company profiles

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/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 & PSCs)

Extract **structured UK company profiles, active directors/officers, SIC codes, registered addresses, and Persons with Significant Control (PSCs)** from **UK Companies House** — ready for B2B lead enrichment, KYB/compliance checks, Clay, n8n, Make, and AI agents (MCP).

***

### What does UK Companies House Scraper do?

Search and enrich UK limited companies and LLPs directly from the official UK registry. This Actor supports **both**:

1. **Official Companies House REST API** (using your free Companies House API key for full speed and structured JSON), and
2. **Zero-key public search fallback** (`find-and-update.company-information.service.gov.uk`) so you can test and run immediately without registering an API key first.

#### Key data extracted

- **Company profile:** `company_number`, `company_name`, `company_status`, `company_type`, `date_of_creation`, `sic_codes`, `registered_office_address`, `profile_url`
- **Active leadership (`officers`):** Active directors and secretaries with roles and appointment dates
- **Beneficial owners (`pscs`):** Active Persons with Significant Control (individual or corporate parent entities)
- **Provenance:** `data_source` (`official_api` or `public_search`)

***

### Why use this Actor?

- **Complete KYB & B2B enrichment in one run:** Instead of chaining 3 separate API calls (search → officers → PSCs), this Actor joins all three into one clean JSON record per company.
- **Filter by SIC code & incorporation date:** Find newly incorporated UK businesses in a specific industry (e.g., construction, SaaS, logistics) for B2B outbound.
- **Zero-key testing:** Try it immediately without an API key, then add your free official Companies House API key for high-volume runs.
- **Strict budget control:** Honors Apify max-charge caps and filters companies *before* fetching officer/PSC details.

***

### Input example

```json
{
  "query": "TESCO STORES LIMITED",
  "companyStatus": "active",
  "sicCodes": ["47110"],
  "incorporatedFrom": "1950-01-01",
  "maxCompanies": 25
}
```

| Field | Type | Default | Description |
|---|---|---|---|
| `query` | string | `""` | Company name or number search query. |
| `companyStatus` | string | `"active"` | Filter by status (e.g., `active`, `dissolved`, or leave empty for all). |
| `sicCodes` | array | `[]` | Filter by 5-digit UK SIC codes (e.g., `["62012", "47110"]`). |
| `incorporatedFrom` | string | `""` | Earliest incorporation date (`YYYY-MM-DD`). |
| `incorporatedTo` | string | `""` | Latest incorporation date (`YYYY-MM-DD`). |
| `maxCompanies` | integer | `25` | Maximum company records to return per run. |
| `companiesHouseApiKey` | string *(secret)* | `""` | Optional free official UK Companies House REST API key. |

***

### Output example

```json
{
  "company_number": "00519500",
  "company_name": "TESCO STORES LIMITED",
  "company_status": "active",
  "company_type": "ltd",
  "date_of_creation": "1953-05-09",
  "sic_codes": ["47110"],
  "registered_office_address": "Tesco House, Shire Park, Kestrel Way, Welwyn Garden City, AL7 1GA",
  "officers": [
    {"name": "Director Name", "role": "director", "appointed_on": "2020-01-15"}
  ],
  "pscs": [
    {"name": "Tesco Holdings Limited", "kind": "corporate-entity-person-with-significant-control"}
  ],
  "profile_url": "https://find-and-update.company-information.service.gov.uk/company/00519500",
  "data_source": "public_search"
}
```

***

### Pricing (Pay-Per-Event)

Platform compute is **included** — you only pay per enriched company record:

| Event | Price | Example Cost |
|---|---:|---|
| `actor-start` | `$0.05` | Charged once per run |
| `company-record` | `$0.02` | 50 companies = **$1.05** · 500 companies = **$10.05** |

***

### Integrations (Clay, n8n, Make & MCP)

- **Clay:** Pull newly incorporated UK companies by SIC code every Monday, then enrich active directors from `officers[]` to find business emails.
- **KYB / Compliance (n8n / Make):** Pass a UK `company_number` from your onboarding form → verify `company_status == "active"` and log `pscs[]` beneficial owners automatically.
- **Claude / Cursor (MCP):** Connect via `https://mcp.apify.com` and ask: *"Look up UK company 00519500 and list its active directors and parent PSC."*

***

### FAQ

- **Is UK Companies House data public?** Yes — UK Companies House data is published under the Open Government Licence v3.0.
- **Should I add a `companiesHouseApiKey`?** For quick tests (<25 companies), no key is needed. For recurring production runs, grab a free key from `developer.company-information.service.gov.uk` for higher throughput and faster responses.

# Actor input Schema

## `searchQuery` (type: `string`):

Company name. Defaults to Tesco when all filters are omitted.

## `sicCodes` (type: `array`):

Five-digit SIC codes

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

Maximum companies

## `incorporatedFrom` (type: `string`):

Inclusive date, YYYY-MM-DD

## `incorporatedTo` (type: `string`):

Inclusive date, YYYY-MM-DD

## `companiesHouseApiKey` (type: `string`):

Optional official API credential.

## Actor input object example

```json
{
  "maxCompanies": 50
}
```

# Actor output Schema

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("shimmering_sandworm/uk-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("shimmering_sandworm/uk-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 '{}' |
apify call shimmering_sandworm/uk-companies-house-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shimmering_sandworm/uk-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/SPJUPlMfKof85QBHa/builds/7rwYNZnGdNu0ahzlr/openapi.json
