# UK Companies House PDF Financial Statements (`mellowbot/uk-companies-house-pdf-financials`) Actor

Query balance-sheet figures (net assets, turnover, cash, creditors, retained earnings, employees) from scanned non-iXBRL UK Companies House AA PDF filings for active Ltd, PLC, and LLP companies.

- **URL**: https://apify.com/mellowbot/uk-companies-house-pdf-financials.md
- **Developed by:** [Mellow Data](https://apify.com/mellowbot) (community)
- **Categories:** Business, Lead generation, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 corporate financial filing records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/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 PDF Financial Statements

Query structured balance-sheet figures from scanned, non-iXBRL UK Companies House `AA` annual account PDFs across active Ltd, PLC, and LLP companies. Most UK LLPs, PLCs, and many mid-market Ltd accounts are filed as image PDFs without machine-readable iXBRL tags; this Actor exposes their normalized whole-GBP figures with automatic UK GAAP balance-sheet math checks (`Fixed Assets + Current Assets - Creditors = Net Assets`). Runs in under 1 second at 256 MB RAM with no Companies House API key.

### Sample Output

```json
{
  "company_number": "OC426829",
  "company_name": "DMC CAPITAL PARTNERS LLP",
  "company_type": "llp",
  "company_status": "active",
  "date_of_creation": "2019-04-08",
  "sic_codes": [],
  "sic_sector": "Professional & Partnership Services (LLP)",
  "filing_date": "2022-02-03",
  "filing_type": "AA",
  "accounts_type": "unaudited-abridged",
  "period_end_date": "2021-04-30",
  "document_pages": 6,
  "has_ixbrl": false,
  "is_scanned_pdf": true,
  "currency": "GBP",
  "turnover_gbp": null,
  "net_assets_gbp": -32479,
  "fixed_assets_gbp": 3400,
  "current_assets_gbp": 14471,
  "cash_at_bank_gbp": 3,
  "creditors_due_within_1yr_gbp": 50350,
  "creditors_due_after_1yr_gbp": null,
  "retained_earnings_gbp": null,
  "employees": null,
  "accounting_check_passed": true,
  "confidence_score": 0.96,
  "filing_url": "<Companies House filing history URL>"
}
```

### Input Filters

Run with `{}` to retrieve 20 filings (reconciled non-iXBRL scanned PDFs prioritized first), or filter by:

- `companyNumber`: exact or partial 8-character company number (e.g. `06362470`, `OC426829`, `SC330577`)
- `sicCode`: 5-digit UK SIC 2007 code or 2 to 4 digit prefix (e.g. `62012`, `62`, `41`, `68`)
- `minNetAssetsGbp` / `maxNetAssetsGbp`: balance-sheet net asset bounds in whole GBP
- `scannedOnly`: return only rasterized scanned PDF filings
- `nonIxbrlOnly`: return only pure-PDF filings where Companies House has no iXBRL document (`has_ixbrl = false`)
- `accountsType`: `full`, `group`, `small`, `total-exemption-full`, `unaudited-abridged`, `micro-entity`
- `sinceFilingDate` / `onlyNewSinceLastRun`: incremental polling via `LAST_RUN_STATE`
- `searchQuery`, `maxItems`, `offset`: text search and pagination

### Data Scope & Updates

- Sourced from public UK Companies House `AA` account filings and updated continuously as new filings are processed.
- Covers active incorporated entities (`Ltd`, `PLC`, `LLP`) only. Director names, signatures, dates of birth, residential addresses, emails, and phone numbers are excluded.

### HTTP API & MCP Server (Standby Mode)

Supports synchronous lookups in Standby mode at 256 MB RAM:

- **Streamable HTTP MCP (`POST /mcp`):** Exposes tool `query_uk_companies_house_financials` (`initialize`, `tools/list`, `tools/call`) for AI agents.
- **Direct JSON lookup (`POST /query`):** Accepts the same filters as batch input and returns `{"count": N, "items": [...]}`.
- **Health check (`GET /health`):** Returns `200 OK` with no charges.

### Pricing

Pay-per-event: `$0.005` per run start (`apify-actor-start`) plus `$0.012` per filing returned (`filing-record`, `$12/1k`). Free-tier trial runs return up to 10 records and finish with `SUCCEEDED`.

# Actor input Schema

## `companyNumber` (type: `string`):

Exact or partial 8-character UK Companies House number (e.g. 06362470, OC307349, SC330577).

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

Filter by 5-digit UK SIC code or 2-4 digit sector prefix (e.g. 62012, 62, 41201, 68, 64).

## `minNetAssetsGbp` (type: `integer`):

Optional lower bound on extracted corporate net assets in whole GBP.

## `maxNetAssetsGbp` (type: `integer`):

Optional upper bound on extracted corporate net assets in whole GBP.

## `scannedOnly` (type: `boolean`):

When enabled, returns only rasterized scanned PDF filings requiring GPU Vision-Language extraction.

## `nonIxbrlOnly` (type: `boolean`):

When enabled, returns only Companies House filings lacking application/xhtml+xml iXBRL (pure PDF-only).

## `accountsType` (type: `string`):

Filter by statutory UK accounts filing type. Leave empty to include all non-dormant account types.

## `searchQuery` (type: `string`):

Optional substring search across corporate name, company number, SIC sector, and accounts type.

## `sinceFilingDate` (type: `string`):

Optional ISO date lower bound on Companies House filing_date (e.g. 2026-01-01) for incremental delta pipelines.

## `onlyNewSinceLastRun` (type: `boolean`):

Return only filings indexed after the persisted LAST_RUN_STATE cursor (saves updated cursor cleanly on completion or abort).

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

Maximum number of corporate financial filing records to return (capped at 10 for non-paying trial runs).

## `offset` (type: `integer`):

Pagination offset into sorted matching filing records.

## Actor input object example

```json
{
  "companyNumber": "",
  "sicCode": "",
  "scannedOnly": false,
  "nonIxbrlOnly": false,
  "accountsType": "",
  "searchQuery": "",
  "sinceFilingDate": "",
  "onlyNewSinceLastRun": false,
  "maxItems": 20,
  "offset": 0
}
```

# Actor output Schema

## `filings` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("mellowbot/uk-companies-house-pdf-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("mellowbot/uk-companies-house-pdf-financials").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 '{}' |
apify call mellowbot/uk-companies-house-pdf-financials --silent --output-dataset

```

## MCP server setup

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

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/ut0IR2E2Nfsx5k8Z2/builds/cFwB7uayvcj0yakc2/openapi.json
