REST API

DataLedger API

Programmatic access to structured UK company financial data. Balance sheets, P&L where disclosed, pre-calculated ratios, and company metadata for almost 3 million UK companies with electronic filings - from 5 million+ total records.

No card required  ·  Instant access  ·  Takes 30 seconds


Why DataLedger API

Skip building Companies House infrastructure

Structured, validated financial data through a simple REST API. No parsing XBRL, no data cleaning, no pipeline to maintain.

Real-time access

Query UK company data as new filings are processed. No delays, no batch updates.

📊

Pre-calculated ratios

Debt-to-equity, debt-to-asset, assets growth rate, net assets growth rate - already done for every record.

Structured and verified

Clean JSON responses with quality flags. 2.8 million records carry DataLedger's verification flag.

🔍

Advanced filtering

Filter by financial ratios, growth indicators, employee counts, SIC codes, location, and more.

🏛

Almost 3M with financials

Almost 3 million UK companies with electronic financial data. 5 million+ total records available for lookup.

🔄

Credits roll over

Unused credits from monthly plans roll over every month. One-time purchases never expire.


Quick start

Up and running in minutes

Three endpoints. Authenticate with x-api-key header on every request.

Get company profile
# Basic profile - 1 credit
curl -X GET "https://api.dataledger.uk/v1/companies/12345678" \
  -H "x-api-key: YOUR_API_KEY"

# Full balance sheet and P&L - 2 credits
curl -X GET "https://api.dataledger.uk/v1/companies/12345678?financials=true" \
  -H "x-api-key: YOUR_API_KEY"
Search companies by criteria
# Active tech companies in Westminster with assets over £1M - 1 credit
curl -X GET "https://api.dataledger.uk/v1/companies/search?isActive=true&sic=62020&localAuthority=Westminster&minTotalAssets=1000000" \
  -H "x-api-key: YOUR_API_KEY"
Autocomplete company name
# Resolve partial name to company number - 25 calls = 1 credit
curl -X GET "https://api.dataledger.uk/v1/companies/autocomplete?name=acme&limit=5" \
  -H "x-api-key: YOUR_API_KEY"

Endpoints

Core API endpoints

Three endpoints covering lookup, search, and autocomplete. Most workflows use all three together.

GET /v1/companies/autocomplete 25 calls = 1 credit

Resolve a partial company name to a Companies House number. Minimum 3 characters. Ideal for search-as-you-type in forms or lookup tools.

Parameters
namestring, required, min 3 chars

Partial company name to search for

limitinteger, optional, default 10, max 50

Number of results to return

Returns array of objects with companyNumber and companyName

GET /v1/companies/search 1 credit per request

Filter for lists of companies. Combine any number of criteria. Use meta=true to get a total count before fetching results. Paginate with limit and offset.

Key filters - all optional, combine as needed
sicstring, 5 digits

Standard Industrial Classification code e.g. 62020 for IT consultancy

postcode / localAuthoritystring

Postcode prefix e.g. SW1, or local authority name e.g. Westminster

isActive / entityDormantboolean

Filter by company status

min/maxEmployeesinteger

Employee count range

min/maxTotalAssets / min/maxEquity / min/maxTotalLiabilitiesnumber, GBP

Financial threshold filters

min/maxDebtToEquityRatio / min/maxAssetsGrowthRatenumber

Ratio and growth rate filters. Growth rates as decimals: 0.1 = 10%

hasPLFiguresboolean

Recommended when using financial filters - limits results to companies with P&L data available

incorporationDateFrom / incorporationDateTostring, YYYY-MM-DD

Incorporation date range

limit / offsetinteger, limit max 500

Pagination

metaboolean

If true, returns only the total count of matching companies - useful for estimating result size before fetching

Use meta=true first to check result size, then add hasPLFigures=true with financial filters for the best data quality.
GET /v1/companies/{companyNumber} 1 credit basic  ·  2 credits with financials=true

