# Companies House Scraper – UK Company Data, Directors & Filings (`devteamdrew/companies-house-scraper`) Actor

Search UK Companies House and export company profiles, SIC codes, registered addresses, directors/officers and filing history from the official API. No API key needed. Pay per result.

- **URL**: https://apify.com/devteamdrew/companies-house-scraper.md
- **Developed by:** [Andrew Moffat](https://apify.com/devteamdrew) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Companies House Scraper – UK Company Data, Directors & Filings

Search UK Companies House and export company profiles, SIC codes, registered addresses, directors/officers and filing history from the official API. No API key needed. Pay per result.

**Companies House Scraper** by Moxie: fast, reliable and polite, built on official/public data sources.

### What can it do?

- B2B lead lists by industry (SIC) and location
- KYC / due-diligence checks on suppliers
- Monitoring new incorporations with incremental mode
- Director network research

### Data source

The official Companies House Public Data API (`api.company-information.service.gov.uk`). Requires your own free API key.

### Features

- **Pay only for results** (pay-per-event pricing, no monthly rental)
- **Incremental mode**: scheduled runs return only items you haven't received before
- **LLM-ready output**: optional compact Markdown per item for RAG / AI agents
- **Polite rate limiting** with automatic retries and backoff
- Clean, flat JSON you can export as CSV, Excel, JSON or via API

### Input example

```json
{
  "searchQueries": [
    "tesco"
  ],
  "maxItems": 5,
  "includeOfficers": true
}
```

### Output example

```json
{
  "id": "00445790",
  "companyNumber": "00445790",
  "url": "https://find-and-update.company-information.service.gov.uk/company/00445790",
  "name": "TESCO PLC",
  "status": "active",
  "type": "plc",
  "incorporatedOn": "1947-11-27",
  "dissolvedOn": null,
  "sicCodes": [
    "47110"
  ],
  "registeredAddress": "Tesco House, Shire Park, Kestrel Way, Welwyn Garden City, AL7 1GA, United Kingdom",
  "postcode": "AL7 1GA",
  "jurisdiction": "england-wales",
  "accountsNextDue": "2027-08-26",
  "confirmationStatementNextDue": "2027-07-02",
  "hasCharges": false,
  "hasInsolvencyHistory": false,
  "enriched": true,
  "query": "tesco",
  "officers": [
    {
      "name": "DOE, Jane",
      "role": "director",
      "appointedOn": "2020-01-01",
      "resignedOn": null,
      "nationality": "British",
      "occupation": "Company Director",
      "countryOfResidence": "England"
    }
  ]
}
```

### Pricing

| Event | Price |
|---|---|
| Company profile (`result`) | $0.008 |
| Enriched company (`enriched-result`) | $0.02 |
| Actor start | $0.003 per run |

**Example:** 1,000 results ≈ $8.00 + $0.003 start fee. Apify platform usage is included in the price.

Benchmark: lexis-solutions/companies-house-uk-scraper charges $0.005/run + $0.011/result (Apify Store, 30 Oct 2026).

### Use via API or MCP

```bash
curl -X POST "https://api.apify.com/v2/acts/devteamdrew~companies-house-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' -d '{"searchQueries": ["tesco"], "maxItems": 5, "includeOfficers": true}'
```

AI agents (Claude, Cursor, etc.) can call this actor through the Apify MCP server: add `https://mcp.apify.com/?actors=devteamdrew/companies-house-scraper` as an MCP server.

### FAQ

**Do I need an API key?**\
No. A built-in key is used by default. Heavy users can add their own free key for a dedicated 600 requests / 5 min limit.

**Is the data official?**\
Yes, it comes straight from the Companies House register.

**Can I schedule it?**\
Yes. Use Apify Schedules together with incremental mode to receive only new items.

**Something broke?**\
Open an issue on the actor's Issues tab; we monitor nightly and usually fix within 24 hours.

### Related actors

- [Bluesky Scraper & API – Posts, Profiles & Search](https://apify.com/devteamdrew/bluesky-scraper)
- [UK Planning Applications Scraper – 400+ Councils & Postcodes](https://apify.com/devteamdrew/uk-planning-applications)
- [Hacker News Scraper – Stories, Comments & Who Is Hiring Jobs](https://apify.com/devteamdrew/hacker-news-scraper)
- [npm Scraper – Package Downloads, Dependencies & Maintainers](https://apify.com/devteamdrew/npm-package-scraper)
- [GitHub Trending Scraper – Repos, Stars & Developers](https://apify.com/devteamdrew/github-trending-scraper)
- [Mastodon Scraper – Fediverse Hashtags, Accounts & Trends](https://apify.com/devteamdrew/mastodon-scraper)
- [Lemmy Scraper – Posts, Comments & Communities (Fediverse)](https://apify.com/devteamdrew/lemmy-scraper)
- [SEC EDGAR Scraper – Filings Search, 10-K, 10-Q & 8-K](https://apify.com/devteamdrew/sec-edgar-scraper)
- [arXiv Scraper – Papers, Abstracts & Authors Search](https://apify.com/devteamdrew/arxiv-scraper)

### Legal and GDPR

This actor only collects publicly available data from official or open APIs and respects their rate limits and terms of use.

Results may contain personal data (e.g. names, handles). You are responsible for having a lawful basis under GDPR/UK GDPR and similar laws to process it, and for using the data in line with the source platform's terms. Do not use it for spam or for profiling individuals.

# Actor input Schema

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

Optional. Leave empty to use the built-in key. Supply your own free key from https://developer.company-information.service.gov.uk/ for higher, dedicated rate limits.

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

Company names or keywords to search.

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

Exact company numbers, e.g. `00445790`.

## `onlyActive` (type: `boolean`):

Skip dissolved/liquidated companies from search results.

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

Add current and past directors/secretaries. Billed as an enriched result.

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

Add the 25 most recent filings. Billed as an enriched result.

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

Maximum number of results to return (and pay for) per run.

## `incremental` (type: `boolean`):

Remember items delivered in previous runs with the same input and skip them. Great for scheduled monitoring runs: you only pay for new results.

## `outputFormat` (type: `string`):

`json` = structured fields; `llm` = id, url and a compact Markdown block ready for LLMs/RAG; `both` = structured fields plus Markdown.

## `requestDelayMs` (type: `integer`):

Polite rate limit between API requests. Retries with backoff on 429/5xx are automatic.

## Actor input object example

```json
{
  "searchQueries": [
    "coffee roasters"
  ],
  "companyNumbers": [],
  "onlyActive": false,
  "includeOfficers": false,
  "includeFilingHistory": false,
  "maxItems": 100,
  "incremental": false,
  "outputFormat": "json",
  "requestDelayMs": 500
}
```

# Actor output Schema

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

All results in the default dataset (overview view).

## `runSummary` (type: `string`):

Counts of pushed and skipped (already seen) items.

# 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 = {
    "searchQueries": [
        "coffee roasters"
    ],
    "companyNumbers": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("devteamdrew/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 = {
    "searchQueries": ["coffee roasters"],
    "companyNumbers": [],
}

# Run the Actor and wait for it to finish
run = client.actor("devteamdrew/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 '{
  "searchQueries": [
    "coffee roasters"
  ],
  "companyNumbers": []
}' |
apify call devteamdrew/companies-house-scraper --silent --output-dataset

```

## MCP server setup

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