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, build apps - 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 things your agent can do
The API has three endpoints. Most workflows use all three together.
?name=acme+creative
GET /companies/09876543?financials=true
?sic=62020&localAuthority=Westminster
Structured financials from official filings
Every field is parsed from Companies House electronic submissions - the same source of truth used by accountants, banks, and regulators.
"companyName": "Acme Creative Ltd",
"isActive": true,
"incorporationDate": "2018-03-14",
"employees": 12,
"industry": {
"sic1": 74100,
"sic1Description": "Specialised design"
},
"registeredAddress": {
"postcode": "EC1A 1BB",
"localAuthority": "City of London"
},
"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",
"endDateForPeriodCoveredByReport":
"2023-12-31",
"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, or retrieve financial information such as turnover, assets, profit, or employee numbers.
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/v1
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. Add financials=true for full balance sheet and P&L line items - only use if genuinely required as this costs 2 credits. If a company has not filed electronically the financial fields will be null but the company profile is still returned.
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), limit (max 50), offset (for pagination), meta=true (count only, no results). Cost: 1 credit. 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.
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 detailed line items.
Full API reference for AI tools
A clean markdown spec covering every endpoint, parameter, field, and response shape - formatted for LLMs and agent frameworks rather than human readers.
DataLedger API Spec
Complete reference covering all three endpoints, every query parameter with types and examples, full response schemas for both basic and detailed modes, error codes, and usage guidance for agents. No marketing copy - just the spec.