# UK New Companies Feed (Companies House) (`leathered_luna/uk-new-companies-feed`) Actor

Daily feed of newly incorporated UK companies from the official Companies House API. Filter by date, SIC code, location, type. Company data only. Bring your free API key.

- **URL**: https://apify.com/leathered_luna/uk-new-companies-feed.md
- **Developed by:** [SiennaWorks](https://apify.com/leathered_luna) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 new companies

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/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 New Companies Feed (Official Companies House API)

Get a **daily list of newly incorporated UK companies** straight from the official **Companies House Public Data API**, filtered by SIC code, company type, status, location or name. Built for lead generation, accountants and bookkeepers, banks and fintechs, software and service vendors, and anyone who sells to new businesses.

### How this is different

- **Official data, no scraping.** It uses the Companies House advanced search endpoint, so it is stable and does not break when a website changes.
- **Company-level fields only.** No officers, no persons with significant control, no dates of birth, no emails.
- **Ready for sales and compliance.** Every row has SIC codes **with plain-English descriptions**, company type label, days since incorporation, registered office split into fields, and a direct Companies House link.
- **Built for scheduling.** Run it daily with `daysBack: 1` and send the dataset to your CRM, Google Sheets or webhook through Apify integrations.
- **You bring your own free API key**, so the Actor has no API cost and the 600 requests / 5 minutes limit is yours alone.

### What you get

| Area | Fields |
|---|---|
| Identity | `company_number`, `company_name`, `company_type`, `company_type_label`, `company_status`, `companies_house_url` |
| Timing | `date_of_incorporation`, `days_since_incorporation`, `retrieved_at` |
| Industry | `sic_codes`, `sic_descriptions`, `sic_codes_labelled` (for example `62012 — Business and domestic software development`) |
| Registered office | `registered_office_address` (one line), plus `address_line_1`, `address_line_2`, `locality`, `region`, `postal_code`, `country` |

An illustrative record is in [`examples/example_output.json`](examples/example_output.json) (placeholder values, not a real company).

### Input

1. Get a **free REST API key** from the [Companies House Developer Hub](https://developer.company-information.service.gov.uk) (register an application, choose *REST*). Paste it into `companiesHouseApiKey` (a secret field).
2. Choose the window and filters:

```json
{
    "companiesHouseApiKey": "YOUR_KEY",
    "daysBack": 1,
    "sicCodes": ["62012", "62020"],
    "companyStatuses": ["active"],
    "location": "Manchester",
    "maxResults": 500
}
```

| Field | Meaning |
|---|---|
| `daysBack` | Incorporated in the last N days (`0` = today only). Default 1. |
| `incorporatedFrom` / `incorporatedTo` | Exact date range (`YYYY-MM-DD`). Overrides `daysBack`. |
| `sicCodes` | Keep only these 4 or 5 digit SIC 2007 codes. |
| `companyTypes` | For example `ltd`, `llp`, `plc`. Empty = all. |
| `companyStatuses` | Defaults to `active`. |
| `location` | Free text matched against the registered office, for example `Manchester` or `M1`. |
| `nameIncludes` | Only names containing this text. |
| `maxResults` | Upper limit of companies returned (default 1,000; hard cap 50,000). |

### Pricing (pay-per-event)

**$0.002 per company returned** ($2.00 per 1,000). Platform usage is included in the price. Runs that return nothing, or fail because of a bad key or invalid input, cost nothing beyond the tiny start fee. Set a **maximum cost per run** in Apify Console for a hard cap. The Actor stops cleanly when that limit is reached.

### Rate limits and throughput

Companies House allows **600 requests per 5 minutes per key**. This Actor fetches up to 100 companies per request, so thousands of companies per run is routine. It paces requests, reads the rate-limit headers, and backs off on HTTP 429 and 5xx.

### Reliability behaviour

| Situation | Behaviour |
|---|---|
| Invalid or missing API key | The run fails immediately with a clear message. The key is never logged or written to the dataset. |
| Invalid dates, SIC codes or filters | The run fails with an explanation and charges nothing. |
| More matches than `maxResults` | The run finishes and the status message tells you how many matched in total. |
| Temporary API errors | Automatic retry with backoff. If they persist, you keep the rows already collected. |

### Legal and data protection

- Source: the official [Companies House Public Data API](https://developer.company-information.service.gov.uk). Companies House imposes no licence restrictions on information on the public register. You remain responsible for data protection and any third-party copyright. Do not reproduce the Crown insignia.
- The Actor returns company-level data only. Registered office addresses are the addresses filed by the company, and for some very small companies this may be a home address. Handle it in line with UK GDPR.
- Do not use the output to send unsolicited electronic marketing to individuals (UK PECR).
- Not affiliated with or endorsed by Companies House.

### Local development

```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pytest -q
```

Tests use mocked responses and need no API key.

### Changelog

- **0.1** — First version: date-range and filter search, SIC descriptions, paging, rate-limit handling, pay-per-event per returned company.

# Actor input Schema

## `companiesHouseApiKey` (type: `string`):

Your free REST API key from https://developer.company-information.service.gov.uk . Stored as a secret, used only to call the official API, never written to the dataset.

## `daysBack` (type: `integer`):

Companies incorporated in the last N days (0 = today only). Ignored if you set incorporatedFrom.

## `incorporatedFrom` (type: `string`):

YYYY-MM-DD. Overrides daysBack.

## `incorporatedTo` (type: `string`):

YYYY-MM-DD. Defaults to today.

## `sicCodes` (type: `array`):

Only companies with any of these 4-5 digit SIC 2007 codes (e.g. 62012, 41100). Leave empty for all.

## `companyTypes` (type: `array`):

Leave empty for all types.

## `companyStatuses` (type: `array`):

Defaults to active companies only.

## `location` (type: `string`):

Free text matched against the registered office address, e.g. Manchester or M1.

## `nameIncludes` (type: `string`):

Only companies whose name contains this text.

## `maxResults` (type: `integer`):

Each returned company is one chargeable event. Set a spending limit on the run if you want a hard cap.

## Actor input object example

```json
{
  "daysBack": 1,
  "companyStatuses": [
    "active"
  ],
  "maxResults": 1000
}
```

# Actor output Schema

## `results` (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 = {
    "daysBack": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("leathered_luna/uk-new-companies-feed").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 = { "daysBack": 1 }

# Run the Actor and wait for it to finish
run = client.actor("leathered_luna/uk-new-companies-feed").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 '{
  "daysBack": 1
}' |
apify call leathered_luna/uk-new-companies-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leathered_luna/uk-new-companies-feed"
        }
    }
}
```

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/mSwyqXB8ASyvjvUP2/builds/BqC7hZhOuvpAoGIZM/openapi.json
