# EPA ECHO Facilities & Environmental Compliance Scraper (`logiover/epa-echo-facilities-scraper`) Actor

Export US EPA ECHO regulated facilities, permits, compliance flags, inspections, enforcement and penalties from the official weekly bulk dataset. Filter by state, NAICS and environmental program. No API key required.

- **URL**: https://apify.com/logiover/epa-echo-facilities-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## EPA ECHO Facilities & Environmental Compliance Scraper

Export facility-level environmental compliance data from the official **US EPA ECHO Exporter**. The Actor streams EPA's weekly bulk file and turns its 130+ source fields into an analysis-ready Apify dataset without requiring an API key.

### What you can build

- Environmental due-diligence and Phase I site-screening pipelines
- ESG, compliance and enforcement monitoring
- Industrial lead lists segmented by NAICS and EPA program
- Location intelligence for regulated facilities
- Research datasets covering permits, inspections, violations, actions and penalties

EPA states that ECHO covers more than 1.5 million regulated facilities. A run can save up to **500,000 matching facilities**; use multiple state/program runs when you need a larger partitioned export.

### Input

| Field | Description | Default |
|---|---|---|
| `maxResults` | Maximum facilities, 1–500,000 | `500` |
| `states` | Two-letter US state/territory codes | all |
| `nameContains` | Case-insensitive facility-name fragment | empty |
| `naicsPrefix` | Industry code prefix, e.g. `324` | empty |
| `program` | `ALL`, `CAA`, `CWA`, `RCRA`, `SDWA`, `TRI`, or `GHG` | `ALL` |
| `violationsOnly` | Keep current non-compliance records only | `false` |
| `includeRawRecord` | Include all 130+ source fields (slower/larger) | `false` |

Example — Texas Clean Air Act facilities:

```json
{
  "states": ["TX"],
  "program": "CAA",
  "maxResults": 10000
}
```

Example — currently non-compliant petroleum-sector facilities:

```json
{
  "naicsPrefix": "324",
  "violationsOnly": true,
  "maxResults": 50000
}
```

### Output

Each dataset item includes normalized fields such as `registryId`, `facilityName`, address, coordinates, NAICS/SIC codes, program flags, current violation status, five-year inspection/enforcement measures, penalties and a direct ECHO report URL. Set `includeRawRecord` to `true` when you also need every field supplied in the official export; keep it off for high-volume delivery.

```json
{
  "registryId": "110000000001",
  "facilityName": "Example Facility",
  "city": "HOUSTON",
  "state": "TX",
  "naicsCodes": "324110",
  "currentViolation": "Y",
  "latitude": 29.76,
  "longitude": -95.36,
  "programs": { "air": "Y", "water": "N", "hazardousWaste": "Y" },
  "detailUrl": "https://echo.epa.gov/detailed-facility-report?fid=110000000001"
}
```

### Integrations

Run the Actor from the Apify Console, API, CLI, schedules or webhooks. Results are available as JSON, CSV, Excel, XML and RSS through the default dataset endpoints.

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR_USERNAME~epa-echo-facilities-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"states":["CA"],"program":"CWA","maxResults":5000}'
```

### Data source and limitations

Data comes from the [EPA ECHO bulk download](https://echo.epa.gov/tools/data-downloads), which EPA generally refreshes weekly. A facility's absence, status or compliance flag must be interpreted using EPA's methodology and reporting periods. The Actor does not infer violations and is not a substitute for legal or environmental advice.

### Changelog

- **2026-08-01 — v1.0.0:** Initial release. Added streaming bulk extraction, state/name/NAICS/program/violation filters, optional complete raw fields, 500,000-item runs, typed overview dataset and source retry handling. Validated against the live EPA export with default, filtered and 10,000-item inputs.

# Actor input Schema

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

Maximum number of matching facilities to save. Raise up to 500,000 for bulk exports.

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

Optional two-letter codes such as CA, TX or NY. Empty means all states and territories.

## `nameContains` (type: `string`):

Optional case-insensitive name fragment.

## `naicsPrefix` (type: `string`):

Optional industry prefix, for example 324 for petroleum manufacturing.

## `program` (type: `string`):

Require participation in one EPA program or return facilities from all programs.

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

Only keep facilities marked as currently in violation or non-compliance.

## `includeRawRecord` (type: `boolean`):

Add the complete source row to every item. Keep off for much faster high-volume exports.

## Actor input object example

```json
{
  "maxResults": 500,
  "states": [],
  "nameContains": "",
  "naicsPrefix": "",
  "program": "ALL",
  "violationsOnly": false,
  "includeRawRecord": false
}
```

# 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("logiover/epa-echo-facilities-scraper").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("logiover/epa-echo-facilities-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 logiover/epa-echo-facilities-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=logiover/epa-echo-facilities-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/u7GWuhWDvzTjSxXnL/builds/pWhiMcloM44eASeKY/openapi.json
