# UK Companies House API: KYB + Financials (`reclarative_kernel/uk-companies-house-api-kyb-financials`) Actor

KYB and financials for any UK company in one JSON: officers, PSC beneficial owners, status, charges, plus accounts parsed from iXBRL and rule-based red flags.

- **URL**: https://apify.com/reclarative\_kernel/uk-companies-house-api-kyb-financials.md
- **Developed by:** [Marcus AureliusII](https://apify.com/reclarative_kernel) (community)
- **Categories:** AI, Automation, Other
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $40.00 / 1,000 company lookups

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Companies House KYB + Financials

KYB and financials for any UK company in one JSON: officers, PSC beneficial owners, status, charges, filing history, plus financials parsed from filed iXBRL accounts and deterministic rule-based red flags. Built for AI agents, KYB onboarding and due diligence. Never fakes a number — and flags when figures aren't current.

### What it does

- **Full KYB in one call** — officers (current and historical), persons with significant control (beneficial owners), company status, outstanding charges (secured debt), and recent filing history, straight from the official registry.
- **Financials from filed iXBRL accounts** — turnover, profit, net assets, cash and more, extracted deterministically where the accounts are machine-readable.
- **Honest about currency** — when the latest accounts are filed as PDF only (common for large/audited filers), the Actor flags the figures as not the latest (`isLatestFiling: false`) instead of silently returning stale data.
- **Rule-based red flags** — dissolved/inactive status, overdue accounts or confirmation statement, insolvency history, outstanding charges, negative net assets, losses, and more — each explainable.
- **Deterministic and auditable** — KYB data is authoritative from the registry; financials are extracted, never estimated. No LLM guessing.

### Input

Provide a UK company name or number, plus a free Companies House API key.

```json
{
  "query": "08130873",
  "companiesHouseApiKey": "YOUR_COMPANIES_HOUSE_API_KEY"
}
````

Get a free key at [developer.company-information.service.gov.uk](https://developer.company-information.service.gov.uk) (Live application, REST key). Optional inputs: `maxOfficers`, `maxFilings`, `includeFinancials`.

### Output

One combined record: company profile, KYB block, financials (with staleness flag), red flags and recent filings.

```json
{
  "query": "08130873",
  "found": true,
  "company": {
    "name": "GYMSHARK LTD",
    "companyNumber": "08130873",
    "status": "active",
    "type": "ltd",
    "incorporatedOn": "2012-07-05",
    "jurisdiction": "england-wales",
    "sicCodes": ["47190"],
    "registeredOffice": "G.S.H.Q. Blythe Valley Park, 3 Central Boulevard, Solihull, B90 8AB"
  },
  "kyb": {
    "activeOfficerCount": 4,
    "outstandingChargesCount": 0,
    "personsWithSignificantControl": [
      {
        "name": "Mr Benjamin Francis",
        "kind": "individual-person-with-significant-control",
        "naturesOfControl": ["ownership-of-shares-25-to-50-percent"],
        "notifiedOn": "2016-04-06"
      }
    ],
    "accounts": { "lastMadeUpTo": "2025-07-31", "type": "full", "nextDue": "2027-04-30", "overdue": false }
  },
  "financials": {
    "coverage": "full",
    "asOf": "2020-07-31",
    "isLatestFiling": false,
    "latestAccountsMadeUpTo": "2025-07-31",
    "source": "iXBRL accounts filed 2021-04-01",
    "note": "Figures are from accounts for the period ending 2020-07-31. The most recent accounts on the registry (period ending 2025-07-31) are filed as PDF only and are not machine-readable, so newer figures could not be extracted.",
    "metrics": {
      "turnover": { "value": 260674000, "fiscalYearEnd": "2020-07-31", "concept": "TurnoverRevenue" },
      "netAssets": { "value": 60023000, "fiscalYearEnd": "2020-07-31", "concept": "NetAssetsLiabilities" }
    }
  },
  "redFlags": [],
  "recentFilings": [
    { "date": "2026-05-10", "type": "AA", "category": "accounts", "description": "accounts-with-accounts-type-full" }
  ],
  "source": "UK Companies House (official registry)"
}
```

`financials.coverage` is `full` (turnover disclosed), `partial` (balance-sheet items only — typical for small/filleted filers), or `unavailable` (no machine-readable iXBRL). Always check `isLatestFiling` and `asOf`: if newer accounts exist but are PDF-only, the figures shown are the most recent that could be machine-read, and this is stated explicitly.

### Use it from an AI agent (MCP)

Once published, this Actor is callable through Apify's hosted MCP server (`mcp.apify.com`). Because Companies House requires a free API key, this Actor fits human-in-the-loop and configured-agent workflows (where the key is supplied once) rather than fully autonomous discovery. One company in, one combined KYB + financials + red-flags record out — ready to chain into screening.

### Use cases

- KYB onboarding and supplier/counterparty due diligence on UK companies
- Pulling beneficial owners (PSC) and officers for downstream sanctions screening
- Monitoring company status, overdue filings and outstanding charges
- Feeding structured UK company data into an AI research or compliance agent

### FAQ

**How do I get KYB and financials for a UK company?**
Pass the company name or number as `query` plus your Companies House API key. The Actor returns officers, PSC, status, charges, financials and red flags in one JSON.

**Do I need an API key?**
Yes — a free Companies House REST API key (Live application). Get one at developer.company-information.service.gov.uk.

**Why are the financials sometimes older than the latest accounts?**
Many large or audited companies file their most recent accounts as PDF only, which isn't machine-readable. Rather than fake a number, the Actor returns the most recent machine-readable figures and flags `isLatestFiling: false` with an explanation.

**Are the numbers estimated by AI?**
No. KYB data is authoritative from the registry; financials are extracted from filed iXBRL, never estimated.

### Related Actors

Part of the Reclarative Kernel compliance & financial-intelligence suite. These Actors are designed to chain — an AI agent can call them in sequence to build a full due-diligence picture.

- **[Sanctions & PEP Screening (OFAC, EU, UK)](https://apify.com/reclarative_kernel/sanctions-pep-screening-api-ofac-eu-uk)** — Feed the officers and PSC (beneficial owners) from this Actor's `kyb` block straight into sanctions and PEP screening to check the company's controllers.
- **[SEC EDGAR Financial Intelligence](https://apify.com/reclarative_kernel/sec-edgar-api-financials-ratios-red-flags)** — The same financial intelligence, deterministic ratios and red flags for US public companies, sourced from SEC EDGAR XBRL filings.

### Pricing & disclaimer

Pay-per-event: $0.04 per company lookup. No subscription. A free Companies House API key is required (the key is free; Apify charges only the per-lookup event).

KYB data is authoritative from the registry; financial figures are extracted from filed iXBRL accounts on a best-effort basis and may not reflect the most recent accounts if those are filed as PDF only. Informational only, not investment or legal advice.

# Actor input Schema

## `query` (type: `string`):

UK company name (e.g. Tesco) or company number (e.g. 00445790). Numbers resolve exactly; names match the closest registry result.

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

Free API key from https://developer.company-information.service.gov.uk (register an application, copy the REST API key).

## `includeFinancials` (type: `boolean`):

Fetch and parse the latest iXBRL accounts for headline figures. Turn off for faster, cheaper KYB-only lookups.

## `maxOfficers` (type: `integer`):

Maximum officers to return.

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

Maximum recent filings to return.

## Actor input object example

```json
{
  "query": "08130873",
  "includeFinancials": true,
  "maxOfficers": 20,
  "maxFilings": 10
}
```

# Actor output Schema

## `results` (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 = {
    "query": "GYMSHARK LTD"
};

// Run the Actor and wait for it to finish
const run = await client.actor("reclarative_kernel/uk-companies-house-api-kyb-financials").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 = { "query": "GYMSHARK LTD" }

# Run the Actor and wait for it to finish
run = client.actor("reclarative_kernel/uk-companies-house-api-kyb-financials").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "GYMSHARK LTD"
}' |
apify call reclarative_kernel/uk-companies-house-api-kyb-financials --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=reclarative_kernel/uk-companies-house-api-kyb-financials",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "UK Companies House API: KYB + Financials",
        "description": "KYB and financials for any UK company in one JSON: officers, PSC beneficial owners, status, charges, plus accounts parsed from iXBRL and rule-based red flags.",
        "version": "0.0",
        "x-build-id": "h0JwLhGenDg6cgbwq"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/reclarative_kernel~uk-companies-house-api-kyb-financials/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-reclarative_kernel-uk-companies-house-api-kyb-financials",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/reclarative_kernel~uk-companies-house-api-kyb-financials/runs": {
            "post": {
                "operationId": "runs-sync-reclarative_kernel-uk-companies-house-api-kyb-financials",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/reclarative_kernel~uk-companies-house-api-kyb-financials/run-sync": {
            "post": {
                "operationId": "run-sync-reclarative_kernel-uk-companies-house-api-kyb-financials",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "query",
                    "companiesHouseApiKey"
                ],
                "properties": {
                    "query": {
                        "title": "Company name or number",
                        "type": "string",
                        "description": "UK company name (e.g. Tesco) or company number (e.g. 00445790). Numbers resolve exactly; names match the closest registry result."
                    },
                    "companiesHouseApiKey": {
                        "title": "Companies House API key",
                        "type": "string",
                        "description": "Free API key from https://developer.company-information.service.gov.uk (register an application, copy the REST API key)."
                    },
                    "includeFinancials": {
                        "title": "Extract financials from accounts",
                        "type": "boolean",
                        "description": "Fetch and parse the latest iXBRL accounts for headline figures. Turn off for faster, cheaper KYB-only lookups.",
                        "default": true
                    },
                    "maxOfficers": {
                        "title": "Max officers",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum officers to return.",
                        "default": 20
                    },
                    "maxFilings": {
                        "title": "Max recent filings",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum recent filings to return.",
                        "default": 10
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
