# UK Company Data — Directors, Owners & Firmographics (`foxlabs/uk-company-data`) Actor

Look up any UK company and get directors, persons with significant control (beneficial owners), and firmographics. 5M+ companies from the official Companies House API.

- **URL**: https://apify.com/foxlabs/uk-company-data.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Categories:** Business, Lead generation
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Company Data — Companies House 🇬🇧

🎉 Turn Companies House into clean, structured UK company data — no login, no API key, one row per company, with the company number, status, type, SIC codes, registered address and officer / PSC / charges counts.
Built for B2B sales, KYB / compliance and market research.

### 🔍 What is the UK Company Data — and when should you use it?

Give this actor company names or company numbers and it returns matching companies from the UK Companies House register (official open API) — as clean, deduplicated rows you can filter, export or feed to an AI agent. Every run queries the source live, so the data is as fresh as the registry itself.

**Use it when you need:** a UK company list for outreach; formation / status monitoring; or a canonical registry record for KYB and due diligence.

**Use something else when:** you need the full PSC / charges detail or accounts figures — this returns the profile plus counts; the detailed lists are a documented follow-up.

### 🤖 Use with AI agents

**Already on the Apify MCP server?** Ask for this Actor by name: `foxlabs/uk-company-data`.

**Your agent can pay for its own runs.** This Actor is pay-per-event with agentic payments, so an agent can discover it, run it and settle the bill over **x402 (USDC on Base)** or **Skyfire** — no Apify account or API token of its own. Billing is the same either way: per delivered record, never for errors.

Otherwise paste this into Claude, ChatGPT, Cursor or any MCP-enabled assistant:

```
I want to pull UK company records using the Apify Actor `foxlabs/uk-company-data`.
Input: `queries` is a list of company names or company numbers. `maxResultsPerQuery` caps rows per query.
Start with: {"queries":["undefined"],"maxResultsPerQuery":50}
Ask me what to look up, run the Actor, then summarise the rows as a table.
```

The machine-readable API, MCP config and OpenAPI definition live at `apify.com/foxlabs/uk-company-data.md`.

### 📋 Overview

Everything you need to turn the UK Companies House register (official open API) into clean, structured data — in one actor, with no login, cookies or API key.

**Why teams pick this actor:**

- ✅ **Whole registry, one call** — name or ID in, matching companies out.
- 🧹 **No empty-promise columns** — only fields this registry actually fills; degenerate columns are removed.
- 🔗 **Stable identifiers** — every row carries the source's own IDs, ready to join across runs and to other Fox Labs actors.
- 💰 **Pay only for results** — per-row pricing, empty/failed lookups never billed.
- 🤖 **Agent-ready** — MCP + x402 agentic payments.

### ✨ Features

- 🔍 **Name or ID lookup** — relevance-ranked name search or exact registry-ID lookup.
- 🏢 **Full entity profile** — status, legal form, formation date, address and the registry’s own contact fields.
- 🧹 **Clean schema** — deduplicated camelCase rows, ready for CSV/Excel/JSON.

