# Environment Agency Corporate Enforcement Signals (`starshaped_bullsnake/environment-agency-corporate-enforcement-signals`) Actor

Monitor official Environment Agency corporate enforcement actions for additions, corrections, and confirmed delistings.

- **URL**: https://apify.com/starshaped\_bullsnake/environment-agency-corporate-enforcement-signals.md
- **Developed by:** [Starshape Tools](https://apify.com/starshaped_bullsnake) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 corporate enforcement change signals

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

## Environment Agency Corporate Enforcement Signals

Monitors the official Environment Agency [Register of Enforcement Actions](https://environment.data.gov.uk/public-register/view/search-enforcement-action), which contains actions against companies. Live runs page through the official bulk JSON collection. The source is refreshed by the publisher; this Actor does not claim real-time coverage.

### Identity and signals

One registration resource is one enforcement action. Its final `@id` path segment is the stable `registrationId`; company names are not used as identifiers. The V1 monitored fields are company name, available company number, company address, action date, and an order-insensitive offence-summary set containing action type, agency function set, and relevant legislation title. Implemented signals are `ENFORCEMENT_ACTION_ADDED`, `ENFORCEMENT_ACTION_DETAILS_CHANGED`, and `ENFORCEMENT_ACTION_NO_LONGER_LISTED`. One entity transition produces at most one signal with `changedFields`, `before`, and `after`.

The official bulk register is the live acquisition source. The Actor does not monitor deep per-action fields such as case or incident references, penalty metadata, detailed descriptions, legislation sections, or incident addresses. The per-record detail endpoint is not used for production acquisition, and these fields are not inferred or reconstructed.

A missing record is not described as revoked, overturned, or cleared. It becomes `ENFORCEMENT_ACTION_NO_LONGER_LISTED` only after two consecutive complete, validated snapshots omit it.

### Baseline and safety

The first successful live run stores a full baseline and emits zero signals. Blank or duplicate registration IDs, missing required bulk fields, failed pagination, near-empty results, or a major count collapse stop the run with no business signals and no snapshot mutation. Dataset and run summary writes complete before the snapshot is committed.

`mode=sample` demonstrates additions, corrections, and confirmed delisting through the production transition logic without external HTTP or production snapshot access. The Actor retains public company/action data only and performs no Companies House, director, officer, contact, or other personal-data enrichment.

Contains Environment Agency information © Environment Agency copyright and database right 2026, licensed under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). The generic JSON API metadata may display the Conditional Licence; the [dataset-specific official record](https://environment.data.gov.uk/dataset/218c7f8b-f51a-4bcf-9079-a91cdc6902b3) and [Public Registers licence page](https://environment.data.gov.uk/public-register/view/data-licence) identify Enforcement Actions as OGL. This is a change-monitoring aid, not legal advice or a statement that an action remains in force.

# Actor input Schema

## `mode` (type: `string`):

Live official comparison or an isolated sample demonstration.

## `signalTypes` (type: `array`):

Optional signal-type filter.

## `registrationIds` (type: `array`):

Optional official registration ID filter.

## `baselineOnly` (type: `boolean`):

Refresh the validated baseline without business signals.

## `maxItems` (type: `integer`):

Dataset output limit; the full validated snapshot is retained.

## Actor input object example

```json
{
  "mode": "sample",
  "baselineOnly": false,
  "maxItems": 30
}
```

# Actor output Schema

## `OUTPUT` (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 = {
    "mode": "sample",
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("starshaped_bullsnake/environment-agency-corporate-enforcement-signals").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 = {
    "mode": "sample",
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("starshaped_bullsnake/environment-agency-corporate-enforcement-signals").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 '{
  "mode": "sample",
  "maxItems": 30
}' |
apify call starshaped_bullsnake/environment-agency-corporate-enforcement-signals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,starshaped_bullsnake/environment-agency-corporate-enforcement-signals"
        }
    }
}
```

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/ObhHTIB68okjopsgm/builds/8zKWUy8BuPaFGHB5Z/openapi.json
