# UK Companies House Scraper: Company Data & SIC (`plainkitbin/companies-house-basic-company-data`) Actor

Read basic company data (name, number, status, category, registered office, SIC codes, key dates) from the Companies House bulk download as structured JSON rows. Not affiliated with Companies House Basic Company Data (bulk download, Open Government Licence v3.0).

- **URL**: https://apify.com/plainkitbin/companies-house-basic-company-data.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.79 / 1,000 companies house company rows

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

## Companies House Data Scraper: UK Company Register Rows

### Introduction

Sales teams, credit and compliance analysts, accountants, market researchers and data engineers who need a Companies House data scraper get UK company register rows as clean JSON instead of unpacking a 70 MB zip of CSV by hand. One run reads the Companies House basic company data download, keeps only the companies that match your filters and returns one row per company: company number, name, status, category, incorporation date, registered office address, SIC codes, accounts and confirmation statement dates, previous names and charge counts.

Typical jobs: build a list of newly incorporated companies in a town, find every company with a given SIC code, look up the registered office of a company by name, check which companies still carry an old name, or load UK company facts into a CRM or a data warehouse.

The price is **$0.004** per delivered company row under the `FREE` tier on Apify Pay-Per-Event (event name: `company-row`).
This Actor is an independent tool and is not affiliated with Companies House Basic Company Data (bulk download, Open Government Licence v3.0).
It needs no API key and no account at the data provider.

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

### Output Row Fields

Each delivered row contains 25 company-level fields copied from the Companies House CSV:

- `company_number`: the company number, for example `08209948`
- `company_name`: the current company name
- `company_status`: the status text of the download, for example `Active`
- `company_category`: the category text, for example `Private Limited Company`
- `country_of_origin`: the country of origin text
- `incorporation_date` and `dissolution_date`: `YYYY-MM-DD`, empty when the download holds none
- `registered_address_line_1`, `registered_address_line_2`, `registered_post_town`, `registered_county`, `registered_country`, `registered_post_code`: the registered office address of the company
- `sic_codes`: the SIC code texts of the company, up to four, for example `62020 - Information technology consultancy activities`
- `accounts_category`, `accounts_last_made_up_date`, `accounts_next_due_date`: accounts facts of the company
- `confirmation_statement_last_made_up_date`, `confirmation_statement_next_due_date`: confirmation statement dates
- `previous_names`: a list of earlier company names, each with the date of the change
- `charges_total`, `charges_outstanding`: the numbers of charges held in the download
- `snapshot_date`: the date of the download file the row came from
- `source_part`: which of the 7 download files held the row
- `uri`: the link of the company in the download

No officers, directors or other people are output, and the care-of line of the registered office is left out.

### Input and output examples

#### Example Output

```json
{
  "accounts_category": "MICRO ENTITY",
  "accounts_last_made_up_date": "2025-11-30",
  "accounts_next_due_date": "2027-08-31",
  "charges_outstanding": 0,
  "charges_total": 0,
  "company_category": "Private Limited Company",
  "company_name": "!ABRIDGE TAX LTD",
  "company_number": "16092999",
  "company_status": "Active",
  "confirmation_statement_last_made_up_date": "2025-11-20",
  "confirmation_statement_next_due_date": "2026-12-04",
  "country_of_origin": "United Kingdom",
  "dissolution_date": "",
  "incorporation_date": "2024-11-21",
  "previous_names": [{"name": "BLUECASE LTD", "changed_on": "2026-03-27"}],
  "registered_address_line_1": "82 GREAT NORTH ROAD",
  "registered_address_line_2": "GREAT NORTH BUSINESS CENTRE",
  "registered_country": "UNITED KINGDOM",
  "registered_county": "",
  "registered_post_code": "AL9 5BL",
  "registered_post_town": "HATFIELD",
  "sic_codes": ["62020 - Information technology consultancy activities"],
  "snapshot_date": "2026-11-01",
  "source_part": 1,
  "uri": "http://business.data.gov.uk/id/company/16092999"
}
```

If the download host refuses a call (HTTP 401, 403 or 429), the run ends with one extra row whose `company_category` is `status` and whose `company_number` is `STATUS_COMPANIES_HOUSE_REFUSED`. That row is never charged. Rows delivered before the refusal stay delivered and charged.

#### Example Input

```json
{
  "sic_code": "62020",
  "post_code_prefix": "EC1V",
  "incorporated_from": "2024-01-01",
  "parts": [1],
  "max_items": 10
}
```

### Tutorial

1. Open the Actor and set at least one filter, for example `name_contains` or `sic_code`.
2. Choose the download parts to read in `parts`. The 7 files are sorted by company name, so a name filter that starts with a letter late in the alphabet needs a later part.
3. Set `max_items` (1 to 1000) and start the run.
4. Read the rows from the dataset as JSON, CSV or Excel.

Each part file is read only while more rows are needed. One part holds the rows of about one seventh of the companies in the download.

### Pricing

- Event name: `company-row`
- Pricing model: Apify Pay-Per-Event
- Tier prices:
  - FREE: $0.004 per event
  - BRONZE: $0.0036 per event
  - SILVER: $0.0032 per event
  - GOLD: $0.0027872 per event
  - PLATINUM: $0.0027872 per event
  - DIAMOND: $0.0026672 per event

Each company row is pushed first to the dataset and charged right after a successful push.
A refused charge or reached spending limit halts work immediately; that row remains delivered and uncharged.
Failed requests and unreadable files produce 0 charges and push no data.
Restart safety: if a run is restarted or resumed by the platform, already delivered companies are recognized by company number and never pushed or charged twice.

