# Uk Companies House Scraper (`ayrtondavoli97/uk-companies-house-scraper`) Actor

Search and extract UK company data from the official Companies House registry. Filter by name, industry (SIC), location, status and date. Returns address, accounts deadlines, charges, officers and beneficial owners. No API key needed.

- **URL**: https://apify.com/ayrtondavoli97/uk-companies-house-scraper.md
- **Developed by:** [Francesco Ayrton Davoli](https://apify.com/ayrtondavoli97) (community)
- **Categories:** Agents, AI, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 results

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/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

## UK Companies House Scraper

Search and extract data on any UK company from the **official Companies House registry** — the only authoritative source for all 5 million+ registered UK businesses. No setup required, no API key needed.

---

### What you get

Every record includes:

| Field | Description | Example |
|---|---|---|
| `company_number` | Unique CH identifier | `14845699` |
| `company_name` | Registered company name | `PRIMUS TECH SERVICES LIMITED` |
| `company_status` | active / dissolved / liquidation / ... | `active` |
| `company_type` | ltd / plc / llp / ... | `ltd` |
| `date_of_creation` | Incorporation date | `2023-05-04` |
| `address_line_1` | Registered office | `30 Friern Park` |
| `address_locality` | City / town | `London` |
| `address_postal_code` | Postcode | `N12 9DA` |
| `address_country` | Country | `England` |
| `sic_codes` | Industry codes | `["62012","62020"]` |
| `sic_descriptions` | Industry names | `["Software development","IT consultancy"]` |
| `accounts_next_due` | Next accounts filing deadline | `2025-12-31` |
| `accounts_last_made_up_to` | Last accounts period end | `2024-03-31` |
| `confirmation_next_due` | Next confirmation statement due | `2026-03-28` |
| `has_charges` | Has registered charges / mortgages | `false` |
| `has_insolvency_history` | Has insolvency history | `false` |
| `ch_url` | Direct link to Companies House record | `https://find-and-update...` |
| `officers` | Active directors (optional) | `[{name, role, appointed_on, ...}]` |
| `persons_with_significant_control` | Beneficial owners (optional) | `[{name, natures_of_control, ...}]` |

---

### Input

| Parameter | Description | Default |
|---|---|---|
| `query` | Company name search | — |
| `companyStatus` | active / dissolved / liquidation / ... | `active` |
| `companyType` | ltd / plc / llp / ... | all |
| `sicCode` | Industry filter (SIC 2007 code) | — |
| `location` | City or town | — |
| `incorporatedFrom` | `YYYY-MM-DD` | — |
| `incorporatedTo` | `YYYY-MM-DD` | — |
| `includeOfficers` | Fetch active directors | `false` |
| `includePsc` | Fetch beneficial owners (PSC) | `false` |
| `maxResults` | Max companies to return | `100` |

#### Examples

**Active IT companies in London:**
```json
{
  "sicCode": "62020",
  "location": "London",
  "companyStatus": "active",
  "maxResults": 500
}
````

**New Ltd companies in any sector, 2024:**

```json
{
  "companyType": "ltd",
  "incorporatedFrom": "2024-01-01",
  "incorporatedTo": "2024-12-31",
  "maxResults": 1000
}
```

**KYC / due diligence on a specific company:**

```json
{
  "query": "Barclays",
  "includeOfficers": true,
  "includePsc": true,
  "maxResults": 5
}
```

***

### Common SIC codes

| Code | Industry |
|---|---|
| `41100` | Property development |
| `62012` | Software development |
| `62020` | IT consultancy |
| `69201` | Accounting |
| `70229` | Management consulting |
| `71121` | Civil engineering consultancy |
| `73110` | Advertising agencies |
| `78100` | Employment agencies |
| `86210` | General medical practice |
| `56101` | Licensed restaurants |
| `47910` | Online retail |

***

### Use cases

- **B2B lead generation** — find active companies in your target sector and city
- **KYC / due diligence** — verify company status, directors and beneficial owners
- **Compliance monitoring** — flag companies with insolvency history or charges
- **Market research** — track incorporation trends in a sector or region
- **Competitor intelligence** — monitor new entrants in your market
- **CRM enrichment** — add official CH data to existing company records

***

### Data source

Data comes directly from the [Companies House Public Data API](https://developer.company-information.service.gov.uk), the UK government's official business registry. All data is public, real-time and updated continuously by Companies House.

# Actor input Schema

## `query` (type: `string`):

Search companies by name. Example: Acme, Google, Barclays. Leave empty to use other filters only.

## `companyStatus` (type: `string`):

Filter by company status.

## `companyType` (type: `string`):

Filter by company type.

## `sicCode` (type: `string`):

Filter by industry. Common codes: 62020=IT Consultancy, 62012=Software Development, 69201=Accounting, 41100=Property Development, 70229=Management Consulting, 56101=Restaurants.

## `location` (type: `string`):

Filter by registered office city or town.

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

Only companies incorporated on or after this date. Format: YYYY-MM-DD

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

Only companies incorporated on or before this date. Format: YYYY-MM-DD

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

Fetch active directors and officers for each company. Adds 1 API call per company.

## `includePsc` (type: `boolean`):

Fetch Persons with Significant Control (shareholders over 25%) for each company. Adds 1 API call per company.

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

Maximum number of companies to return.

## Actor input object example

```json
{
  "query": "Acme Technologies",
  "companyStatus": "active",
  "companyType": "",
  "sicCode": "62020",
  "location": "London",
  "incorporatedFrom": "2020-01-01",
  "incorporatedTo": "2024-12-31",
  "includeOfficers": false,
  "includePsc": false,
  "maxResults": 100
}
```

# Actor output Schema

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

Scraped UK company records

# 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("ayrtondavoli97/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("ayrtondavoli97/uk-companies-house-scraper").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 ayrtondavoli97/uk-companies-house-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Uk Companies House Scraper",
        "description": "Search and extract UK company data from the official Companies House registry. Filter by name, industry (SIC), location, status and date. Returns address, accounts deadlines, charges, officers and beneficial owners. No API key needed.",
        "version": "0.0",
        "x-build-id": "BD99BJdffNTbtQG7f"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ayrtondavoli97~uk-companies-house-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ayrtondavoli97-uk-companies-house-scraper",
                "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/ayrtondavoli97~uk-companies-house-scraper/runs": {
            "post": {
                "operationId": "runs-sync-ayrtondavoli97-uk-companies-house-scraper",
                "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/ayrtondavoli97~uk-companies-house-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-ayrtondavoli97-uk-companies-house-scraper",
                "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",
                "properties": {
                    "query": {
                        "title": "Company name",
                        "type": "string",
                        "description": "Search companies by name. Example: Acme, Google, Barclays. Leave empty to use other filters only."
                    },
                    "companyStatus": {
                        "title": "Status",
                        "enum": [
                            "",
                            "active",
                            "dissolved",
                            "liquidation",
                            "administration",
                            "voluntary-arrangement",
                            "insolvency-proceedings"
                        ],
                        "type": "string",
                        "description": "Filter by company status.",
                        "default": "active"
                    },
                    "companyType": {
                        "title": "Company type",
                        "enum": [
                            "",
                            "ltd",
                            "plc",
                            "llp",
                            "private-unlimited",
                            "limited-partnership",
                            "charitable-incorporated-organisation"
                        ],
                        "type": "string",
                        "description": "Filter by company type.",
                        "default": ""
                    },
                    "sicCode": {
                        "title": "Industry (SIC code)",
                        "type": "string",
                        "description": "Filter by industry. Common codes: 62020=IT Consultancy, 62012=Software Development, 69201=Accounting, 41100=Property Development, 70229=Management Consulting, 56101=Restaurants."
                    },
                    "location": {
                        "title": "City / location",
                        "type": "string",
                        "description": "Filter by registered office city or town."
                    },
                    "incorporatedFrom": {
                        "title": "Incorporated from",
                        "type": "string",
                        "description": "Only companies incorporated on or after this date. Format: YYYY-MM-DD"
                    },
                    "incorporatedTo": {
                        "title": "Incorporated to",
                        "type": "string",
                        "description": "Only companies incorporated on or before this date. Format: YYYY-MM-DD"
                    },
                    "includeOfficers": {
                        "title": "Include directors and officers",
                        "type": "boolean",
                        "description": "Fetch active directors and officers for each company. Adds 1 API call per company.",
                        "default": false
                    },
                    "includePsc": {
                        "title": "Include beneficial owners (PSC)",
                        "type": "boolean",
                        "description": "Fetch Persons with Significant Control (shareholders over 25%) for each company. Adds 1 API call per company.",
                        "default": false
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum number of companies to return.",
                        "default": 100
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
