# EPA Toxic Release Inventory Scraper (`parseforge/epa-tri-scraper`) Actor

Scrapes EPA TRI facilities, release quantities, and program registrations. Returns each record as a flat row with optional state filtering.

- **URL**: https://apify.com/parseforge/epa-tri-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 1 total users, 0 monthly users, 90.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.00 / 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?

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### EPA Toxic Release Inventory Scraper

**Scrape EPA Toxic Release Inventory data for facilities, releases, and program registrations, up to a million records per run.** Every row returns structured fields like chemical quantities, facility addresses, and compliance IDs. No API key. Export to CSV, JSON, Excel, or XML.

The EPA's Envirofacts and TRI endpoints are scattered across multiple web services, each with different query syntax and paging limits. This actor reads the public TRI data directly, letting you pull facilities, release quantities, and program registrations in one fixed schema. Filter by state to narrow results before they reach your dataset.

| Who uses it | What they scrape EPA TRI for |
|---|---|
| Environmental analysts | Monitor chemical release trends by facility and geography. |
| Compliance officers | Verify facility registrations and program participation. |
| Data journalists | Build local pollution stories from release quantity data. |
| Public health researchers | Correlate toxic release sites with community health outcomes. |

### What it does

This Actor collects EPA TRI records by dataset type and optional state filter, and returns each one as a flat row.

- 🏭 **Facilities dataset:** 48 fields including facility name, address, NAICS codes, and latitude/longitude.
- ☣️ **Release quantities:** 7 fields covering chemical, medium, and total release amounts.
- 📋 **Program registrations:** 50 fields with compliance IDs, program types, and registration dates.
- 🗺️ **State filter:** restrict results to a single 2-letter state code like TX or CA.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with EPA TRI data

**📊 Build a state emissions dashboard.**

An environmental consultant pulls all release records for TX, filters by chemical, and feeds the CSV into a Tableau dashboard for a client report.

**🔍 Audit facility compliance.**

A compliance officer scrapes program registrations for a list of facilities to confirm active permits before an inspection.

**📰 Investigate local pollution.**

A reporter collects release quantities for a single county and cross-references the data with census tracts to identify exposure hotspots.

**🏥 Support public health research.**

A university researcher gathers facility locations and release totals to model proximity-based health risk in urban areas.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API key** | Reads public EPA data directly, no registration or token. |
| **Fixed schema** | Every row follows the same flat structure, ready for analysis. |
| **Up to 1M records** | Set a high maxItems and collect large datasets in one run. |
| **Three datasets** | Switch between facilities, releases, and programs from one actor. |

### How it compares

No other Store actor targets EPA TRI the same way, so the honest comparison is with the alternatives teams actually weigh.

| | EPA Toxic Release Inventory Scraper | Build it in-house | By hand |
|---|---|---|---|
| Setup | Run it now, zero config | Days of engineering | None, but hours per pull |
| When EPA TRI changes | Maintained for you | You fix it | You re-learn the page |
| Proxies, retries, anti-bot | Built in | Your problem | Browser only |
| Output | Fixed JSON schema, CSV/Excel export | Whatever you build | Copy-paste |
| Cost | Pay per result | Engineering time | Analyst hours |

### Configure the run

Drive the Actor by selecting a dataset and optionally a state code, and filters run as each record is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "maxItems": 10,
  "dataset": "facilities"
}
```

A larger pull:

```json
{
  "maxItems": 200,
  "dataset": "facilities"
}
```

### Pricing

Pay-per-result: **$0.0075 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $0.75 |
| 1,000 results | $7.50 |
| 10,000 results | $75.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [EPA Toxic Release Inventory Scraper](https://apify.com/parseforge/epa-tri-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to EPA TRI through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/epa-tri-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check your state code. It must be a valid 2-letter abbreviation like CA, not 'California'. Also, try increasing the maxItems limit or leaving the state filter blank to confirm data is available.

**The run stopped before reaching my maxItems limit.**

The actor stops when it has read all available records matching your filter. If you filtered by a small state, the total records may be less than your maxItems setting.

**Some fields are empty in my results.**

Not every facility reports every field. Empty values mean the EPA did not have that data point for that record. This is expected for optional fields.

**I got a timeout error.**

The EPA endpoints can be slow for very large requests. Try reducing maxItems or adding a state filter to limit the scope. If the problem persists, retry the run.

**The data looks different from the EPA website.**

The actor reads from the same public data services that power the EPA's online tools. Small timing differences can occur if the underlying data was updated between your website visit and the scrape.

### FAQ

| Question | Answer |
|---|---|
| What is the EPA Toxic Release Inventory? | The TRI is a public EPA database that tracks the management of certain toxic chemicals that may pose a threat to human health and the environment. Facilities in specific industry sectors must report how much of each chemical they release to the air, water, and land. |
| Do I need an API key or EPA account? | No. This actor reads the publicly available data feeds directly. You do not need to register with the EPA or obtain any credentials. |
| What datasets can I scrape? | You can choose from three datasets: TRI Facilities (48 fields), Release Quantities (7 fields), and EPA Program Registrations (50 fields). Select one per run from the input dropdown. |
| How do I filter by state? | Enter a 2-letter state code like CA, TX, or NY in the State input field. The actor will return only records matching that state. Leave it blank to get all records. |
| How many records can I get in one run? | You can set the maximum records up to 1,000,000 per run. The actor will stop once it reaches your limit or exhausts the available data. |
| What format does the data export to? | You can export your results to CSV, JSON, Excel, or XML directly from the Apify dataset tab after the run completes. |
| Does this cover the entire United States? | Yes. The EPA TRI database includes facilities and releases from all 50 states, the District of Columbia, and U.S. territories. Filtering by state is optional. |
| Can I get historical TRI data? | The actor returns the current data available from the EPA's public endpoints. For specific historical reporting years, check the dataset fields in your results. |
| What are the release quantity fields? | The Release Quantities dataset returns 7 fields, typically including the chemical name, the environmental medium (air, water, land), and the total release amount in pounds. |
| Is this actor suitable for academic research? | Yes. The structured, flat-schema output is ready for statistical analysis and can be exported to formats compatible with R, Python, and other research tools. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by U.S. Environmental Protection Agency. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `maxItems` (type: `integer`):

How many records to collect per run.

## `dataset` (type: `string`):

Which EPA dataset to query.

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

Filter by 2-letter state code (e.g. CA, TX, NY).

## Actor input object example

```json
{
  "maxItems": 10,
  "dataset": "facilities"
}
```

# Actor output Schema

## `overview` (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 = {
    "maxItems": 10,
    "dataset": "facilities"
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/epa-tri-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 = {
    "maxItems": 10,
    "dataset": "facilities",
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/epa-tri-scraper").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 '{
  "maxItems": 10,
  "dataset": "facilities"
}' |
apify call parseforge/epa-tri-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/epa-tri-scraper"
        }
    }
}

```

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/Io305AzRKk9wBOoSD/builds/A8YuiVIVNlQ8Q0n15/openapi.json
