UK company data API

Give your agent real UK company intelligence

DataLedger turns Companies House filings into structured financial data your AI can actually use. Look up companies, filter by financials, retrieve PSC ownership and corporate structure - all through a clean REST API.

// Agent querying DataLedger

GET /v2/companies/09876543?financials=true&people=true

// Response
{
  "companyName": "Acme Creative Ltd",
  "isActive": true,
  "employees": 12,
  "financials": {
    "cTurnoverRevenue": 1840000,
    "assetsGrowthRate": 0.18
  },
  "psc": [{
    "name": "J. Smith",
    "nationality": "British",
    "isIndividual": true
  }]
}

✓ 3 credits used  ·  22 remaining
3M+
With electronic financials
89%
Electronic filing coverage
25
Free credits to start
3
API endpoints
What you can build

Company data your agent can act on

DataLedger is designed to be a data layer, not a dashboard. Query it directly from your agent, workflow, or application.

Automated company research
Give your agent a list of company names. It resolves each to a Companies House number, pulls the financial profile, and returns structured data ready to process, score, or present.
🔍
Prospect discovery workflows
Search by SIC code, location, employee count, and financial thresholds. Filter by owner type and PSC age to surface owner-managed businesses at succession age in a single query.
📊
Enrichment pipelines
Pass a CRM or spreadsheet of company numbers through the API to append financial data - turnover, equity, growth rates, employee count, registered address - all in a single call per company.
🤖
AI-native applications
Build products where users ask questions about UK businesses in plain English. Your agent queries DataLedger in the background and surfaces the answer - no spreadsheets, no manual lookups.
📋
Due diligence assistants
Combine company profile, financials, PSC beneficial ownership, and corporate group structure in a single automated report. Useful for M&A screening, credit assessment, KYC, or supplier checks.
📂
Market intelligence tools
Query by sector and geography to map competitive landscapes, track industry trends, or identify market size. Use the meta endpoint to count matching companies before pulling the full dataset.
How it works

Three endpoints. Most workflows use all three.

Authenticate with the x-api-key header on every request. Flags on the profile endpoint are additive - combine as needed.

01 - FIND
Resolve a name to a number
If you have a company name but not its Companies House number, the autocomplete endpoint returns matches instantly. Use this as the first step before any profile lookup. Costs ~0.04 credits per call.
GET /v2/companies/autocomplete
?name=acme+creative&limit=5
02 - LOOKUP
Retrieve a full company profile
Pass a company number and get back registration details, SIC codes, address, employee count, and financial summary. Add optional flags as needed - each adds to the credit cost but all are returned in a single call.
GET /v2/companies/09876543
# +1 cr base  +1 financials
# +2 people   +3 parents
# +3 children  max 10 total
03 - SEARCH
Filter for lists of companies
Combine filters across sector, location, employee count, financial thresholds, PSC owner age, and ownership type. Returns company details without financials - use the profile endpoint to enrich results. 1 credit per search.
GET /v2/companies/search
?sic=62020&localAuthority=Westminster
?individualOwnerOnly=true&minPscAge=55
What's in the data

Structured financials from official filings

Every field is parsed from Companies House electronic submissions - the same source used by accountants, banks, and regulators.

Company registration
Name, number, status, type, incorporation date, SIC codes with plain-English descriptions, registered address, local authority.
Financial summary
Total assets, liabilities, equity, turnover, profit/loss - current and prior year. Included in every basic 1-credit profile call.
Calculated ratios and growth
Debt-to-equity, debt-to-asset, asset growth rate, net asset growth rate - pre-calculated from filed figures.
Full balance sheet (financials=true, +1 cr)
Cash, debtors, creditors, fixed assets, intangibles - full line items for current and prior year.
Profit and loss (financials=true, +1 cr)
Turnover, gross profit, operating profit, net profit, wages - for companies that filed full accounts.
PSC beneficial ownership (people=true, +2 cr)
PSC name, nationality, country of residence, nature of control, ownership band, year of birth, and pre-computed individual/corporate flag.
Corporate group structure (parents/children, +3 cr each)
Parent company chain traversed upward to the ultimate owner. Full subsidiary list downward. Includes overseas parents with country of registration. Maximum 10 credits for all flags combined.
Filing metadata
Accounts category, last accounts date, electronic submission flag, verification status, period covered.
Basic profile
financials=true
Search result
{
 "companyName": "Acme Creative Ltd",
 "isActive": true,
 "incorporationDate": "2018-03-14",
 "employees": 12,
 "industry": {
  "sic1": 74100,
  "sic1Description": "Specialised design"
 },
 "financials": {
  "cTurnoverRevenue": 1840000,
  "cProfitLoss": 312000,
  "cCalculatedEquity": 428000,
  "assetsGrowthRate": 0.18,
  "cVerified": "true"
 }
}
// financials object restructured
"financials": {
 "ratios": {
  "cDebtToEquityRatio": 0.84,
  "assetsGrowthRate": 0.18
 },
 "balanceSheet": {
  "currentYear": {
   "cashBankOnHand": 94000,
   "debtorsCurrent": 310000,
   "creditorsCurrent": -218000,
   "propertyPlantEquipment": 62000
  }
 },
 "profitAndLoss": {
  "currentYear": {
   "turnoverRevenue": 1840000,
   "grossProfitLoss": 980000,
   "wagesSalaries": 540000
  }
 }
}
// Search result - no financials included
{
 "companyNumber": "09876543",
 "companyName": "Acme Creative Ltd",
 "isActive": true,
 "entityDormant": false,
 "hasPLFigures": true,
 "incorporationDate": "2018-03-14",
 "isIndividualOwner": true,
 "pscAgeEstimate": 58,
 "sicCodes": ["74100"],
 "registeredAddress": {
  "postcode": "EC1A 1BB",
  "localAuthority": "City of London"
 }
}
Ready to use

