# UK Company Profile Batch (`datalantern/uk-company-profile-batch`) Actor

Export UK company numbers, current register status, dates and SIC codes with source evidence. Uses the official public URI by default or an optional caller-supplied Companies House API key.

- **URL**: https://apify.com/datalantern/uk-company-profile-batch.md
- **Developed by:** [Data Lantern](https://apify.com/datalantern) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 complete company profiles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## UK Company Profile Batch

Submit 1–25 UK company numbers to get company name, registration status, incorporation or cessation dates, industry codes and links to the source record. Omit a key to use the official Companies House public URI service. A caller-supplied key selects the authenticated API. The Actor keeps one source for the entire run. A source refusal or rate limit stops the batch.

```json
{"companyNumbers":["11743365","00000006"]}
```

The Store form initially shows two saved examples. Turn off the example before entering your numbers. The saved examples make no HTTP request and earn no result event. Each identifies its source and date. The monthly bulk record reflects a month-end snapshot. A dissolved company can still have an official public record.

Use string identifiers so that leading zeros are preserved. Repeated numbers share one row and original input positions. Successful live rows include a timestamp, source URL and public profile. The URI service supplies a company type label and may include country of origin; the authenticated API supplies type and jurisdiction codes where present. Missing optional values are null. A mismatched ID, malformed date or incomplete required field earns no result fee. No contact details, officers, street addresses, filings or filing documents are exported. Registry records do not verify legal or financial standing.

If you choose the authenticated API, set your own key only in the secret input. Never send a real key by email or chat. A key is never sent to the public URI service. There is no automatic retry. Only complete company profiles count toward the proposed $2.50 per 1,000 results; demo, missing, incomplete and skipped rows have no result fee.

Source: Companies House. [Official data products and URI service](https://www.gov.uk/guidance/companies-house-data-products), [domain and monthly bulk files](https://download.companieshouse.gov.uk/en_output.html), [API authentication](https://developer.company-information.service.gov.uk/authentication), [reuse guidance](https://www.gov.uk/government/publications/companies-house-accreditation-to-information-fair-traders-scheme/public-task-copyright-and-crown-copyright). This independent tool does not reproduce Crown insignia or third-party filing documents.

# Actor input Schema

## `apiKey` (type: `string`):

Optional. Used only for the authenticated Companies House API. Never sent to the public URI service.

## `companyNumbers` (type: `array`):

Up to 25 registered company numbers, entered as strings.

## `sample` (type: `boolean`):

No key or network needed. Turn off to submit company numbers.

## `sourceMode` (type: `string`):

Auto uses the official public URI when no key is supplied, or the authenticated API when a key is supplied. No fallback across sources.

## Actor input object example

```json
{
  "sample": true,
  "sourceMode": "auto"
}
```

# Actor output Schema

## `rows` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sample": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("datalantern/uk-company-profile-batch").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "sample": True }

# Run the Actor and wait for it to finish
run = client.actor("datalantern/uk-company-profile-batch").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sample": true
}' |
apify call datalantern/uk-company-profile-batch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datalantern/uk-company-profile-batch"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mCDQxgN3lSot9MWuF/builds/eTOulbBRXFZiM40yy/openapi.json
