# EPA ECHO & OSHA Environmental Compliance Leads Scraper (`apex-b2b-data/epa-echo-osha-compliance-leads`) Actor

Extract commercial and industrial regulatory compliance leads from US EPA ECHO across all 50 states. Query active facilities, compliance status, violation flags, 5-year inspection counts, formal enforcement actions, penalty amounts, and ESG compliance risk scores.

- **URL**: https://apify.com/apex-b2b-data/epa-echo-osha-compliance-leads.md
- **Developed by:** [George Barnes](https://apify.com/apex-b2b-data) (community)
- **Categories:** Business, Lead generation, Automation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 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/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 ECHO & OSHA Environmental & Workplace Compliance Leads Scraper (`$1.50 / 1K Leads`)

**Extract verified US industrial, manufacturing, and commercial facilities from the official EPA ECHO (Enforcement and Compliance History Online) REST services across all 50 states. Includes physical addresses, NAICS/SIC industry classifications, CAA/CWA/RCRA/SDWA compliance statuses, 5-year inspection history, formal enforcement action counts, total assessed penalties, OSHA search links, and computed 0–100 ESG compliance risk scores.**

Ideal for **environmental attorneys, EHS (Environmental Health & Safety) software providers, remediation contractors, ESG risk auditors, and industrial insurance underwriters**.

***

### Why Choose This EPA ECHO Actor? (Comparison)

| Feature | This Actor | Legacy Web Scrapers | Manual EPA ECHO Website |
| :--- | :--- | :--- | :--- |
| **Price per 1,000 Facilities** | **`$1.50 / 1K` (`$0.0015`/facility)** | `$5.00 – $15.00 / 1K` | Manual copy-paste only |
| **2-Step QueryID Retrieval** | ✅ Automated 2-step REST engine | ❌ Fails on >10k results | ⚠️ Browser crashes on large queries |
| **Active Operating Facilities Filter (`p_act=Y`)** | ✅ Built-in server limit protection | ❌ Often hits 100k row error | ⚠️ Must manually check boxes |
| **Compliance Risk Score (0–100)** | ✅ Auto-computed ESG Risk Score | ❌ Raw unnormalized data | ❌ No scoring |
| **Multi-Statute Status (CAA, CWA, RCRA, SDWA)** | ✅ Normalized per-statute fields | ⚠️ Fragmented or missing | ⚠️ Buried in PDF tabs |
| **Direct EPA Detailed Facility Report URL** | ✅ Included (`echo_report_url`) | ❌ No | ⚠️ Manual lookup |
| **Direct OSHA Inspection Cross-Reference URL** | ✅ Included (`osha_inspection_search_url`) | ❌ No | ❌ Not linked |
| **Proxy & CAPTCHA Costs** | **`$0.00` (Zero residential proxies required)** | High proxy overhead | N/A |
| **Export Formats** | JSON, CSV, Excel, XML, HTML | JSON / CSV only | CSV with truncated columns |

***

### Transparent Pricing (`$1.50` per 1,000 Facility Leads)

You are charged **only for facility records returned** (`$0.0015` per record via Pay-Per-Event):

| Workflow | Facilities Returned | Total Cost |
| :--- | :--- | :--- |
| **Zero-Config Trial Run** (`state: "DE"`, `limit: 20`) | `20` leads | **`$0.03` (3 cents)** |
| **Targeted High-Violation Pull** | `500` leads | **`$0.75`** |
| **Metropolitan / County Deep Sweep** | `1,000` leads | **`$1.50`** |
| **Statewide Industrial Audit** | `10,000` leads | **`$15.00`** |

***

### High-Intent B2B Playbooks (Copy-Paste Inputs)

#### 1. Zero-Input Quick Test Run (Delaware Commercial Facilities)

Test the scraper immediately with working zero-configuration defaults:

```json
{
  "state": "DE",
  "limit": 20,
  "activeOnly": true
}
```

#### 2. Environmental Attorneys & Remediation: "High-Risk Violators & SNC Facilities"

Target facilities flagged with **Significant Non-Compliance (SNC)** and formal civil/judicial enforcement actions:

```json
{
  "state": "TX",
  "limit": 100,
  "activeOnly": true,
  "violationsOnly": true,
  "significantNonComplianceOnly": true,
  "formalEnforcementOnly": true,
  "minRiskScore": 50
}
```

#### 3. EHS SaaS & Industrial Safety Consultants: Chemical & Petrochemical Facilities

Target chemical manufacturers (`NAICS 325`) in Ohio or Pennsylvania with active inspection history:

```json
{
  "state": "OH",
  "naicsCode": "325",
  "limit": 250,
  "activeOnly": true,
  "violationsOnly": false,
  "minPenalties": 1000
}
```

#### 4. ESG Due Diligence & M\&A Environmental Audits: County-Level Industrial Sweep

Target all active industrial facilities in Harris County, TX with assessed penalties for environmental due diligence:

```json
{
  "state": "TX",
  "county": "Harris",
  "limit": 500,
  "activeOnly": true,
  "minPenalties": 5000
}
```

***

### Input Parameters Reference

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `state` | `string` | `"DE"` | 2-letter US State postal code (e.g. `"TX"`, `"CA"`, `"OH"`, `"PA"`). |
| `limit` | `integer` | `20` | Max facilities to return (`1` to `2000`). |
| `activeOnly` | `boolean` | `true` | Restricts search to active facilities (`p_act=Y`), preventing 100k row server limits. |
| `violationsOnly` | `boolean` | `false` | Only return facilities with active non-compliance, SNC, or penalty records. |
| `significantNonComplianceOnly` | `boolean` | `false` | Filter for facilities designated as Significant Non-Compliance (SNC). |
| `formalEnforcementOnly` | `boolean` | `false` | Filter for facilities with formal administrative or judicial enforcement actions. |
| `naicsCode` | `string` | `""` | 2 to 6-digit NAICS industry prefix (e.g. `"325"` for Chemical, `"211"` for Oil & Gas). |
| `zipCode` | `string` | `""` | 5-digit US postal ZIP code (e.g. `"19713"`). |
| `county` | `string` | `""` | US County name (e.g. `"New Castle"`, `"Harris"`). |
| `facilityName` | `string` | `""` | Search keyword for facility / company name. |
| `minPenalties` | `integer` | `0` | Minimum total assessed penalties in USD. |
| `minRiskScore` | `integer` | `0` | Minimum computed compliance risk score (0 to 100). |

***

### Sample Enriched Output Record

```json
{
  "registry_id": "110008309874",
  "facility_name": "WILMINGTON PHARMATECH GLASGOW SITE",
  "facility_street": "2309 SUNSET LAKE ROAD",
  "facility_city": "NEWARK",
  "facility_state": "DE",
  "facility_zip": "19702",
  "naics_codes": [
    "541715"
  ],
  "compliance_status": "No Violation Identified",
  "violation_flag": true,
  "inspection_count_5yr": 2,
  "formal_enforcement_count": 1,
  "total_penalties_usd": 10000.0,
  "compliance_risk_score": 49,
  "extracted_at": "2026-11-04T00:23:07.391002+00:00",
  "facility_county": "NEW CASTLE",
  "sic_codes": [],
  "sic_descriptions": null,
  "is_significant_non_compliance": false,
  "quarters_in_non_compliance": 0,
  "caa_compliance_status": null,
  "cwa_compliance_status": null,
  "rcra_compliance_status": "No Violation Identified",
  "sdwa_compliance_status": null,
  "compliance_risk_tier": "MODERATE",
  "risk_factors": [
    "1 Formal Enforcement Actions",
    "$10,000.00 Assessed Penalties"
  ],
  "lead_segments": [
    "ENFORCEMENT_ACTION_HISTORY",
    "PENALTY_ASSESSED"
  ],
  "echo_report_url": "https://echo.epa.gov/detailed-facility-report?fid=110008309874",
  "osha_inspection_search_url": "https://www.osha.gov/ords/imis/establishment.search?establishment=WILMINGTON+PHARMATECH+GLASGOW+SITE&state=DE"
}
```

***

### Integration Snippets

#### Python (Apify Client)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {
    "state": "TX",
    "limit": 100,
    "activeOnly": True,
    "violationsOnly": True,
    "minRiskScore": 40
}