Drop this into your agent

Copy the system prompt below into your AI tool - n8n, Make, Zapier, a custom GPT, or any agent framework. Replace the highlighted line with your API key and your agent is ready to query UK company data.

System prompt - replace the highlighted line with your API key

You have access to the DataLedger API, which provides financial and registration data for UK companies sourced from official Companies House filings. Use this API whenever the user asks you to look up a UK company, find companies matching certain criteria, retrieve financial information such as turnover, assets, profit, or employee numbers, or understand who owns or controls a company.

API KEY: replace this entire line with - x-api-key: [paste your key here]. Include this header on every request. Get your key from the API Keys section at hub.dataledger.uk.

Base URL: https://api.dataledger.uk/v2

CAPABILITY 1 - LOOK UP A SPECIFIC COMPANY: GET /companies/{companyNumber} where companyNumber is exactly 8 digits (may start with a zero). Returns company name, status, type, incorporation date, registered address, SIC codes with descriptions, employee count, accounts dates, and financial summary (assets, liabilities, equity, profit/loss, turnover, ratios, growth rates) for current and prior year. Cost: 1 credit. Optional flags - add as needed and sum the credits: financials=true adds full balance sheet and P&L line items (+1 credit, 2 credits total); people=true adds all PSC beneficial ownership records with name, nationality, nature of control, year of birth, and pre-computed individual/corporate flag (+2 credits); parents=true traverses the corporate ownership chain upward to the ultimate parent (+3 credits); children=true returns all known subsidiary companies (+3 credits). Maximum 10 credits for all flags combined. Only request flags you genuinely need.

CAPABILITY 2 - SEARCH FOR COMPANIES BY CRITERIA: GET /companies/search with filters - name (partial), sic (5-digit), postcode or prefix, localAuthority, isActive (true = active only), entityDormant (false = exclude dormant), incorporationDateFrom / incorporationDateTo (YYYY-MM-DD), minEmployees / maxEmployees, minEquity / maxEquity / minTotalAssets / maxTotalAssets / minTotalLiabilities / maxTotalLiabilities (GBP), hasPLFigures (true = best data quality when using financial filters), individualOwnerOnly (true = owner-managed businesses only, no corporate PSC), hasCorporateOwner (true = corporate-owned companies only), minPscAge / maxPscAge (filter by PSC holder year of birth to find businesses at succession age), limit (max 50), offset (for pagination), meta=true (count only, no results). Cost: 1 credit per request. Search results include company details but not financials - use Capability 1 to enrich individual results.

CAPABILITY 3 - FIND COMPANY NUMBER FROM NAME: GET /companies/autocomplete?name={partial}&limit=5. Minimum 3 characters. Returns matching companies with names and numbers. Use before Capability 1 if you only have a name. Cost: ~0.04 credits (25 calls per credit).

Always monitor credits via the X-API-Key-Details response header. Paginate search results by incrementing offset by limit until offset exceeds totalCount. Default to the basic 1-credit profile call unless the user specifically needs additional data layers.

Where to paste it: In n8n use the System Message field in your AI Agent node. In Make or Zapier look for System Prompt or Instructions in the AI step. In a custom GPT paste into the Instructions box. In Claude Projects paste into the Project Instructions field.
Reference documents

Everything you need to get started

A machine-readable API spec for LLMs and agent frameworks, and a PDF guide for sharing with your team or passing to a developer.

API Spec

Complete reference covering all three endpoints, every query parameter with types and examples, full response schemas for basic and detailed modes, error codes, and usage guidance formatted for LLM context injection.

Markdown LLM-optimised
Download spec

Agent Instructions

Step-by-step guide covering authentication, both workflow patterns, the system prompt, and error handling. Useful for sharing with a developer or keeping alongside your agent setup.

PDF Print-friendly
Download guide

DataLedger API summary. The DataLedger API is a REST API providing structured UK company financial data, PSC beneficial ownership records, and corporate group structures sourced from Companies House electronic filings. It covers approximately 3 million UK companies with electronic financial data from a total of 5 million records. 89% of UK company accounts are filed electronically. The API has three endpoints: autocomplete (resolve a company name to a Companies House number, ~0.04 credits per call), profile (retrieve a full company record by Companies House number, 1 credit base with optional flags for financials, PSC ownership, parent companies, and subsidiaries), and search (filter companies by sector, location, financial thresholds, PSC owner age, and ownership type, 1 credit per request). Profile flags: financials=true returns full balance sheet and P&L line items (+1 credit); people=true returns PSC beneficial ownership records including name, nationality, nature of control, year of birth, and individual vs corporate flag (+2 credits); parents=true traverses the corporate ownership chain to the ultimate parent (+3 credits); children=true returns all subsidiaries (+3 credits). Maximum 10 credits for all flags combined. Search filters include individualOwnerOnly, hasCorporateOwner, minPscAge, and maxPscAge for ownership-based targeting. Plans start at £10 per month. New accounts receive 25 free credits with no card required. Compatible with n8n, Make, Zapier, custom GPTs, Claude Projects, and any LLM framework that supports REST API calls. A ready-to-use system prompt is available on this page. Full API documentation is available at api.dataledger.uk/docs/v2.

Start building today

25 free credits. No card required. Up and running in minutes.

Get your API key →