Retrieve a full company profile by 8-digit Companies House number. Basic profile includes financial summary with totals and ratios. Add financials=true for full balance sheet and P&L line items.

Parameters
companyNumberstring, 8 digits, may start with zero

Companies House registration number

financialsboolean, default false

false (1 credit): company details plus financial summary - totals, ratios, growth rates.
true (2 credits): adds full balance sheet line items and P&L statement details.

Default to the 1-credit call unless the user specifically needs line items. The financial summary covers most use cases at half the cost.

Full documentation with schemas and examples at api.dataledger.uk/docs/v1


Pricing

Credit-based pricing

Pay for what you use. Credits roll over on monthly plans and never expire on one-time purchases.

Credit usage
Endpoint Cost
Autocomplete25 calls = 1 credit
Company Search1 credit per request
Company Profile (basic)1 credit per request
Company Profile (financials=true)2 credits per request
Monthly subscriptions
Pro plan

Pro

£10 /month
300 credits per month

Consistent monthly access for regular users. Credits roll over each month.

One-time credit purchases - never expire
Starter

100 credits

£5

Testing and small queries.

Pro

250 credits

£10

One-off projects.

Medium scale

10,000 credits

£75

£0.0075 per credit.

Large scale

50,000 credits

£300

£0.006 per credit.

High-volume monthly plans
PlanMonthly creditsPricePer credit
Starter API10,000£75/month£0.0075
Professional API50,000£300/month£0.006
Business API200,000£1,000/month£0.005
Enterprise API500,000£2,000/month£0.004
Enterprise UnlimitedUnlimited£4,000/month-

Every response includes an X-API-Key-Details header with current usage, limit, credit cost, and reset time. Fair use policy applies to the unlimited plan.


FAQ

Frequently asked questions

How do API credits work?

Credits are consumed per request based on the endpoint: autocomplete costs 25 calls per credit, search costs 1 credit per request, basic profile costs 1 credit, detailed profile with financials=true costs 2 credits. Monthly plan credits roll over. One-time purchases never expire.

What happens when I run out of credits?

API access stops until you top up or upgrade. Check the X-API-Key-Details header in every response to monitor your remaining credits in real time.

What data is in every API response?

Every company profile includes balance sheet data (assets, liabilities, equity) for current and previous year, company metadata (SIC codes, employees, address, incorporation date), pre-calculated financial ratios, and growth indicators. P&L data is included where the company is required to disclose it. Add financials=true for complete line items.

How do I authenticate?

Use the x-api-key header (lowercase) on every request. Get your key from hub.dataledger.uk.

What is the difference between basic and detailed profiles?

Basic (1 credit): financial summary with totals, pre-calculated ratios, and growth rates. Detailed with financials=true (2 credits): adds full balance sheet line items (intangibles, property, current assets breakdown, creditors, provisions) and full P&L details (turnover, gross profit, operating profit, wages). Default to basic unless you specifically need line items.

Do all companies have turnover data?

No. Most UK SMEs are not required to publish turnover or profit figures. Every company has balance sheet data. Use hasPLFigures=true in search to filter for companies with P&L data available.

Can I use the API for commercial purposes?

Yes. All paid plans include commercial use rights. Use in products, services, internal tools, or as part of your own offerings.

What response format does the API use?

JSON. Consistent field names throughout. Financial prefixes: c = current year, p = previous year. Growth rates returned as decimals (0.1 = 10%).

Is there a free trial?

Yes. Sign up at hub.dataledger.uk and get 25 free credits immediately. No card required. Use them to test all three endpoints and validate your integration.

How often is data updated?

DataLedger processes Companies House filings daily. When you query a company you get the most recent filing available. No batch delays.

What if I need more than 500k credits per month?

The Enterprise Unlimited plan at £4,000/month covers typical usage of 500k-2M credits per month. Contact contact@dataledger.uk for higher volume requirements.


Ready to start building?

Get 25 free credits and start querying UK company data in minutes. No card required.

Supported by

South of Scotland Enterprise logo