# EPA Enforcement Monitor: Environmental Cases & Penalties (MCP) (`amygraphics/epa-enforcement-monitor`) Actor

Official EPA ECHO feed: civil & criminal environmental cases with federal penalties, SEP projects, cost recovery, statutes and outcomes. Server-side state/law/penalty/date filters. Monitor mode = new case & changed-settlement alerts, daily. No API key. MCP-ready.

- **URL**: https://apify.com/amygraphics/epa-enforcement-monitor.md
- **Developed by:** [Zakaria el bouami](https://apify.com/amygraphics) (community)
- **Categories:** Lead generation, Automation, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## ⚖️ EPA Enforcement Monitor — Environmental Cases & Penalties (MCP)

> The official **EPA ECHO enforcement feed**: every civil + criminal environmental case — with **federal penalties, supplemental projects, cost recovery, complying-action costs, statutes violated, outcomes and pollutant keywords**. **Monitor mode = "a company just got hit with $X" alerts, daily.** Official API. No key. MCP-ready.

***

### ✨ The 6 things ChatGPT can't do (built in)

| Ingredient | Here |
|---|---|
| 🔒 **Hard-to-get data** | EPA's ICIS + Summary of Criminal Prosecutions via ECHO's awkward **QID two-step** (`get_cases → get_qid`) with 32 custom columns — the poll nobody flattens: penalty, SEP, cost recovery, complying-action amount per case right in one row. |
| 🛠️ **Hardest problems, solved** | ECHO 200s errors silently · MM/DD/YYYY dates · `$150,000.00` strings · server-side penalty thresholds (`GT{amount}`) · milestone-date windows · page budget caps. |
| ⚙️ **Automation** | `monitor` + daily schedule = **"new $850k CWA case filed in Louisiana"** the morning ECHO's weekly refresh lands. ESG analysts, environmental lawyers, compliance vendors, insurers and journalists pay for exactly this. |
| 🧠 **AI-agent cheap** | $0.001 start + $0.001 per case. |
| 🌍 **Money in every row** | `fedPenalty` + `stateLocalPenalty` + `sepCost` + `costRecovery` + `totalComplianceActionAmt` + computed `totalPenalty`. |
| 📈 **Structured law flags** | Clean Air / Water / RCRA waste / Superfund / pesticides / TSCA / EPCRA flags per case — multi-statute cases tagged. |

> 💡 **Two charged events by design**: a **new case number** (never seen) — and a **changed settlement** (same case, new settlement date/penalty — the verdict landed). KV key = `case|settlement|penalty`.

***

### 🚀 3 recipes that pay

#### #1 — Penalty radar (ESG funds & journalists)

```json
{ "mode": "monitor", "minFedPenalty": 100000, "daysBack": 1 }
```

→ Every new ≥$100k federal penalty, nationwide, daily. Feed it into your ESG score or your newsroom alerts.

#### #2 — Industry watch (compliance vendors)

```json
{ "mode": "monitor", "states": ["TX", "LA"], "law": "CAA", "naics": "324", "caseLead": "E", "daysBack": 7 }
```

→ EPA-led Clean Air Act cases against **petroleum refiners** (NAICS 324) on the Gulf Coast — call them **before** your competitor's compliance-software rep does.

#### #3 — Criminal environmental docket (law firms)

```json
{ "mode": "search", "civilCriminal": "CR", "daysBack": 365, "maxResults": 500 }
```

→ A full year of **concluded environmental criminal prosecutions** — caseload intel no search engine aggregates.

**MCP**: `https://mcp.apify.com/?actors=amygraphics/epa-enforcement-monitor` — *"any new EPA penalties over $50k on the West Coast this month?"* answered with the official record.

***

### 📦 What each row contains

`caseNumber` · `caseName` · `caseCategory` (AFR/AIF/JDC) · `caseStatus` · `civilCriminal` · **`laws[]` flags + `primaryLaw`/`primarySection`** · `primaryNaics` · `dateFiledISO` · `settlementDateISO` · `dateClosedISO` · **`fedPenalty` / `stateLocalPenalty` / `totalPenalty`** · `sepCost` · `costRecovery` · `totalComplianceActionAmt` · `enforcementOutcome` · `lead` (EPA/state) · `settlementCount` · `pollutantDesc` · `url` (official case report). Plus `eventKey`, `isNew`/`firstSeenAt`.

***

### 🆚 Competition

| Actor | Users | Money-first cases | Monitor |
|---|---|---|---|
| changewire/epa-echo-compliance | — | ❌ facility diff JSONL | ✅ diffs |
| epa-echo-facilities | 14 | ❌ facilities only | ❌ |
| **us** | — | ✅ penalties per case | ✅ KV dedupe + change alerts |

***

### 🧪 Input cheat-sheet

| Key | Default | What it does |
|---|---|---|
| `states` | all | server-side postal codes |
| `daysBack` / `fromDate` | 30 | milestone-activity window |
| `caseCategories` | all | AFR/AIF/JDC |
| `civilCriminal`, `caseLead` | both | CI/CR · EPA/state |
| `law` | all | server-side statute (CAA, CWA…) |
| `minFedPenalty` | 0 = off | server-side `GT{amount}` |
| `naics` | — | industry code |
| `voluntaryDisclosure` | all | include/self-disclosed |
| `outcomeIncludes`, `lawIncludes`, `keywords` | — | client-side refinement |

**Fair use** — ECHO is EPA's official public web service (they ask clients not to bulk-download; this actor pages ≤1,000 rows, delays 0.4s, and expects you to scope queries with windows + filters — that's the polite path).