run = client.actor("your-username/epa-echo-osha-compliance-leads").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"Facility: {item['facility_name']} | Risk: {item['compliance_risk_score']} | Penalties: ${item['total_penalties_usd']}")
```

#### Node.js / JavaScript (Apify Client)

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const input = {
  state: 'OH',
  limit: 50,
  activeOnly: true,
  naicsCode: '325',
};

const run = await client.actor('your-username/epa-echo-osha-compliance-leads').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Retrieved ${items.length} facility compliance leads`);
```

#### REST API / cURL (Synchronous Output for Clay / Make / n8n)

```bash
curl -X POST "https://api.apify.com/v2/acts/your-username~epa-echo-osha-compliance-leads/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "state": "DE",
    "limit": 25,
    "activeOnly": true
  }'
```

#### Claude / ChatGPT MCP Server Integration

Add this Actor to your MCP settings to allow your AI assistant to query EPA compliance leads on demand:

```json
{
  "mcpServers": {
    "epa-echo-compliance": {
      "command": "npx",
      "args": ["-y", "@apify/mcp-server-actor", "--actor-id", "your-username/epa-echo-osha-compliance-leads", "--token", "YOUR_APIFY_TOKEN"]
    }
  }
}
```

# Actor input Schema

## `state` (type: `string`):

2-letter US State postal abbreviation (e.g. 'DE', 'TX', 'CA', 'OH', 'PA').

## `limit` (type: `integer`):

Maximum number of compliance facility leads to return.

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

Restricts search to active facilities (p_act=Y), preventing server query limits and returning active operating businesses.

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

Filter results to only return facilities with documented non-compliance, active violations, or penalty history.

## `significantNonComplianceOnly` (type: `boolean`):

Only return facilities currently designated with Significant Non-Compliance (SNC) status.

## `formalEnforcementOnly` (type: `boolean`):

Filter for facilities that have formal administrative or judicial enforcement action records.

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

Filter by 2-digit to 6-digit NAICS industry prefix (e.g. '325' for Chemical, '211' for Oil & Gas, '332' for Fabricated Metal).

## `zipCode` (type: `string`):

5-digit US postal ZIP code to filter facilities (e.g. '19713').

## `county` (type: `string`):

County name to filter facilities within the state (e.g. 'New Castle', 'Harris', 'Cook').

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

Search keyword for facility or company name.

## `minPenalties` (type: `integer`):

Filter for facilities with total assessed penalties equal to or greater than this dollar amount.

## `minRiskScore` (type: `integer`):

Filter for facilities whose computed compliance risk score meets or exceeds this threshold.

## Actor input object example

```json
{
  "state": "DE",
  "limit": 20,
  "activeOnly": true,
  "violationsOnly": false,
  "significantNonComplianceOnly": false,
  "formalEnforcementOnly": false,
  "naicsCode": "",
  "zipCode": "",
  "county": "",
  "facilityName": "",
  "minPenalties": 0,
  "minRiskScore": 0
}
```

# Actor output Schema

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

Structured JSON records produced by EPA ECHO & OSHA Environmental Compliance Leads Scraper in the default dataset.

# 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("apex-b2b-data/epa-echo-osha-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("apex-b2b-data/epa-echo-osha-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 '{}' |
apify call apex-b2b-data/epa-echo-osha-compliance-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apex-b2b-data/epa-echo-osha-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/fzUn1XBQ0IzDeFOjW/builds/wuvut8hCj8de36mCX/openapi.json
