# EPA ECHO Enforcement & Facility Watch Scraper (`taroyamada/epa-echo-enforcement-facility-watch-scraper`) Actor

Track EPA ECHO public facility, enforcement, and compliance-summary signals by state, program, facility, company, and watch terms.

- **URL**: https://apify.com/taroyamada/epa-echo-enforcement-facility-watch-scraper.md
- **Developed by:** [太郎 山田](https://apify.com/taroyamada) (community)
- **Categories:** Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $100.00 / 1,000 epa echo watch alerts

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Enforcement & Facility Watch Scraper

Regulatory operations, procurement diligence, and public-data monitoring teams use this actor to watch public ECHO facility and enforcement signals.

Input states, programs, facility names, and enforcement keywords from EPA ECHO web services.

Get source-linked facility, enforcement, and penalty alert rows for public-data review workflows.

### Store Quickstart

1. Use the first input example with `dryRun=false`.
2. Keep `notifyOnNoNew=false` so unchanged scheduled checks emit zero rows and zero charges.
3. Review `billingEventName` in the output before increasing feed count.

### Input Examples

```json
{
  "feeds": [
    {
      "id": "california-active-facilities",
      "name": "California active facility watch",
      "states": "CA",
      "programs": "CWA",
      "facilityNames": "",
      "keywords": "enforcement,violation,penalty"
    }
  ],
  "watchTerms": "penalty,effluent,inspection,case",
  "lookbackDays": 30,
  "datasetMode": "action_needed",
  "notifyOnNoNew": false,
  "emitReport": true,
  "dryRun": false
}
````

```json
{
  "feeds": [
    {
      "id": "california-active-facilities",
      "name": "California active facility watch",
      "states": "CA",
      "programs": "CWA",
      "facilityNames": "",
      "keywords": "enforcement,violation,penalty"
    }
  ],
  "watchTerms": "penalty,effluent,inspection,case",
  "lookbackDays": 30,
  "datasetMode": "new_only",
  "notifyOnNoNew": false,
  "emitReport": false,
  "dryRun": false
}
```

```json
{
  "feeds": [
    {
      "id": "california-active-facilities",
      "name": "California active facility watch",
      "states": "CA",
      "programs": "CWA",
      "facilityNames": "",
      "keywords": "enforcement,violation,penalty"
    }
  ],
  "watchTerms": "penalty,effluent,inspection,case",
  "lookbackDays": 30,
  "datasetMode": "action_needed",
  "notifyOnNoNew": false,
  "emitReport": true,
  "dryRun": true
}
```

### Sample Output

```json
{
  "actorName": "epa-echo-enforcement-facility-watch-scraper",
  "rowType": "epa_echo_digest",
  "feedId": "california-active-facilities",
  "feedName": "California active facility watch",
  "checkedAt": "2026-05-11T00:00:00.000Z",
  "fetchedAt": "2026-05-11T00:00:00.000Z",
  "sourceUrl": "https://echodata.epa.gov/echo/cwa_rest_services.get_facilities?output=JSON&p_st=CA&p_act=Y&responseset=1",
  "warnings": [],
  "status": "action_needed",
  "newDocCount": 1,
  "totalDocCount": 1,
  "changedSinceLastRun": true,
  "actionNeeded": true,
  "reviewNote": "Review the source-linked public record and update the watchlist if needed.",
  "signalTags": [
    "watch_term_hit"
  ],
  "watchTermHits": [
    {
      "term": "enforcement",
      "docNumber": "epa-echo-ca-active",
      "title": "California active facility public ECHO summary"
    }
  ],
  "documents": [
    {
      "docNumber": "epa-echo-ca-active",
      "title": "California active facility public ECHO summary",
      "docType": "EPA_ECHO_SUMMARY",
      "publicationDate": "2026-05-11",
      "primaryAgency": "EPA",
      "state": "CA",
      "sourceUrl": "https://echodata.epa.gov/echo/cwa_rest_services.get_facilities?output=JSON&p_st=CA&p_act=Y&responseset=1"
    }
  ],
  "billingEventName": "epa-echo-watch-alert"
}
```

### Output fields

- `rowType`: `epa_echo_digest`
- `billingEventName`: one of `epa-echo-watch-alert`, `epa-echo-digest`, or `epa-echo-report`
- `documents[]`: nested official public records with source URLs
- `watchTermHits[]`: matched public-record terms for review
- `reviewNote`: source-linked review note, not agency guidance or certification

### Pricing

This actor charges only when it emits a billable alert, digest, or report row:

- `epa-echo-watch-alert`: $0.10 per watchlist alert row
- `epa-echo-digest`: $0.30 per non-empty digest row
- `epa-echo-report`: $7.00 per generated report row

No-change runs emit zero default dataset rows and zero charges when `notifyOnNoNew=false`.

### Compliance

- Uses official public data from epa-echo-web-services.
- Do not provide compliance certification, facility ratings, environmental ratings, or EPA endorsement.
- No login, API key, cookie, credential, CAPTCHA bypass, private data, or agency mark is used.
- Rows are source-linked observations for review workflows, not professional guidance or agency determinations.

### See Also

- `cpsc-product-recall-marketplace-watch-scraper`
- `nhtsa-recall-complaint-watch-scraper`
- `sec-edgar-material-disclosure-watch-scraper`

# Actor input Schema

## `feeds` (type: `array`):

One watch target per product, vehicle, facility, company, program, or keyword group.

## `watchTerms` (type: `string`):

Global watch terms.

## `lookbackDays` (type: `integer`):

Lookback days.

## `datasetMode` (type: `string`):

Dataset output mode.

## `notifyOnNoNew` (type: `boolean`):

Emit no-change rows.

## `emitReport` (type: `boolean`):

Emit report row.

## `snapshotKey` (type: `string`):

Snapshot key.

## `requestTimeoutSeconds` (type: `integer`):

HTTP timeout seconds.

## `dryRun` (type: `boolean`):

Dry run.

## `fixturePath` (type: `string`):

Fixture path.

## `nowIso` (type: `string`):

Override current time.

## `initialRunMode` (type: `string`):

Controls first-run behavior. emit\_current\_window only bills records inside lookbackDays; baseline\_only saves state with zero rows; emit\_backfill is for explicit setup/canary runs.

## Actor input object example

```json
{
  "feeds": [
    {
      "id": "california-active-facilities",
      "name": "California active facility watch",
      "states": "CA",
      "programs": "CWA",
      "facilityNames": "",
      "keywords": "enforcement,violation,penalty"
    }
  ],
  "lookbackDays": 30,
  "datasetMode": "action_needed",
  "notifyOnNoNew": false,
  "emitReport": true,
  "snapshotKey": "epa-echo-enforcement-facility-watch-state",
  "requestTimeoutSeconds": 30,
  "dryRun": false,
  "initialRunMode": "emit_current_window"
}
```

# 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 = {
    "feeds": [
        {
            "id": "california-active-facilities",
            "name": "California active facility watch",
            "states": "CA",
            "programs": "CWA",
            "facilityNames": "",
            "keywords": "enforcement,violation,penalty"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("taroyamada/epa-echo-enforcement-facility-watch-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 = { "feeds": [{
            "id": "california-active-facilities",
            "name": "California active facility watch",
            "states": "CA",
            "programs": "CWA",
            "facilityNames": "",
            "keywords": "enforcement,violation,penalty",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("taroyamada/epa-echo-enforcement-facility-watch-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 '{
  "feeds": [
    {
      "id": "california-active-facilities",
      "name": "California active facility watch",
      "states": "CA",
      "programs": "CWA",
      "facilityNames": "",
      "keywords": "enforcement,violation,penalty"
    }
  ]
}' |
apify call taroyamada/epa-echo-enforcement-facility-watch-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "EPA ECHO Enforcement & Facility Watch Scraper",
        "description": "Track EPA ECHO public facility, enforcement, and compliance-summary signals by state, program, facility, company, and watch terms.",
        "version": "0.1",
        "x-build-id": "aDsEptSvY7yBcY1C1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/taroyamada~epa-echo-enforcement-facility-watch-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-taroyamada-epa-echo-enforcement-facility-watch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/taroyamada~epa-echo-enforcement-facility-watch-scraper/runs": {
            "post": {
                "operationId": "runs-sync-taroyamada-epa-echo-enforcement-facility-watch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/taroyamada~epa-echo-enforcement-facility-watch-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-taroyamada-epa-echo-enforcement-facility-watch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "feeds"
                ],
                "properties": {
                    "feeds": {
                        "title": "Watch feeds",
                        "type": "array",
                        "description": "One watch target per product, vehicle, facility, company, program, or keyword group.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "title": "Feed ID",
                                    "type": "string",
                                    "description": "Feed ID."
                                },
                                "name": {
                                    "title": "Feed name",
                                    "type": "string",
                                    "description": "Feed name."
                                },
                                "states": {
                                    "title": "States",
                                    "type": "string",
                                    "description": "States."
                                },
                                "programs": {
                                    "title": "Programs",
                                    "type": "string",
                                    "description": "Programs."
                                },
                                "facilityNames": {
                                    "title": "Facility names",
                                    "type": "string",
                                    "description": "Facility names."
                                },
                                "keywords": {
                                    "title": "Keywords",
                                    "type": "string",
                                    "description": "Keywords."
                                }
                            }
                        }
                    },
                    "watchTerms": {
                        "title": "Global watch terms",
                        "type": "string",
                        "description": "Global watch terms."
                    },
                    "lookbackDays": {
                        "title": "Lookback days",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Lookback days.",
                        "default": 30
                    },
                    "datasetMode": {
                        "title": "Dataset output mode",
                        "enum": [
                            "all",
                            "action_needed",
                            "new_only"
                        ],
                        "type": "string",
                        "description": "Dataset output mode.",
                        "default": "action_needed"
                    },
                    "notifyOnNoNew": {
                        "title": "Emit no-change rows",
                        "type": "boolean",
                        "description": "Emit no-change rows.",
                        "default": false
                    },
                    "emitReport": {
                        "title": "Emit report row",
                        "type": "boolean",
                        "description": "Emit report row.",
                        "default": true
                    },
                    "snapshotKey": {
                        "title": "Snapshot key",
                        "type": "string",
                        "description": "Snapshot key.",
                        "default": "epa-echo-enforcement-facility-watch-state"
                    },
                    "requestTimeoutSeconds": {
                        "title": "HTTP timeout seconds",
                        "minimum": 5,
                        "maximum": 120,
                        "type": "integer",
                        "description": "HTTP timeout seconds.",
                        "default": 30
                    },
                    "dryRun": {
                        "title": "Dry run",
                        "type": "boolean",
                        "description": "Dry run.",
                        "default": false
                    },
                    "fixturePath": {
                        "title": "Fixture path",
                        "type": "string",
                        "description": "Fixture path."
                    },
                    "nowIso": {
                        "title": "Override current time",
                        "type": "string",
                        "description": "Override current time."
                    },
                    "initialRunMode": {
                        "title": "Initial run mode",
                        "enum": [
                            "emit_current_window",
                            "baseline_only",
                            "emit_backfill"
                        ],
                        "type": "string",
                        "description": "Controls first-run behavior. emit_current_window only bills records inside lookbackDays; baseline_only saves state with zero rows; emit_backfill is for explicit setup/canary runs.",
                        "default": "emit_current_window"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