### 🎬 Quick Start

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~uk-company-data/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["undefined"],"maxResultsPerQuery":50}'
```

### 🚀 Getting Started (3 steps)

1. **Choose your targets** — company names or company numbers.
2. **Set the cap** — `maxResultsPerQuery` limits rows per query.
3. **Run and export** — get a clean dataset as JSON, CSV or Excel.

### 📥 Input

```json
{"queries":["undefined"],"maxResultsPerQuery":50}
```

| Field | Type | Description |
|---|---|---|
| `queries` | array | Company names or company numbers. |
| `maxResultsPerQuery` | integer | Caps rows per query. |
| `maxConcurrency` | integer | How many queries to fetch at once. |
| `includeRaw` | boolean | Attach the source’s untouched record under `raw`. |

### 📤 Output

One row per company, saved to the dataset. Every row also carries `query`, `scrapedAt`, and — when a lookup fails — an `error` explaining why (never silently dropped, never billed).

| Field | Description |
|---|---|
| `company_number` | Company number |
| `company_name` | Company name |
| `company_status` | Company status |
| `company_type` | Company type |
| `incorporation_date` | Incorporation date |
| `sic_codes` | Sic codes |
| `registered_address` | Registered address |
| `registered_in` | Registered in |
| `previous_company_names` | Previous company names |
| `previous_names_count` | Previous names count |
| `accounts_type` | Accounts type |
| `accounts_period_start` | Accounts period start |
| `accounts_period_end` | Accounts period end |
| `accounting_reference_date` | Accounting reference date |
| `last_accounts_date` | Last accounts date |
| `next_accounts_due` | Next accounts due |
| `next_accounts_due_on` | Next accounts due on |
| `next_accounts_overdue` | Next accounts overdue |
| `last_confirmation_statement` | Last confirmation statement |
| `next_confirmation_statement` | Next confirmation statement |
| `next_confirmation_due` | Next confirmation due |
| `confirmation_overdue` | Confirmation overdue |
| `last_members_list_date` | Last members list date |
| `has_charges` | Has charges |
| `has_insolvency_history` | Has insolvency history |
| `can_file` | Can file |
| `undeliverable_registered_office` | Undeliverable registered office |
| `registered_office_in_dispute` | Registered office in dispute |
| `officers` | Officers |
| `officers_count` | Officers count |
| `officers_truncated` | Officers truncated |
| `officers_text` | Officers text |
| `resigned_officers` | Resigned officers |
| `resigned_officers_count` | Resigned officers count |
| `psc_count` | Psc count |
| `charges_count` | Charges count |
| `charges_outstanding` | Charges outstanding |
| `recent_filings` | Recent filings |
| `filing_categories` | Filing categories |
| `total_filings` | Total filings |
| `matched` | Matched |
| `source` | Source |
| `source_url` | Source url |
| `scraped_at` | Scraped at |

### 💼 Use cases

**1. UK B2B lead lists** — active UK companies by name or SIC.
*Input:* name searches. *Output:* companies + SIC + address. *Use:* a ready sales list.

**2. KYB / due diligence** — verify a UK company by number.
*Input:* the company number or name. *Output:* the canonical Companies House record. *Use:* confirm status and standing.

**3. Risk signals** — flag companies with charges or many PSCs.
*Input:* company numbers. *Output:* PSC + charges counts. *Use:* a risk screen.

### 🔗 Integration

**JavaScript / Node.js**

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('foxlabs/uk-company-data').call({"queries":["undefined"],"maxResultsPerQuery":50});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]);
```

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('foxlabs/uk-company-data').call(run_input={"queries":["undefined"],"maxResultsPerQuery":50})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item)
```

**Automation (n8n / Zapier / Make):** schedule or webhook → HTTP request to the actor API with your `queries` → handle the JSON dataset → push to a sheet, CRM or dashboard.

### 📊 Pricing

Pay-per-event: **per delivered record**. Empty or failed lookups are never billed. [View current pricing.](https://apify.com/foxlabs/uk-company-data)

### ❓ FAQ

**Do I need an account, login or API key?** No. This reads the UK Companies House register (official open API).

**What do I search by?** Company names or company numbers.

**How current is the data?** Every run queries the source live, so results are as fresh as the registry.

**Does it include PSC and charges?** It returns officer, PSC (persons with significant control) and charges counts. The full PSC / charges lists come from separate Companies House sub-endpoints and are a planned enrichment.

**Can I export to CSV / Excel / JSON?** Yes — directly from the Apify dataset.

### 🐛 Troubleshooting

- **Fewer rows than expected** — raise `maxResultsPerQuery`, or refine the name.
- **A name returns an unexpected entity** — it matched a similar registered name; search the exact registry ID.
- **No rows for a name** — try the entity’s exact legal name or its registry ID.

### ⚖️ Is it legal to scrape this data?

This actor reads a public government business registry published as open data. Results can still contain personal data (e.g. a person’s name); personal data is protected by the GDPR and similar laws, so only process it with a legitimate basis. See Apify’s blog post on the legality of web scraping.

### 🤝 Support & contact

- 🌐 **Website:** [data.foxlabs.com.tr](https://data.foxlabs.com.tr)
- 📧 **Email:** info@foxlabs.com.tr
- 🐛 **Issues:** open a ticket in the Actor’s **Issues** tab
- 🧰 **More clean B2B data actors:** [Fox Labs on Apify](https://apify.com/foxlabs)

### Changelog

#### 0.1 — 2026-09-07

- **Dropped empty-promise columns.** Removed `company_status_detail, subtype, dissolution_date, foreign_company_details, branch_company_details, annual_return, registered_email, website, persons_with_significant_control, psc_text, charges, charges_text` — UK Companies House register (official open API) does not carry them, so they were shipped as always-null columns. Only fields this source actually fills are now emitted.
- **Enabled AI-agent payments (x402) + rebuilt the README to the full standard** (What-is / when, AI-agents + x402 agentic payments + MCP, Overview, Features, Use cases, Integration, FAQ, Troubleshooting, Support & contact).

#### 0.0

- Initial release: data from the UK Companies House register (official open API) by name or registry ID.

# Actor input Schema

## `api_key` (type: `string`):

A default API key is included. Provide your own key at https://developer.company-information.service.gov.uk if you need higher rate limits.

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

8-digit UK company numbers (e.g. 00445790). Exact match from Companies House.

## `companyNames` (type: `array`):

Search Companies House by name. Returns first match. Best-effort — use company number for guaranteed results.

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

Select a UK SIC industry section to discover companies in that sector. Leave empty for direct lookup with company numbers/names.

## `statusFilter` (type: `string`):

Return only companies with this status. In SIC discovery it filters the search server-side; with company numbers/names it filters the returned results.

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

Hard cap on results.

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

Parallel requests. Default 3 for rate limits.

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

Apify Proxy used for Companies House API requests. Leave on the default group unless you have a reason to change it.

## Actor input object example

```json
{
  "companyNumbers": [
    "00445790"
  ],
  "companyNames": [],
  "sicCode": "",
  "statusFilter": "",
  "maxResults": 100,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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 = {
    "api_key": "",
    "companyNumbers": [
        "00445790"
    ],
    "companyNames": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": []
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/uk-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 = {
    "api_key": "",
    "companyNumbers": ["00445790"],
    "companyNames": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": [],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/uk-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 '{
  "api_key": "",
  "companyNumbers": [
    "00445790"
  ],
  "companyNames": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}' |
apify call foxlabs/uk-company-data --silent --output-dataset

```

## MCP server setup

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