UK Companies House avatar

UK Companies House

Pricing

from $4.00 / 1,000 companies returned

Go to Apify Store
UK Companies House

UK Companies House

Look up UK company profiles, officers and persons with significant control from the official Companies House Public Data API.

Pricing

from $4.00 / 1,000 companies returned

Rating

0.0

(0)

Developer

Viktor Ermolov

Viktor Ermolov

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

12 hours ago

Last modified

Categories

Features

Limited permissions

Share

UK Companies House (Apify actor)

Look up UK company profiles, officers (directors and secretaries) and persons with significant control (PSC) from the official Companies House Public Data API.

This actor returns only fields of the public register, as the API returns them. It does not enrich records with emails, phone numbers, social profiles, or any other personal data from third-party sources.

Not published on Apify Store yet. Publishing happens only after a separate signal (API key and payout KYC ready). Do not run apify push or paid call-actor runs from this repository.

What it does

  • Accepts a list of company numbers and/or names, and/or a search query.
  • Resolves names through GET /search/companies.
  • Fetches GET /company/{company_number} for each company.
  • Optionally fetches officers (GET /company/{company_number}/officers) and PSCs (GET /company/{company_number}/persons-with-significant-control), following pagination.
  • Writes one dataset item per company. PPE event company is charged once per successfully returned company. Failed lookups are written as error rows and are not charged.

Official API docs: company profile, officers, PSC list.

Input

FieldTypeDescription
companiesstring[]Company numbers and/or names. Numbers are requested directly (unpadded digits are padded to 8 characters). Each name is resolved to the top search hit.
searchQuerystringSearch the register by name. Up to maxSearchResults matches are returned as full company records.
maxSearchResultsintegerCap for searchQuery (default 20, max 200).
includeOfficersbooleanDefault true.
includePscbooleanDefault true.
companiesHouseApiKeysecret stringRequired. Your Companies House Public Data API key (isSecret). There is no environment-variable fallback: Store and local runs must pass this input field.

You must provide companiesHouseApiKey and at least one of companies or searchQuery.

Register a free REST API key in the Companies House Developer Hub. The API uses HTTP Basic authentication: the key is the username and the password is empty. Never commit a key. .env is gitignored. The actor does not read COMPANIES_HOUSE_API_KEY from the environment, so a shared actor secret cannot be used by runs that omit the input key.

Example input:

{
"companies": ["00445790", "Tesco PLC"],
"searchQuery": "Barclays",
"maxSearchResults": 5,
"includeOfficers": true,
"includePsc": true,
"companiesHouseApiKey": "YOUR_KEY"
}

Output

Successful items look like:

{
"company_number": "00445790",
"profile": { "company_name": "TESCO PLC", "company_number": "00445790" },
"officers": { "items": [], "total_results": 0 },
"psc": { "items": [], "total_results": 0 }
}

profile, officers and psc are the API resources (officer and PSC pages are merged into items). No extra personal fields are added. A 404 on officers or PSC is treated as an empty items list. Lookup failures become rows with error and errorMessage (not charged).

Before a successful item is written, a defensive filter removes date_of_birth.day (month and year are kept) and any usual_residential_address / residential_address fields from officers and PSC items, in case the API ever returns them. Service addresses and the company registered_office_address are left in place.

Rate limits and retries

Companies House allows 600 requests in any 5-minute period per application (rate limiting guide). The actor enforces this with a sliding window before each request, and retries:

  • HTTP 429: wait for Retry-After in full when present (delta-seconds or HTTP-date); never retry earlier. If the header is absent, wait for the remainder of the local 5-minute window, or the full 5 minutes if the local window still has capacity. If the required wait exceeds that 5-minute budget, fail the request instead of retrying early.
  • HTTP 5xx: exponential backoff.
  • HTTP 401 and 403: fail immediately. Do not retry.

Applications that regularly exceed or try to bypass the limit may be banned. This actor does not use multiple keys to increase throughput.

Pricing (PPE)

The actor is designed for pay-per-event billing:

EventWhen it is chargedPrice
companyOnce per company successfully written to the dataset$0.004 per company (incubator decision). Set this price in Apify Console at publish time.
apify-actor-startAutomatic synthetic start event (do not charge in code)Apify default $0.00005; confirm in Console at publish time.

Event names and descriptions live in .actor/pay_per_event.json. Code charges company via Actor.pushData(item, 'company') after the record is written. At publish time, disable the synthetic apify-default-dataset-item event so successful rows are not billed twice.

Privacy note (UK GDPR)

Companies House is required to make data about companies and their officials available for public inspection under the Companies Act 2006. This actor only requests that public register and returns it to you for the duration of the run. It does not keep a copy after the run's dataset is discarded, and it does not add personal data from anywhere else. Usual residential (home) addresses and full dates of birth are not published on the public register; fields such as a director's name, nationality, month and year of birth, and service address may be.

If you store, combine, or otherwise process the personal data of officers or PSCs that you receive, you are the controller of that processing under UK GDPR and must have a lawful basis. Companies House imposes no extra rules on how public-register information is used, and is not responsible for your use of it. You are responsible for complying with UK GDPR, copyright, and any other applicable law before you keep or publish the data.

See Companies House data products and the Companies House personal information charter.

Retention: the actor itself does not store register data beyond the dataset of the current run. How long you keep a copy is your responsibility.

The lawful basis for the developer's own processing when the actor runs, and how to contact us about your data, are in docs/privacy-lawful-basis.md.

Publishing checklist

Do not publish from this repository until Арина signals that the Companies House key and payout KYC are ready. Then, in Apify Console at publish time:

  1. Set the PPE event company to $0.004 per company (incubator decision).
  2. At the same time, disable the synthetic apify-default-dataset-item event so successful rows are not billed twice (the actor already charges company via Actor.pushData).
  3. Companies House API keys belong only in the secret input companiesHouseApiKey. Do not set a shared COMPANIES_HOUSE_API_KEY on the published actor — the actor will not use it, and Store users must bring their own key. Never commit a key and never put one in the Store listing.

Until that signal: no apify push, no Store publish, no paid Apify runs.

Development

npm ci
npm run lint
npm test

Tests mock the HTTP API. They do not need a Companies House key and do not make network calls to Companies House. A live key for a manual check is not in this repository; it will be provided separately when needed.

Local actor run (optional, still uses your own key in companiesHouseApiKey, never commit it):

# storage/key_value_stores/default/INPUT.json
# Then: apify run

Do not apify push and do not start paid Apify runs from this repo until publication is approved.