### Input Parameters

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `company_number` | String | Keep the company with this Companies House registration number (1 to 8 alphanumeric characters; numeric numbers are zero-padded to 8 digits, for example 08209948). Leave empty for no company number filter. | `""` |
| `name_contains` | String | Keep companies whose current name contains this text, ignoring case. | `""` |
| `company_status` | String | Keep companies with exactly this status text, for example `Active`. | `""` |
| `company_category` | String | Keep companies with exactly this category text. | `""` |
| `sic_code` | String | Keep companies with a SIC code that starts with these 1 to 5 digits. | `""` |
| `post_code_prefix` | String | Keep companies whose registered post code starts with this text. | `""` |
| `incorporated_from` | String | Earliest incorporation date, `YYYY-MM-DD`. | `""` |
| `incorporated_to` | String | Latest incorporation date, `YYYY-MM-DD`. | `""` |
| `parts` | Array of integers | Download files to read in order, 1 to 7. | `[1]` |
| `max_items` | Integer (1-1000) | Maximum number of company rows to output. | `10` |

### Actor recommendations

Use this Actor when you need basic company facts in bulk. It holds no officer, director or filing data. For one company's officers or filing history, use the Companies House search at the provider instead.

### Companies House Data Terms and Limitations

The Actor reads the public bulk download of basic company data at `download.companieshouse.gov.uk` without a key, an account or a cookie.
The data is published under the Open Government Licence v3.0, which allows commercial reuse with attribution: Contains public sector information licensed under the Open Government Licence v3.0.

- The download is a monthly snapshot of the previous month end, so a company that changed after that date shows its old facts.
- The Actor reads the index page of the download host first and uses the newest snapshot it lists.
- It spaces its requests one second apart; HTTP 401, 403 and 429 are never retried; other transient errors are retried a bounded number of times.
- Redirects are never followed.
- A run reads at most as many part files as the rows it still needs require: at most one part file per 250 matching rows, and never more than 7.
- The provider states that the snapshot is supplied as is and is not supported.

### FAQ and support

**Does it need a Companies House API key?** No. The bulk download is public and the Actor takes no key.

**Why did my run return fewer rows than `max_items`?** Only the listed parts were read and fewer companies matched. Add more parts or loosen the filters.

**Does it include directors?** No. Only company-level facts are output.

**Who do I ask about a problem?** Open an issue on the Actor page with the input you used.

# Actor input Schema

## `company_number` (type: `string`):

Keep the company with this Companies House registration number (1 to 8 alphanumeric characters; numeric numbers are zero-padded to 8 digits, for example 08209948). Leave empty for no company number filter.

## `name_contains` (type: `string`):

Keep companies whose current name contains this text, ignoring upper and lower case. Leave empty for no name filter.

## `company_status` (type: `string`):

Keep companies with exactly this status text, for example Active. Leave empty for all statuses.

## `company_category` (type: `string`):

Keep companies with exactly this category text, for example Private Limited Company. Leave empty for all categories.

## `sic_code` (type: `string`):

Keep companies with at least one SIC code that starts with these 1 to 5 digits, for example 62020. Leave empty for no SIC filter.

## `post_code_prefix` (type: `string`):

Keep companies whose registered office post code starts with this text, spaces ignored, for example EC1V. Leave empty for no post code filter.

## `incorporated_from` (type: `string`):

Keep companies incorporated on or after this date (format: YYYY-MM-DD).

## `incorporated_to` (type: `string`):

Keep companies incorporated on or before this date (format: YYYY-MM-DD).

## `parts` (type: `array`):

Which of the 7 download files to read, in order (1 to 7). The files are sorted by company name, so part 1 starts with names beginning with a symbol or digit. A part is read only while more rows are needed.

## `max_items` (type: `integer`):

Maximum total number of company rows to output (prefilled default 10).

## Actor input object example

```json
{
  "company_number": "",
  "name_contains": "",
  "company_status": "",
  "company_category": "",
  "sic_code": "",
  "post_code_prefix": "",
  "incorporated_from": "",
  "incorporated_to": "",
  "parts": [
    1
  ],
  "max_items": 10
}
```

# Actor output Schema

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

Dataset items produced by this run.

# 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 = {
    "company_number": "",
    "name_contains": "",
    "company_status": "",
    "company_category": "",
    "sic_code": "",
    "post_code_prefix": "",
    "incorporated_from": "",
    "incorporated_to": "",
    "parts": [
        1
    ],
    "max_items": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/companies-house-basic-company-data").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 = {
    "company_number": "",
    "name_contains": "",
    "company_status": "",
    "company_category": "",
    "sic_code": "",
    "post_code_prefix": "",
    "incorporated_from": "",
    "incorporated_to": "",
    "parts": [1],
    "max_items": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/companies-house-basic-company-data").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 '{
  "company_number": "",
  "name_contains": "",
  "company_status": "",
  "company_category": "",
  "sic_code": "",
  "post_code_prefix": "",
  "incorporated_from": "",
  "incorporated_to": "",
  "parts": [
    1
  ],
  "max_items": 10
}' |
apify call plainkitbin/companies-house-basic-company-data --silent --output-dataset

```

## MCP server setup

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

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/jRLYk1XzJdraJxwPN/builds/NgkUaCjTLTL1IIvsf/openapi.json
