# UK Company Insolvency Watch (The Gazette) (`kinako_muse/uk-insolvency-watch`) Actor

Check a list of UK companies (by company number or name) against official corporate insolvency notices in The Gazette. Winding-up petitions flagged as early warnings, formal proceedings, new-since-last-run flags for scheduled monitoring, and an honest data_as_of date on every run.

- **URL**: https://apify.com/kinako_muse/uk-insolvency-watch.md
- **Developed by:** [Kinako](https://apify.com/kinako_muse) (community)
- **Categories:** Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 company checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Insolvency Watch (The Gazette)

Paste up to 2,000 UK companies — one per line, as a **company number** or a **company name** — and check them against the official corporate insolvency notices published in **The Gazette**:

- **Winding-up petitions** — flagged separately as an **early warning**. A petition is advertised in The Gazette before any winding-up order is made, and before the company's register entry changes, so this is the earliest public signal that a trading partner may be in trouble.
- **Formal proceedings** — resolutions for winding up, appointment of liquidators or administrators, winding-up orders and the other corporate insolvency notice types.

For each company you get a verdict — `notice_found` or `no_notice` — and for every matching notice: the company name and number, the notice type, whether it is a petition-stage (early warning) or formal notice, the publication date, a match score (0–100) and the link to the official notice. **You make the final call** — this Actor surfaces and scores matches for review.

### Why this one

- **New notices are flagged, not buried.** Run the same supplier or customer list on a schedule: notices that were not in your previous run are flagged `is_new`, so a weekly run shows you only what changed. (On the first run for a company, all of its matches are new by definition.)
- **Petitions are caught at the petition stage.** Most register checks only see a company once its status changes. A winding-up petition is advertised earlier than that — this Actor labels petition-stage notices as early warnings, separate from formal proceedings, so you can pause shipments or credit while there is still time to act.
- **The same list as your company checks.** Input is company numbers or names, one per line — the same counterparty list you already keep for company status checks, no reformatting.
- **Honest about its dates.** Every run states `data_as_of` — the date the matched notices run up to — and whether a live catch-up fetch was applied. No silent staleness.

### What you can use it for

- **Supplier and customer watchlists** — screen your trading partners for petitions and insolvency notices before shipping goods or extending credit.
- **Scheduled counterparty monitoring** — re-run your standing list weekly; the `is_new` flag turns the run into a watch that only surfaces fresh notices.
- **Pre-payment due diligence** — a bulk first pass over a new customer list before onboarding, with official links ready for manual review.
- **Credit control triage** — companies with a petition-stage notice are the ones to call first; the early-warning flag sorts them out of the list for you.

### How it works

1. Paste companies, one per line — up to 2,000 per run. A line that is a company number (8 digits, or a prefix such as SC/NI plus 6 digits) is matched exactly against the company numbers recorded on notices. Any other line is matched by company name.
2. Name matching folds accents, case and punctuation and ignores legal-form suffixes (Ltd, Limited, PLC, LLP…), then scores each candidate 0–100. Candidates scoring 60 or more are returned, best first, at most 20 per company.
3. Your matched notice IDs are remembered per company line. On the next run, notices that were not there before are flagged `is_new`.

### Freshness — please read this part

The Gazette's fair use policy allows automated access only **between 21:00 and 07:00 London time**, at a limited rate. This Actor is designed around that rule instead of around you:

- The Actor carries a built-in snapshot of recent corporate insolvency notices (about the last 180 days), refreshed by the operator, and matches against it — so it works at any time of day.
- If a run happens **inside** the fair use window, the Actor first fetches any notices published since the snapshot was built (politely, at the fair use rate) and adds them to a cache in your own Apify account, so your data catches up to the run date.
- If a run happens **outside** the window, no fetch is made, and matching uses the snapshot and your cache only.
- The summary row of every run states `data_as_of` and which of the two happened, so you always know exactly how current the check is.

### What this check cannot do — please read

- **Coverage is about 180 days of notices.** A `no_notice` verdict means no matching notice was found in the covered period — it is not a guarantee that the company has never had an insolvency notice. For older history, search The Gazette directly.
- **Name matching is fuzzy by nature.** A similarly named company can score as a candidate, and a company may appear under a former or trading name that scores below the threshold. A company-number match (score 100) is exact; a name match is a candidate to confirm on the official notice.
- **A petition is an allegation stage, not an outcome.** A winding-up petition may later be dismissed or withdrawn. The Actor reports that the petition was presented and advertised — deciding what it means for your credit decision is your call.
- **Corporate notices only.** Only Corporate Insolvency notices (The Gazette category 24) are covered. Personal Insolvency notices are never fetched, and no personal data is returned: each match shows company-level fields only (company name, company number, notice type, date, official link).

### Pricing

**No monthly plan.** You pay only for the companies you actually check, in the months you actually check them — nothing in the months you don't run a check.

- $0.003 per company checked ($3.00 per 1,000).
- On Apify's free plan: $0.03 per company checked.
- Empty lines and symbol-only lines are never charged. The summary row is free.

### Data source and licence

- **The Gazette** (thegazette.co.uk) — Corporate Insolvency notices (category 24), fetched from the official notice feed. Gazette content is Crown copyright and is reused here under the **Open Government Licence v3.0** (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). Automated access follows The Gazette's fair use policy: access only between 21:00 and 07:00 London time, at most 5 requests per 10 seconds, with an identifiable User-Agent.
- This is an independent tool; it is not provided or endorsed by The Gazette or TSO.

# Actor input Schema

## `companies` (type: `string`):

Companies to check, one per line (up to 2,000 per run). Write each company as its Companies House company number (e.g. 11534235) or as its company name. Each line is checked against The Gazette corporate insolvency notices held by the Actor (about the last 180 days — see data_as_of in the output). Empty lines and symbol-only lines are ignored and never charged.

## Actor input object example

```json
{
  "companies": "11534235\nJEHANGIR RESTAURANT LTD\n00445790"
}
```

# 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 = {
    "companies": `11534235
JEHANGIR RESTAURANT LTD
00445790`
};

// Run the Actor and wait for it to finish
const run = await client.actor("kinako_muse/uk-insolvency-watch").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 = { "companies": """11534235
JEHANGIR RESTAURANT LTD
00445790""" }

# Run the Actor and wait for it to finish
run = client.actor("kinako_muse/uk-insolvency-watch").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 '{
  "companies": "11534235\\nJEHANGIR RESTAURANT LTD\\n00445790"
}' |
apify call kinako_muse/uk-insolvency-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kinako_muse/uk-insolvency-watch"
        }
    }
}
```

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/eze29btodXHZr5ulE/builds/ZeSNAAaRg5Qg53o3o/openapi.json