***

### 💰 Pricing

- **$0.001** actor start · **$0.001** per case — all money columns FREE

| Rows | Cost (us) |
|---|---|
| 150 cases (30-day Gulf Coast scan) | ~$0.15 |
| Daily national ≥$10k watch | ~$0.50–2/month |

**Part of the AmyGraphics data empire** — 30 public actors: enforcement & fines, disasters & relief money (FEMA), recalls (FDA+CPSC), tenders (EU/US/UK), registers, conferences, jobs & real estate. Contact: morocco.uiux@gmail.com · apify.com/amygraphics

# Actor input Schema

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

search = window of cases. monitor = only cases never returned before (KV dedupe on case+settlement+penalty) — schedule daily.

## `states` (type: `array`):

US state postal codes, server-side: TX, CA, FL… — empty = ALL states (use with penalty filters & small windows).

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

Milestone-activity window ending today (server-side). Ignored if fromDate is set.

## `fromDate` (type: `string`):

Optional explicit window start, overrides daysBack.

## `toDate` (type: `string`):

Optional explicit window end (default: today).

## `caseCategories` (type: `array`):

AFR (Administrative Formal), AIF (Administrative Informal), JDC (Judicial) — empty = all.

## `civilCriminal` (type: `string`):

CI = civil only · CR = concluded criminal prosecutions · empty = both.

## `caseLead` (type: `string`):

E = EPA-led cases only · S = state-led only · empty = both.

## `law` (type: `string`):

One statute code: CAA / CWA / RCRA / SDWA / CERCLA / EPCRA / FIFRA / TSCA — empty = all.

## `minFedPenalty` (type: `integer`):

Server-side threshold: cases with total federal penalty above this. 0 = off. ⚠️ Filters OUT 'no penalty' orders.

## `naics` (type: `string`):

2–6 digits (e.g. 221 = utilities, 324 = petroleum refining) server-side.

## `voluntaryDisclosure` (type: `string`):

Y = only self-disclosed cases · N = exclude them · empty = all.

## `lawIncludes` (type: `string`):

Match against law flags and primary law (multi-statute cases where another law was also cited).

## `outcomeIncludes` (type: `string`):

e.g. 'with penalty', 'no penalty', 'administrative order'.

## `keywords` (type: `string`):

Match against case name, pollutant description, outcome, law (e.g. 'refinery', 'benzene', 'asbestos').

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

Stop after this many cases.

## `requestDelaySecs` (type: `number`):

Politeness pacing toward the official EPA portal.

## `proxyConfiguration` (type: `object`):

NOT needed — official API.

## Actor input object example

```json
{
  "mode": "search",
  "states": [],
  "daysBack": 30,
  "fromDate": "",
  "toDate": "",
  "caseCategories": [],
  "civilCriminal": "",
  "caseLead": "",
  "law": "",
  "minFedPenalty": 0,
  "naics": "",
  "voluntaryDisclosure": "",
  "lawIncludes": "",
  "outcomeIncludes": "",
  "keywords": "",
  "maxResults": 100,
  "requestDelaySecs": 0.4,
  "proxyConfiguration": {}
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("amygraphics/epa-enforcement-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("amygraphics/epa-enforcement-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 '{}' |
apify call amygraphics/epa-enforcement-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,amygraphics/epa-enforcement-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/MW609ns3USEeqjuYt/builds/G0wBYLVQ5KmZOdcP4/openapi.json
