# UK Companies House Company Search & Profiles (Official API) (`immemorial_damask/uk-companies-house-profiles`) Actor

Search UK companies by name, SIC code, status, incorporation date and location, or look up company numbers via the official Companies House API. Clean profiles with SIC descriptions, registered office and filing due/overdue flags. No officers or PSCs.

- **URL**: https://apify.com/immemorial_damask/uk-companies-house-profiles.md
- **Developed by:** [Linus Holmgren](https://apify.com/immemorial_damask) (community)
- **Categories:** Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 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/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 Company Search & Profiles (Official API)

**Look up and search UK companies on the official Companies House register** and get clean, flat JSON company profiles: status, type, incorporation date, SIC codes with descriptions, registered office address, and accounts / confirmation statement **due and overdue** flags. Uses the official Companies House Public Data API — no HTML scraping, no proxies, no login.

**Organisation data only.** This Actor never calls the officers or persons-with-significant-control (PSC) endpoints, so you get company records without directors' personal data — simpler for UK GDPR.

Click **Start** with the prefilled input (`00102498` and `00445790`) to see **BP P.L.C.** and **TESCO PLC** come back in seconds.

**Price: $2.50 per 1,000 company profiles** (`$0.0025` per `company-profile`). Not-found numbers, invalid numbers, errors and duplicates are never charged.

### What does UK Companies House Company Search & Profiles do?

[Companies House](https://www.gov.uk/government/organisations/companies-house) is the UK's official registrar of companies. This Actor turns its [Public Data API](https://developer.company-information.service.gov.uk/) into an Apify dataset you can schedule, export to CSV / Excel, or call from **AI agents and MCP clients**:

- **Company number lookup** — paste a column of company numbers; leading zeros dropped by Excel are restored (`102498` → `00102498`, `SC1234` → `SC001234`)
- **Company name search** — official `/search/companies`
- **Advanced company search** — filter the whole register by **SIC code**, **company status**, **company type**, **incorporation date range** and **location** (great for lead lists such as "active plumbing companies in Leeds incorporated this year")
- **SIC 2007 descriptions** from the official Companies House condensed list
- **Compliance flags** — accounts next due / overdue, confirmation statement next due / overdue, insolvency history, liquidation, registered office in dispute or undeliverable
- Optional **filing history summary** (total filings + 5 latest: date, form type, category)
- Optional **charges (mortgages) summary** (total, outstanding, satisfied, part-satisfied counts — lender names not returned)
- Built-in **rate limiting** under the official 600 requests / 5 minutes, automatic retry on HTTP 429 and 5xx
- Limited permissions, 512 MB memory, predictable pay-per-event pricing

### Use cases

- **KYB / onboarding** — confirm a UK supplier or customer is active and not overdue on filings
- **Lead generation** — new companies by SIC code and town, e.g. construction, IT consultancy, hospitality
- **CRM hygiene** — refresh status, address and SIC codes for thousands of company numbers
- **Credit and risk signals** — overdue accounts, insolvency history, outstanding charges
- **AI agents** — a reliable, structured company record from the official register

### How to use it

1. Enter **company numbers**, **company name searches**, and/or **advanced search filters** (SIC codes, status, incorporation dates, location).
2. Set **Maximum company profiles** (default 100).
3. Optionally tick **Include filing history summary** and **Include charges summary**.
4. Click **Start** and open the **Overview** table, or download JSON / CSV / Excel / XML.

#### API key

The Companies House API needs a free key. The Actor ships with a shared key, so you can run it immediately. For large or frequent runs, **add your own free key** in *Companies House API key* (stored as an encrypted secret input): create an account at the [Companies House Developer Hub](https://developer.company-information.service.gov.uk/), create a Live application, and add a **REST** key. Your own key gives you your own 600 requests / 5 minutes quota.

### How much does it cost?

| Event | When it is charged | Price |
| --- | --- | --- |
| `company-profile` (primary) | Once per unique company profile written to the dataset | **$0.0025** ($2.50 / 1,000) |
| `apify-actor-start` | Once when the run starts | $0.00005 |

**Never charged:** company numbers not on the register (`NOT_FOUND`), malformed numbers (`INVALID_NUMBER`), API errors after retries (`ERROR`), and duplicates within a run. Filing history and charges summaries are included at no extra cost. The run's `maxItems` and your **maximum total charge** are both honoured: when the budget runs out the Actor stops cleanly without writing unpaid rows.

**Speed:** each company needs 1 API request (plus 1 each for the optional summaries). With the official limit of 600 requests per 5 minutes, about **500 profiles per 5 minutes** without extras.

### Input example

```json
{
  "companyNumbers": ["00102498", "445790", "SC083026"],
  "searchQueries": [],
  "sicCodes": ["43220"],
  "companyStatus": ["active"],
  "incorporatedFrom": "2025-01-01",
  "incorporatedTo": "2025-12-31",
  "location": "Leeds",
  "maxItems": 100,
  "includeFilingHistorySummary": false,
  "includeCharges": true
}
```

Company numbers are looked up directly. When any advanced filter is set, the Actor runs the official advanced search (each name in *Company name search* becomes a "company name includes" filter). Without filters, names use the standard company search.

### Output example

```json
{
  "recordStatus": "FOUND",
  "input": "00102498",
  "matchedBy": "companyNumber",
  "company_number": "00102498",
  "name": "BP P.L.C.",
  "status": "active",
  "type": "plc",
  "jurisdiction": "england-wales",
  "incorporation_date": "1909-04-14",
  "cessation_date": null,
  "sic_codes": ["70100"],
  "sic": [{ "code": "70100", "description": "Activities of head offices" }],
  "registered_office_address": {
    "address_line_1": "1 St James's Square",
    "address_line_2": "London",
    "postal_code": "SW1Y 4PD"
  },
  "registered_office_address_text": "1 St James's Square, London, SW1Y 4PD",
  "accounts_next_due": "2027-06-30",
  "accounts_overdue": false,
  "accounts_last_made_up_to": "2025-12-31",
  "confirmation_statement_next_due": "2027-05-19",
  "confirmation_statement_overdue": false,
  "has_charges": false,
  "has_insolvency_history": false,
  "charges_summary": { "total_count": 0, "outstanding_count": 0, "satisfied_count": 0, "part_satisfied_count": 0 },
  "companiesHouseUrl": "https://find-and-update.company-information.service.gov.uk/company/00102498",
  "charged": true,
  "retrievedAt": "2026-11-24T08:32:07.000Z",
  "sourceAttribution": "Contains public sector information licensed under the Open Government Licence v3.0. Source: Companies House Public Data API."
}
```

(Address objects also contain `care_of`, `po_box`, `premises`, `locality`, `region` and `country`, `null` when empty.) A `STATS` record in the key-value store summarises found / not-found / invalid / error rows, charges, API requests and rate-limit waits.

### FAQ

**Does it return directors, officers or PSCs?** No — by design. Only organisation-level data from the company profile. If you need officers, use the official API directly and handle UK GDPR yourself.

**Is this data legal to use?** Companies House register data is public sector information licensed under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). Keep the attribution in `sourceAttribution`.

**Why is `has_charges` false but the charges summary shows charges?** The profile flag can be false for companies whose charges are all satisfied or historic. The charges summary comes straight from the charges register.

**Why did I get `NOT_FOUND`?** The number is not on the register (check the prefix: `SC` Scotland, `NI` Northern Ireland, `OC` LLPs). These rows are free.

**Is this an official Companies House product?** No. It is an independent Actor that uses the official public API.

### Support

Found a bug or need a field? Open an issue on the Actor's **Issues** tab.

Contains public sector information licensed under the Open Government Licence v3.0.

# Changelog

This Actor's version history is a separate document: https://apify.com/immemorial_damask/uk-companies-house-profiles/changelog.md

# Actor input Schema

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

Companies House company numbers (e.g. 00102498, SC123456, OC300001). Leading zeros dropped by spreadsheets are restored automatically. Unknown numbers are reported as NOT_FOUND and never charged.

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

Company names or keywords to search (official /search/companies). When any advanced filter below is set, each query is used as a 'company name includes' filter in the official advanced search instead.

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

Filter by 5-digit UK SIC 2007 codes, e.g. 43220 (plumbing, heat and air-conditioning installation) or 62020 (IT consultancy). Uses the official advanced company search.

## `companyStatus` (type: `array`):

Only return companies with these statuses.

## `companyType` (type: `array`):

Official company type codes, e.g. ltd, plc, llp, private-unlimited, limited-partnership, overseas-company.

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

Earliest incorporation date, YYYY-MM-DD.

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

Latest incorporation date, YYYY-MM-DD.

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

Town, city or postcode area of the registered office, e.g. Leeds or Manchester.

## `maxItems` (type: `integer`):

Hard cap on company profiles written (and charged). Also respects the run's maximum total charge. Default 100.

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

Cap on companies taken from each name search or advanced search. Default 100.

## `includeFilingHistorySummary` (type: `boolean`):

Adds the total number of filings and the 5 most recent filings (date, form type, category, description code). One extra API call per company; no extra charge.

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

Adds counts of registered charges: total, outstanding, satisfied and part-satisfied. Lender names are not returned. One extra API call per company; no extra charge.

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

Your own free REST API key from https://developer.company-information.service.gov.uk/. Recommended for large or frequent runs: you get your own 600 requests / 5 minutes quota. Leave empty to use the Actor's shared key.

## `maxConcurrency` (type: `integer`):

Parallel requests to Companies House (1–5).

## `requestsPer5Minutes` (type: `integer`):

Self-imposed throttle under the official 600 requests / 5 minutes limit per key. HTTP 429 responses are retried with backoff automatically.

## Actor input object example

```json
{
  "companyNumbers": [
    "00102498",
    "00445790"
  ],
  "maxItems": 10,
  "maxResultsPerSearch": 100,
  "includeFilingHistorySummary": false,
  "includeCharges": false,
  "maxConcurrency": 3,
  "requestsPer5Minutes": 500
}
```

# Actor output Schema

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

Clean, flat company records (status, type, SIC, registered office, accounts and confirmation statement flags, billing flag).

## `stats` (type: `string`):

Counts of found, not-found, invalid and error rows, charges, API requests and rate-limit waits.

# 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": [
        "00102498",
        "00445790"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("immemorial_damask/uk-companies-house-profiles").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": [
        "00102498",
        "00445790",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("immemorial_damask/uk-companies-house-profiles").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": [
    "00102498",
    "00445790"
  ],
  "maxItems": 10
}' |
apify call immemorial_damask/uk-companies-house-profiles --silent --output-dataset

```

## MCP server setup

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

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/BntZ6rxxC9chSawc5/builds/ms4kF7bujaE61HDam/openapi.json
