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.
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.
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.
?name=acme+creative&limit=5
# +1 cr base +1 financials
# +2 people +3 parents
# +3 children max 10 total
?sic=62020&localAuthority=Westminster
?individualOwnerOnly=true&minPscAge=55
Structured financials from official filings
Every field is parsed from Companies House electronic submissions - the same source used by accountants, banks, and regulators.
"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": {
"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
}
}
}
{
"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"
}
}
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.
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.
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.
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.
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 →Explore more UK company data resources.
Learn more about structured Companies House financial data, ownership intelligence, APIs, and company analysis.