UK Companies House Data Scraper (Company Records JSON) avatar

UK Companies House Data Scraper (Company Records JSON)

Under maintenance

Pricing

from $2.50 / 1,000 company delivereds

Go to Apify Store
UK Companies House Data Scraper (Company Records JSON)

UK Companies House Data Scraper (Company Records JSON)

Under maintenance

Extract official UK company records as clean JSON: status, type, SIC codes, incorporation date, accounts-overdue flag and registered address. For lead lists, KYB and compliance monitoring. Company fields only — no officers or PSC data. Uses the public Companies House API.

Pricing

from $2.50 / 1,000 company delivereds

Rating

0.0

(0)

Developer

Steadfetch

Steadfetch

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

an hour ago

Last modified

Share

steadfetch/companies-house-monitor

Extract UK company records from the official Companies House public data API. Look up a company by number or search the register by name, with structured JSON output. No browser, no login, no CAPTCHA.

What it does

The Actor calls the official Companies House API and returns one dataset item per company with its register status, type, incorporation date, SIC codes, accounts-overdue flag and registered office address.

  • Company mode: fetch one company profile by number.
  • Search mode: search the register by name or number and page through results.
  • Incorporation filter: keep companies incorporated on or after a given date.
  • Schema validation: every item is validated against .actor/dataset_schema.json before it reaches the dataset. With strictSchema: true (the default) an invalid item fails the run.

The data is public under the Open Government Licence v3.0. The Actor only maps company-level fields: the officers and PSC endpoints are deliberately not called because they can expose personal names and residential addresses. It never returns officer data, dates of birth or contact details.

The Actor authenticates with a free Companies House API key. Your own key (optional but recommended): register at developer.company-information.service.gov.uk and paste it in the apiKey input field. The published API allows 600 calls per 5 minutes per key; if every user shares one key, that budget is split between them. If you leave apiKey empty, the publisher's key is used as a fallback. Keys are never written to logs or the repository, and the apiKey field is masked in run inputs. The client retries 429/5xx responses with exponential backoff.

Example output

{
"url": "https://find-and-update.company-information.service.gov.uk/company/08209948",
"title": "! LTD",
"scrapedAt": "2026-10-19T18:00:00.000Z",
"company_number": "08209948",
"company_name": "! LTD",
"company_status": "active",
"company_type": "ltd",
"sic_codes": ["99999"],
"incorporated_on": "2012-09-11",
"accounts_overdue": false,
"address": {
"address_line_1": "9 PRINCES SQUARE",
"locality": "HARROGATE",
"postal_code": "HG1 1ND",
"country": "England"
}
}

Input

Company mode:

{
"mode": "company",
"companyNumber": "03977902",
"maxResults": 10
}

Search mode:

{
"mode": "search",
"query": "tesla",
"maxResults": 100,
"since": "2025-01-01"
}
FieldTypeDescription
modecompany or searchRequired.
companyNumberstringRequired when mode=company.
querystringRequired when mode=search.
maxResultsintegerDefault 100, maximum 5000.
sincestringOptional YYYY-MM-DD; search mode keeps companies incorporated on or after this date.
apiKeystringOptional. Your own Companies House API key (recommended; see What it does). Leave empty to use the publisher's key.
strictSchemabooleanDefault true; fail the run on schema violations.

The company number in the original STE-18 specification (00063903) does not exist in the register: a run with it returns a clean, non-retryable 404 (covered by the live tests). The minimal platform test therefore uses the live company 03977902 (GOOGLE UK LIMITED); choosing this live number is the only deviation from the literal specification input.

Project structure

.actor/actor.json Actor definition (payPerEvent, dataset schema, output schema)
.actor/input_schema.json INPUT options (mode, companyNumber, query, maxResults, since, apiKey)
.actor/dataset_schema.json Item JSON Schema (fields) + table view for the Store
.actor/pay_per_event.json PPE pricing (two synthetic platform events)
src/fetch.ts Companies House API client: auth, pagination, retry/backoff
src/extract.ts Pure parsing and filtering (fixture-tested, no network)
src/main.ts Entry point: fetch, validate, push
src/validate-output.ts Ajv validator shared by the run and the tests
test/ Offline fixtures, Vitest suites and optional live API tests

Pay-per-event pricing

The Actor uses Apify pay-per-event pricing with the two synthetic platform events:

EventCharged whenPrice
apify-actor-starta run starts (synthetic, automatic)0.00005 USD per run (Apify-recommended default; includes 5 seconds of free compute)
apify-default-dataset-itema company is saved to the dataset (synthetic, automatic)0.0025 USD per result = 2.50 USD per 1,000 results

There is no custom per-item event and no Actor.charge() call: the platform already charges apify-default-dataset-item per pushed item, so adding another event would bill users twice.

The price sits inside the direct-competitor band (1.5-3.2 USD per 1,000) and inside Steadfetch's 1-10 USD band. Estimated cost is under 0.10 USD per 1,000 results (a few authenticated JSON calls plus compute), leaving a margin above 96%.

Development

npm install
npm test # lint + typecheck + offline Vitest suites (no credit)
npm run publish:check # Steadfetch publish gate
npm run schemas:validate
npm run smoke # local Apify run (no platform credit)
COMPANIES_HOUSE_API_KEY=... npm test # also runs the live API tests

The default test suite runs against committed fixtures and never touches the network. Live tests are skipped unless COMPANIES_HOUSE_API_KEY is set; they validate real company and search responses against the same output schema.

FAQ

Do I need a Companies House API key? No. The Actor uses a key configured as a Steadfetch Actor secret. You only provide a company number or a search term.

Does it need a browser? No. Companies House returns structured JSON; plain HTTP is roughly 10x cheaper than a browser-based Actor.

Does it return personal data? No. Only company-level register fields are returned. Officer and PSC endpoints are never called, so there are no personal names, residential addresses or dates of birth.

When am I charged? Once per run start (apify-actor-start) and once per company saved to the dataset (apify-default-dataset-item). Failed requests, retries and empty searches are not charged per result.

Is the output schema stable? Yes. New fields are additive and the required fields in .actor/dataset_schema.json do not change.

Maintenance

This Actor is tested daily: automated runs check that the Companies House API is reachable and that the output still matches the published schema. Failures are reported as issues in the Steadfetch Actors repository.