# UK Companies House Filing Deadline Monitor (`felixgoldwin/uk-company-filing-deadline-monitor`) Actor

Track accounts and return due dates across a UK company portfolio. Flag upcoming deadlines, overdue dates and changes since a previous run using official Companies House records.

- **URL**: https://apify.com/felixgoldwin/uk-company-filing-deadline-monitor.md
- **Developed by:** [Felix GoldWin](https://apify.com/felixgoldwin) (community)
- **Categories:** Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 company deadline results

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

### Track filing deadlines for a UK company portfolio

Enter up to 100 UK company numbers to see **which accounts and returns are overdue, due today, or due soon**. The Actor reads the free Companies House JSON service and produces one row per matched company. An accounts team can use the export as a weekly worklist or compare it with a previous run to detect a deadline moving. No Companies House API key is required. [Companies House data products](https://www.gov.uk/guidance/companies-house-data-products)

### Check a watchlist

1. On the Input tab, enter the registered company numbers as strings. Keep leading zeros and include any letter prefix.
2. Choose how many days ahead to flag. The default is 30 days, including the last day of the window.
3. Run the Actor and open its default dataset. Filter either deadline status in your spreadsheet or workflow, or export the full rows as JSON for use in the next run.

For example, this input checks one company with a 60-day window.

```json
{
  "companyNumbers": ["02050399"],
  "asOfDate": "2026-11-18",
  "dueWithinDays": 60
}
```

An observed record for Zenith Print (UK) Limited gives the following result with those settings (selected fields).

```json
{
  "companyNumber": "02050399",
  "accountsDueDate": "2027-12-31",
  "accountsDaysUntilDue": 408,
  "accountsDeadlineStatus": "later",
  "returnDueDate": "2027-01-14",
  "returnDaysUntilDue": 57,
  "returnDeadlineStatus": "due_soon",
  "comparisonStatus": "snapshot"
}
```

Companies House calls the second date `Returns.NextDueDate` in its JSON service. For Zenith, the company overview identifies 14 January 2027 as its **confirmation statement filing deadline**. The Actor uses the field name `returnDueDate` across company types. Follow the row’s `companyUrl` to verify the filing type and deadline for a particular company. [Source JSON](https://data.companieshouse.gov.uk/doc/company/02050399.json) · [Zenith company overview](https://find-and-update.company-information.service.gov.uk/company/02050399) · [Companies House URI field guide](https://assets.publishing.service.gov.uk/media/5d08c0f340f0b6094a379078/uniformResourceIdentifiersCustomerGuide.pdf)

### Compare scheduled runs

Omit `asOfDate` on a schedule to use the current date in the UK. Setting it explicitly changes the day used for the countdown. The Actor always fetches the company details available at run time.

For a snapshot, omit `previousObservations`. To compare with the last run, export its **full dataset as a JSON array**, then pass that array as `previousObservations` alongside the new watchlist. A saved task keeps its input until you update it, so a scheduled workflow should supply the latest baseline each time. If a lookup failed on the latest run, keep the last successfully observed row for that company in your baseline.

From the project directory with Node.js 22+ and the Apify CLI, save the first example as `watchlist.json` and run it locally.

```sh
npm ci
apify run --input-file watchlist.json
```

For a second local run, assemble the previous rows with `jq` before starting the Actor again. This example removes the fixed date so the next run uses the current UK date.

```sh
jq -s '.' storage/datasets/default/[0-9]*.json > previous-rows.json
jq --slurpfile rows previous-rows.json \
  'del(.asOfDate) + {previousObservations: $rows[0]}' \
  watchlist.json > next-watchlist.json
apify run --input-file next-watchlist.json
```

Comparisons match the company number and check `companyStatus`, `accountsDueDate`, `returnDueDate`, `accountsDeadlineStatus`, and `returnDeadlineStatus`. Use `comparisonStatus` to select `changed`, `unchanged`, `first_observation`, or `not_comparable`. The `changedFields` array identifies which values moved. For example, if only `returnDeadlineStatus` changes from `later` to `due_soon`, the date has entered your watch window. A change in `returnDueDate` means the source date itself moved. Keep `dueWithinDays` consistent when comparing urgency.

### Read the output

| Fields | Meaning |
| --- | --- |
| `companyNumber`, `companyName`, `companyStatus`, `lookupStatus` | Registered company identifier, name, register status, and lookup outcome. Preserve the identifier as text when importing into a spreadsheet. |
| `accountsDueDate`, `returnDueDate` | Next due dates from the two source records, formatted as YYYY-MM-DD when available. |
| `accountsDaysUntilDue`, `returnDaysUntilDue` | Signed calendar-day counts. A negative count indicates a date in the past. |
| `accountsDeadlineStatus`, `returnDeadlineStatus` | `overdue` before the reference day, `due_today` on it, `due_soon` within the following window, and `later` beyond it. `unknown` flags an unavailable date and `not_applicable` flags an inapplicable deadline. |
| `asOfDate`, `dueWithinDays`, `observedAt` | Reference date, watch window in days, and timestamp when the register was checked. |
| `sourceUrl`, `companyUrl` | Official JSON record and the human-readable company overview. |

### Pricing and unsuccessful lookups

**$2.00 per 1,000 matched company deadline results**, billed individually at $0.002 per saved company row. A company with two due dates counts once. Each run also costs **$0.001 to start** at the default 256 MB, including a run that saves zero rows. Missing companies and failed lookups appear in `LOOKUP_ISSUES` without a result charge.

A run that matches 100 companies costs $0.201 including the start. With the 100-company input limit, ten full runs matching 1,000 companies cost **$2.01** including all ten starts. Set **Maximum cost per run** to limit spending. The smallest selectable cap is $0.003, enough for the start and one result. Only the events that occur are billed. [Current pricing](https://apify.com/felixgoldwin/uk-company-filing-deadline-monitor/pricing)

### Data source

Company facts come from **Companies House**. The exported fields cover corporate identity, filing dates and their sources. Companies House makes its register available for reuse subject to applicable laws and third-party rights. Use the linked company overview to verify a deadline before acting on it. For an Actor issue, include the run ID and company number on the Apify Issues tab. [Companies House data products](https://www.gov.uk/guidance/companies-house-data-products) · [Companies House copyright and reuse guidance](https://www.gov.uk/government/publications/companies-house-accreditation-to-information-fair-traders-scheme/public-task-copyright-and-crown-copyright)

# Actor input Schema

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

Enter up to 100 UK company numbers. Keep prefixes and leading zeros. Duplicate numbers are checked once.

## `asOfDate` (type: `string`):

Optional YYYY-MM-DD. Defaults to today's date in the UK. Records are always fetched live; this date controls the countdown.

## `dueWithinDays` (type: `integer`):

Mark a future deadline as due soon when it falls within this many calendar days, inclusive. Today's due dates have their own status.

## `previousObservations` (type: `array`):

Optional JSON array of full rows from a previous run. Use one row per company and the same deadline window. Omit for a plain snapshot.

## Actor input object example

```json
{
  "companyNumbers": [
    "02050399",
    "00445790"
  ],
  "dueWithinDays": 30
}
```

# Actor output Schema

## `dataset` (type: `string`):

Matched companies, filing deadlines, urgency and optional changes.

## `issues` (type: `string`):

Unmatched or deferred companies and the stop reason.

# 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 = {
    "companyNumbers": [
        "02050399",
        "00445790"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("felixgoldwin/uk-company-filing-deadline-monitor").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 = { "companyNumbers": [
        "02050399",
        "00445790",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("felixgoldwin/uk-company-filing-deadline-monitor").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 '{
  "companyNumbers": [
    "02050399",
    "00445790"
  ]
}' |
apify call felixgoldwin/uk-company-filing-deadline-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,felixgoldwin/uk-company-filing-deadline-monitor"
        }
    }
}
```

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/U9JPtXaxU9NWHuWRg/builds/dI3DOZMAnGMFO3ATi/openapi.json
