# EPA ECHO Scraper — Violations & Penalties ($0.50/1k) (`desastreger/epa-echo-industrial-facility-compliance`) Actor

High-speed US EPA ECHO environmental compliance scraper for Clean Water (NPDES), Clean Air & RCRA hazardous waste facilities. Extracts SNC flags, Qtrs in violation, inspections & fines. Early-bird $0.50/1k (rises to $1.50/1k). +MCP.

- **URL**: https://apify.com/desastreger/epa-echo-industrial-facility-compliance.md
- **Developed by:** [Ignacio De Saeger](https://apify.com/desastreger) (community)
- **Categories:** Lead generation, Agents, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 epa industrial facility compliance & enforcement records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### US EPA ECHO Scraper — Industrial Violations, NPDES & Enforcement API

The **EPA ECHO Industrial Facility Compliance Scraper** screens US industrial plants, chemical manufacturers, refineries, and municipal utilities for **Clean Water Act (`cwa` / NPDES)**, **Clean Air Act (`air`)**, and **RCRA Hazardous Waste (`rcra`)** violations using official **US EPA ECHO REST APIs** (`echodata.epa.gov`). Using fast two-step program services (`get_facilities` -> `get_qid`) in 128MB RAM, it avoids slow bulk file exports and normalizes disparate permit datasets into one unified schema: `facilityName`, `sourcePermitId`, `epaRegistryId` (FRS ID), `statuteProgram`, `address`, `city`, `state`, `county`, `latitude`, `longitude`, `industryCodes` (NAICS/SIC), `complianceStatus`, `inSignificantNonCompliance` (SNC/HPV), `quartersInNonCompliance`, `inspectionsCount`, `formalEnforcementCount`, `totalPenaltiesUsd`, and a `0–100` `complianceRiskScore` (`CRITICAL`, `ELEVATED`, `MODERATE`). Includes native Standby MCP Server support. **No external API key or proxy required.**

### Use cases

- **Environmental Consulting & Remediation Sales:** Find plants with active Significant Non-Compliance (`SNC` / `HPV`) or `quartersInNonCompliance` across target states and NAICS codes.
- **Industrial Water, Air & Scrubbing Equipment OEMs:** Target facilities with Clean Water Act NPDES or Clean Air Act violations and recent civil penalties (`minPenaltyUsd`).
- **M\&A Environmental Due Diligence:** Run 360-degree cross-statute facility lookups via `epaRegistryId` or `sourcePermitId` before closing industrial real estate or corporate acquisitions.
- **Commercial P\&C Insurance & Surety Underwriting:** Screen manufacturing sites for multi-quarter enforcement histories, inspection counts, and penalty exposure.
- **ESG & Supply-Chain Risk Monitoring:** Audit Tier-1 and Tier-2 US suppliers by company name, city, or NAICS prefix via REST API or Clay/n8n pipelines.
- **AI Compliance Agents (MCP):** Connect Claude Desktop, Cursor, or Google Antigravity directly to `/mcp` for live EPA ECHO due diligence.

***

### Transparent Pay-Per-Event Launch Pricing

> \[!IMPORTANT]
> **Early-Adopter Launch Rate (`$0.50 / 1,000 records`):** Temporary promotional pricing for early Apify Store adopters & integrations (**25x cheaper** than `$12.50/1k` EPA ECHO incumbents).
> **Upcoming Standard Rate (`$1.50 / 1,000 records`):** Price will step up once initial launch benchmarks are met — and even the permanent standard rate remains **8x cheaper** than `$12.50/1k` EPA competitors (**75%–95% lower** than `$10–$80/1k` Store scrapers).

Pay only per normalized EPA facility compliance record returned—no fixed monthly subscriptions:

| Plan Tier | Event (`industrial-compliance-record`) | Effective Rate |
| :--- | :--- | :--- |
| **Early-Bird Launch / Free** | `$0.00050` per record | **$0.50 per 1,000 records** |
| **Bronze** | `$0.00045` per record | **$0.45 per 1,000 records** |
| **Silver** | `$0.00040` per record | **$0.40 per 1,000 records** |
| **Gold** | `$0.00035` per record | **$0.35 per 1,000 records** |
| **Scheduled Standard Rate** | `$0.00150` per record | **$1.50 per 1,000 records** |

***

### 1-Click JSON Input Example

```json
{
  "programs": ["cwa", "air", "rcra"],
  "states": ["TX", "LA"],
  "violationsOnly": true,
  "naicsCode": "325",
  "minPenaltyUsd": 10000,
  "maxResults": 50
}
```

***

### Sample Unified Output Record

```json
{
  "facilityName": "CRODA, INC",
  "sourcePermitId": "DE0000001000300058",
  "epaRegistryId": "110000338652",
  "statuteProgram": "CLEAN_AIR_ACT",
  "address": "315 CHERRY LANE",
  "city": "NEW CASTLE",
  "state": "DE",
  "zipCode": "19720",
  "county": "New Castle",
  "latitude": 39.690455,
  "longitude": -75.538406,
  "industryCodes": [
    "NAICS:325613",
    "SIC:2821",
    "SIC:2833",
    "SIC:2843"
  ],
  "complianceStatus": "High Priority Violation (Addressed-State)",
  "inSignificantNonCompliance": true,
  "quartersInNonCompliance": 12,
  "inspectionsCount": 249,
  "formalEnforcementCount": 1,
  "totalPenaltiesUsd": 0,
  "complianceRiskScore": 88,
  "riskTier": "CRITICAL",
  "echoReportUrl": "https://echo.epa.gov/detailed-facility-report?fid=110000338652"
}
```

***

### API Quickstart (cURL, Node.js & Python)

#### cURL (Synchronous Run + Dataset Items)

```bash
curl -X POST "https://api.apify.com/v2/acts/desastreger~epa-echo-industrial-facility-compliance/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "programs": ["cwa", "air"],
    "states": ["DE"],
    "violationsOnly": true,
    "maxResults": 25
  }'
```

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('desastreger/epa-echo-industrial-facility-compliance').call({
  programs: ['cwa', 'air', 'rcra'],
  states: ['TX', 'LA'],
  violationsOnly: true,
  minPenaltyUsd: 5000,
  maxResults: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("desastreger/epa-echo-industrial-facility-compliance").call(run_input={
    "programs": ["cwa", "air"],
    "states": ["PA", "OH"],
    "violationsOnly": True,
    "naicsCode": "325",
    "maxResults": 50,
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[:3])
```

***

### Model Context Protocol (MCP) Integration

Connect **Claude Desktop**, **Cursor**, or **Google Antigravity** directly to the live Standby MCP server at `/mcp`:

```json
{
  "mcpServers": {
    "epa-echo-compliance": {
      "url": "https://desastreger--epa-echo-industrial-facility-compliance.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

**Exposed MCP Tools:**

- `search_epa_facility_violations`: Screen industrial facilities across `cwa`, `air`, and `rcra` by US states, `violationsOnly`, `facilityName`, `city`, `naicsCode`, and `minPenaltyUsd`.
- `lookup_facility_compliance`: Perform 360-degree cross-statute environmental due diligence on a specific plant by `registryId` (EPA FRS ID), `sourcePermitId`, or `facilityName`.

***

### Data Legality & Provenance

100% of data is retrieved live from official US Environmental Protection Agency Enforcement and Compliance History Online (`echodata.epa.gov`) public REST services and is in the **US public domain (`17 U.S.C. § 105`)**.

# Actor input Schema

## `programs` (type: `array`):

EPA regulatory statute programs to query. Supported values: 'cwa' (Clean Water Act / NPDES), 'air' (Clean Air Act), 'rcra' (RCRA Hazardous Waste).

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

2-letter US state or territory codes to screen (e.g., \['DE'], \['TX', 'LA'], \['PA', 'OH']).

## `violationsOnly` (type: `boolean`):

When enabled (default), returns only facilities with non-compliance quarters, Significant Non-Compliance (SNC) / High Priority Violations (HPV), formal enforcement actions, or assessed penalties.

## `facilityName` (type: `string`):

Optional partial or exact facility/company name filter (e.g., 'CRODA', 'DUPONT', 'BUCKEYE').

## `city` (type: `string`):

Optional city name filter (e.g., 'WILMINGTON', 'NEW CASTLE', 'HOUSTON').

## `naicsCode` (type: `string`):

Optional 2-to-6 digit NAICS industry code or prefix (e.g., '325' for Chemical Manufacturing, '324110' for Petroleum Refineries).

## `minPenaltyUsd` (type: `number`):

Minimum total formal enforcement civil penalties in USD (e.g., 10000 for $10,000+ penalized facilities).

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

Maximum total normalized EPA facility compliance records to return (1 to 500).

## Actor input object example

```json
{
  "programs": [
    "cwa",
    "air"
  ],
  "states": [
    "DE"
  ],
  "violationsOnly": true,
  "minPenaltyUsd": 0,
  "maxResults": 25
}
```

# Actor output Schema

## `facilities` (type: `string`):

No description

## `runSummary` (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("desastreger/epa-echo-industrial-facility-compliance").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("desastreger/epa-echo-industrial-facility-compliance").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 desastreger/epa-echo-industrial-facility-compliance --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,desastreger/epa-echo-industrial-facility-compliance"
        }
    }
}
```

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/HPG3yEOKnjb7PrnEk/builds/QjWXsK9buygUpoQbP/openapi.json
