# EPA Facility Compliance Leads API - Violations & Penalties (`infocomp/epa-echo-facility-compliance-leads`) Actor

Firm-level EPA compliance leads from the official EPA ECHO API: facility name, address, NAICS/SIC, program IDs, compliance status, quarters in noncompliance, last inspection, formal enforcement actions and penalties. $3.00 per 1,000 facilities. No individual names. Not endorsed by the U.S. EPA.

- **URL**: https://apify.com/infocomp/epa-echo-facility-compliance-leads.md
- **Developed by:** [InfoComp Data](https://apify.com/infocomp) (community)
- **Categories:** Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 facilities

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 Facility Compliance Leads API - Violations & Penalties

Firm-level compliance leads from the **official U.S. EPA ECHO (Enforcement and Compliance History Online) web services**.
One row per regulated **facility** (company site): name, address, county, NAICS / SIC, EPA program IDs, overall and per-program
compliance status, quarters in noncompliance (of the last 12), inspections, formal enforcement actions, penalties, and a link to the EPA Detailed Facility Report.
Search by state, ZIP code, county or NAICS code and filter to facilities that are currently in violation.

**Facilities only. No individual contact data.** ECHO facility records contain no personal contact fields and none is requested. (A few
registered facilities are named after a person or family business; that is the registry name of the site, not personal data collected by this Actor.)

### Price

**$0.003 per saved facility = $3.00 per 1,000 facilities.** Pay per event (`facility`), one charge per saved row.
No start fee and no run fee. Searches that fail, return nothing or match zero facilities are **free**. Set a maximum cost per run in Apify and the run stops cleanly at it
(page size is capped to what your limit still allows, and the limit is checked before every request and every save).

### Input

| Field | Meaning |
|---|---|
| `states` | Two-letter codes or names. Default / `{}`: `DE` |
| `zipCodes` | Optional 5-digit facility ZIP codes |
| `counties` | Optional, one county name; needs exactly one state |
| `naicsCodes` | Optional 2-, 4- or 6-digit NAICS (no state/ZIP = nationwide, must be narrow enough for ECHO to run) |
| `complianceFilter` | `anyViolation` (default), `significantViolation`, `any` |
| `minQuartersInNoncompliance` | `any`, `GT1`, `GT2`, `GT4`, `GT8` (more than N of the last 12 quarters) |
| `lastPenalty` | `any`, `LE1YR`, `LE3YR`, `LE5YR` |
| `majorOnly`, `activeOnly` | EPA major-facility flag; active facilities only (default true) |
| `sortBy` | `penalties` (default), `quartersInNoncompliance`, `formalActions`, `name` |
| `maxResults` | Default 25, max 1,000 |

An empty `{}` input runs the prefill (Delaware, any current violation, 25 facilities) in about 3 seconds.

### Real output sample

Real row from a live run on November 15, 2026 (`{"states": ["DE"], "maxResults": 25}`, sorted by penalties):

```json
{
  "facilityName": "NRG ENERGY CENTER-DOVER",
  "registryId": "110000338910",
  "street": "1280 WEST NORTH STREET",
  "city": "DOVER",
  "state": "DE",
  "zip": "19904",
  "county": "KENT",
  "countyFips": "10001",
  "latitude": 39.14927,
  "longitude": -75.54723,
  "naicsCodes": [
    "221112"
  ],
  "naicsDescriptions": "221112: Fossil Fuel Electric Power Generation",
  "sicCodes": [
    "4911"
  ],
  "sicDescriptions": "4911: Electric Services",
  "programIds": {
    "cleanAir": [
      "DE0000001000100127"
    ],
    "cleanWaterNpdes": [
      "DEPIU0003"
    ],
    "hazardousWasteRcra": [],
    "drinkingWaterSdwa": [],
    "toxicsReleaseInventory": [
      "19904FRSTS1280W"
    ]
  },
  "complianceStatus": "Significant Violation",
  "significantViolation": true,
  "quartersInNoncompliance": 11,
  "quartersTracked": 12,
  "programStatus": {
    "cleanAir": "Violation Addressed; State Has Lead Enforcement",
    "cleanWater": "No Violation Identified",
    "hazardousWaste": null,
    "drinkingWater": null
  },
  "inspectionsLast5Years": 3,
  "lastInspectionDate": "2026-09-11",
  "formalEnforcementActions": 2,
  "lastFormalActionDate": "2025-05-06",
  "totalPenaltiesUsd": 50000,
  "penaltyCountLast5Years": 1,
  "lastPenaltyDate": "2024-12-19",
  "lastPenaltyAmountUsd": 50000,
  "majorFacility": true,
  "activeFacility": true,
  "detailedFacilityReportUrl": "https://echo.epa.gov/detailed-facility-report?fid=110000338910",
  "dataCredit": "U.S. EPA Enforcement and Compliance History Online (ECHO), echo.epa.gov",
  "disclaimer": "Compiled from public U.S. EPA ECHO records; not endorsed by the U.S. EPA. A status or count is a record in EPA data systems, not a legal finding; verify in the Detailed Facility Report before relying on it.",
  "scrapedAt": "2026-11-15T13:09:08-06:00"
}
```

Real run: 25 facilities saved (ECHO matched 102 in Delaware with a current violation), 2 HTTP requests, 0.86 s Actor time, 72 MB peak memory. Cost at this price: 25 x $0.003 = **$0.075**.

### Output fields

`facilityName, registryId, street, city, state, zip, county, countyFips, latitude, longitude, naicsCodes, naicsDescriptions, sicCodes, sicDescriptions, programIds{cleanAir, cleanWaterNpdes, hazardousWasteRcra, drinkingWaterSdwa, toxicsReleaseInventory}, complianceStatus, significantViolation, quartersInNoncompliance, quartersTracked, programStatus{cleanAir, cleanWater, hazardousWaste, drinkingWater}, inspectionsLast5Years, lastInspectionDate, formalEnforcementActions, lastFormalActionDate, totalPenaltiesUsd, penaltyCountLast5Years, lastPenaltyDate, lastPenaltyAmountUsd, majorFacility, activeFacility, detailedFacilityReportUrl, dataCredit, disclaimer, scrapedAt`.
A run summary (filters, facilities matched by ECHO, rows saved, timing, errors) is saved to the key-value store as `OUTPUT` / `RUN_SUMMARY`.

### Notes and limits

- Only facilities inside the ZIP codes or states you ask for are saved and charged. ZIP 99999 (ECHO's placeholder for an unknown ZIP) and 00000 are rejected as invalid input at no charge.
- Data: U.S. EPA ECHO, a live government data service refreshed by EPA on its own schedule. **Not endorsed by the U.S. EPA.** A compliance status or count is a record in EPA data systems, not a legal finding; check the Detailed Facility Report before relying on it.
- Counts and penalty totals follow ECHO's own definitions (for example penalties exclude proposed penalties and SEPs, and some federal penalties are not in the total to avoid double counting).
- ECHO refuses searches that would match too many facilities (about 70,000). The Actor then stops with a clear message and charges nothing; add a state, county, ZIP, NAICS code or violation filter.
- Facilities can appear on ECHO under several registry ids; each registry id is one row, and the same id is never saved twice in a run.
- Timing: every request has a 25 s timeout, 3 tries and a 240 s overall fetch budget, so a run cannot exceed about 4 minutes.
- Memory: runs fine in 256 MB (local peak 72 MB).

# Actor input Schema

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

Two-letter state/territory codes (or full names). Prefilled with DE for a quick demo. An empty {} input also uses DE (unless you give ZIPs, counties or NAICS codes).

## `zipCodes` (type: `array`):

Optional. 5-digit facility ZIP codes. Combined with states by AND.

## `counties` (type: `array`):

Optional. One county name (e.g. Kent or Kent County) - requires exactly one state.

## `naicsCodes` (type: `array`):

Optional. 2-, 4- or 6-digit NAICS industry codes, e.g. 3251 (basic chemical manufacturing). Without any state/ZIP the search is nationwide and must be narrow enough for ECHO to run.

## `complianceFilter` (type: `string`):

Current compliance status in EPA data. Default: any current violation.

## `minQuartersInNoncompliance` (type: `string`):

Only facilities in violation for more than N of the last 12 quarters (3 years).

## `lastPenalty` (type: `string`):

Only facilities with an assessed penalty in that window.

## `majorOnly` (type: `boolean`):

Only facilities EPA flags as major.

## `activeOnly` (type: `boolean`):

Only active/operating facilities.

## `sortBy` (type: `string`):

Order of results (matters when Max results is lower than the matches).

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

Stop after this many facility rows (each facility is saved and charged once).

## Actor input object example

```json
{
  "states": [
    "DE"
  ],
  "complianceFilter": "anyViolation",
  "minQuartersInNoncompliance": "any",
  "lastPenalty": "any",
  "majorOnly": false,
  "activeOnly": true,
  "sortBy": "penalties",
  "maxResults": 25
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (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 = {
    "states": [
        "DE"
    ],
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("infocomp/epa-echo-facility-compliance-leads").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 = {
    "states": ["DE"],
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("infocomp/epa-echo-facility-compliance-leads").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 '{
  "states": [
    "DE"
  ],
  "maxResults": 25
}' |
apify call infocomp/epa-echo-facility-compliance-leads --silent --output-dataset

```

## MCP server setup

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

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/4WsuDB4xAuDj14Omi/builds/nWjBPthvY6suefynq/openapi.json
