# UK Companies House (`artificially/uk-companies-house`) Actor

Search and extract company data from UK Companies House. Get company details, officers, filing history, and more from the official UK government registry.

- **URL**: https://apify.com/artificially/uk-companies-house.md
- **Developed by:** [Artificially](https://apify.com/artificially) (community)
- **Categories:** Lead generation, AI, Automation
- **Stats:** 7 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

Search and extract company data with financial analysis, PSCs, charges, insolvency history, and company health scoring from the official UK registry.

### Features

#### Core Company Data

- **Company Search**: Search by company name
- **Direct Lookup**: Fetch by company number
- **Company Details**: Status, type, registration date, SIC codes
- **Company Age**: Calculated years and months since incorporation
- **Previous Names**: Historical company name changes

#### Officers & Ownership (NEW)

- **Officers**: Directors, secretaries with full details
- **Active/Resigned Counts**: Track officer changes
- **PSCs**: Persons with Significant Control (beneficial owners)
- **Natures of Control**: Voting rights, ownership percentages

#### Financial Health (NEW)

- **Charges/Mortgages**: All registered charges with status
- **Insolvency History**: Liquidation and administration records
- **Practitioner Details**: Insolvency practitioner information
- **Accounts Status**: Filing deadlines and overdue alerts

#### Company Health Score (NEW)

- **Health Score**: 0-100 score based on multiple factors
- **Status Classification**: Healthy, Caution, Concern, or Critical
- **Factor Analysis**: Explains what's affecting the score
- **Risk Indicators**: Outstanding charges, overdue accounts, etc.

#### Financial Estimates (NEW)

- **Revenue Band**: Estimated based on accounts type
- **Employee Band**: Estimated headcount range
- **Size Category**: Micro, Small, Medium, or Large

### Use Cases

- B2B lead generation with financial filtering
- Credit risk assessment and due diligence
- Competitive intelligence research
- Supplier verification and vetting
- Investment research and screening
- Compliance and KYC checks

### API Key (FREE)

This actor requires a **free** Companies House API key.

1. Go to https://developer.company-information.service.gov.uk/
2. Create an account and register an application
3. Copy your API key (600 requests per 5 minutes free)

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `apiKey` | string | Yes | - | Your free Companies House API key |
| `searchQueries` | array | No | - | Company names to search |
| `companyNumbers` | array | No | - | Direct company numbers |
| `maxResults` | number | No | `100` | Results per search |
| `includeOfficers` | boolean | No | `true` | Fetch officers |
| `includeFilingHistory` | boolean | No | `false` | Fetch recent filings |
| `maxFilings` | number | No | `10` | Filing history items |
| `includePSCs` | boolean | No | `true` | Fetch beneficial owners |
| `includeCharges` | boolean | No | `true` | Fetch mortgages/charges |
| `includeInsolvency` | boolean | No | `true` | Fetch insolvency history |
| `includeAccounts` | boolean | No | `true` | Fetch accounts info |
| `includeEstimates` | boolean | No | `true` | Calculate financial estimates |

#### Example Input

```json
{
    "apiKey": "your-free-api-key",
    "searchQueries": ["Tesco"],
    "maxResults": 5,
    "includeOfficers": true,
    "includePSCs": true,
    "includeCharges": true,
    "includeInsolvency": true
}
```

### Output

Each company produces a result with:

```json
{
    "companyNumber": "00445790",
    "companyName": "TESCO PLC",
    "companyStatus": "active",
    "companyType": "plc",
    "companyTypeDescription": "Public Limited Company",
    "companyAge": {
        "years": 76,
        "months": 2
    },
    "registeredOfficeAddress": {
        "addressLine1": "Tesco House",
        "locality": "Welwyn Garden City",
        "postalCode": "AL7 1GA"
    },
    "sicCodes": [
        {
            "code": "47110",
            "description": "Retail trade in non-specialised stores"
        }
    ],
    "officers": [
        {
            "name": "John Smith",
            "role": "director",
            "appointedOn": "2020-01-15",
            "nationality": "British"
        }
    ],
    "activeOfficersCount": 12,
    "pscs": [
        {
            "name": "Investment Fund Ltd",
            "naturesOfControl": ["ownership-of-shares-75-to-100-percent"],
            "kind": "corporate-entity"
        }
    ],
    "charges": [
        {
            "status": "fully-satisfied",
            "createdOn": "2015-06-01",
            "personsEntitled": ["Barclays Bank PLC"]
        }
    ],
    "totalCharges": 15,
    "satisfiedCharges": 12,
    "outstandingCharges": 3,
    "accounts": {
        "lastAccounts": {
            "madeUpTo": "2024-02-28",
            "type": "full"
        },
        "nextAccounts": {
            "dueOn": "2024-11-28",
            "overdue": false
        }
    },
    "financialEstimates": {
        "estimatedRevenue": "> £36m",
        "employeeBand": "> 250 employees",
        "revenueSource": "Based on full accounts filing"
    },
    "companyHealth": {
        "score": 95,
        "status": "healthy",
        "factors": [
            "Established company (10+ years)",
            "Multiple active officers"
        ]
    },
    "url": "https://find-and-update.company-information.service.gov.uk/company/00445790",
    "scrapedAt": "2024-01-20T12:00:00Z"
}
```

### Cost

This actor uses **pay-per-result** pricing:

| Cost Type | Amount |
|-----------|--------|
| Start fee | $0.05 per run |
| Per company | $0.002 |

**API key is FREE** from Companies House.

#### Example Cost Calculation

- 100 companies: $0.05 + (100 x $0.002) = $0.25
- 1,000 companies: $0.05 + (1000 x $0.002) = $2.05

### Tips

1. **Health scoring**: Use `companyHealth.status` to quickly filter companies
   - `healthy` (80-100): Low risk
   - `caution` (60-79): Some concerns
   - `concern` (40-59): Multiple issues
   - `critical` (0-39): High risk

2. **Outstanding charges**: Check `outstandingCharges` for secured debts

3. **Financial estimates**: Revenue bands based on accounts type filing

4. **PSC analysis**: Beneficial owners reveal true control structure

### Data Source

Data from [Companies House](https://www.gov.uk/government/organisations/companies-house), the official UK government registrar.

### Support

- **Built by**: [Artificially](https://apify.com/artificially)
- **Issues**: Report bugs or request features via Apify Console

# Actor input Schema

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

Your Companies House API key. Get a FREE key at: https://developer.company-information.service.gov.uk/

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

List of company names or keywords to search for

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

List of specific company registration numbers to look up

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

Maximum number of companies to return per search query

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

Include company directors and officers with their appointment dates

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

Include recent filing history with document links

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

Maximum filing history items to fetch

## `includePSCs` (type: `boolean`):

Include Persons with Significant Control (beneficial owners)

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

Include mortgages and charges registered against the company

## `includeInsolvency` (type: `boolean`):

Include insolvency history and practitioner details

## `includeAccounts` (type: `boolean`):

Include accounting reference dates and filing deadlines

## `includeEstimates` (type: `boolean`):

Estimate revenue and employee bands based on accounts type

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

Select proxies to be used by your scraper

## Actor input object example

```json
{
  "searchQueries": [
    "Apple",
    "Google UK"
  ],
  "companyNumbers": [
    "00445790",
    "FC032536"
  ],
  "maxResults": 100,
  "includeOfficers": true,
  "includeFilingHistory": false,
  "maxFilings": 10,
  "includePSCs": true,
  "includeCharges": true,
  "includeInsolvency": true,
  "includeAccounts": true,
  "includeEstimates": true
}
```

# Actor output Schema

## `companyNumber` (type: `string`):

Unique Companies House registration number

## `companyName` (type: `string`):

Official company name

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

Current status (active, dissolved, etc.)

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

Company type (ltd, plc, etc.)

## `dateOfCreation` (type: `string`):

Date company was incorporated

## `sicCodes` (type: `string`):

Standard Industrial Classification codes

## `url` (type: `string`):

URL to company on Companies House

## `scrapedAt` (type: `string`):

ISO 8601 timestamp when scraped

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

```

## MCP server setup

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

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/xblK9w82cfzzZsUEG/builds/JPajeK5h58x5co8xm/openapi.json
