EPA Envirofacts Facilities Scraper
parseforge/epa-envirofacts-facilities-scraper
AutomationIntegrationsLead generation
Scrapes EPA-regulated facility records from seven Envirofacts tables including TRI, RCRA, NPDES, and FRS. Returns each facility as a flat row with registry IDs and location, filterable by state, city, ZIP, and NAICS code.
- Total users
- 2
- Monthly active
- 1
- Total runs
- 90
- Bookmarked
- 0
- Rating
- Not rated yet
- Last modified
- 9 days ago
Overview
EPA Envirofacts Facilities Scraper
Scrape EPA-regulated facility data from Envirofacts by table, state, city, ZIP, or NAICS code, up to a million per run. Every facility comes with its registry ID, location, and program-specific details. No API key required. Export to CSV, JSON, Excel, or XML.
The EPA's Envirofacts database holds compliance and permit records for every regulated facility in the United States, but its web API returns paginated XML and requires you to learn a separate query language for each program system. This Actor reads facility data directly from seven core Envirofacts tables, including the master FRS registry, TRI toxics, RCRA hazardous waste, and drinking water systems, and returns each match in one flat, consistent schema. Filter by state, city, ZIP code, or NAICS industry code to pull exactly the facilities you need.
| Who uses it | What they scrape EPA Envirofacts for |
|---|---|
| Environmental consultants | Pull all TRI or RCRA facilities in a state for a Phase I environmental site assessment. |
| Compliance officers | Monitor which facilities in a city hold active NPDES water discharge permits. |
| Data journalists | Download the master FRS registry for a ZIP code to map industrial activity near residential areas. |
| Academic researchers | Collect SDWIS water system data across multiple states for a drinking water quality study. |
What it does
This Actor collects EPA facility records from a selected Envirofacts table and returns each facility as a flat row with its registry identifiers, location, and program-specific attributes.
- π Seven facility tables: FRS master registry, TRI toxics, RCRA hazardous waste, ICIS Air, NPDES water discharge, SDWIS drinking water, and FRS program linkages.
- πΊοΈ Geographic filters: narrow results by two-letter state code, city name, or ZIP code before the run starts.
- π·οΈ Industry filter: restrict facilities to a single NAICS code so only a specific sector reaches your dataset.
- π Flat row output: every facility returns as one row, regardless of which table you query, ready for analysis.
Results export to CSV, JSON, Excel, or XML, or straight from the API.
What you can do with EPA Envirofacts data
πΊοΈ Map regulated facilities in a state.
An environmental consultant selects the FRS Facility Site table, sets the state filter to 'TX', and downloads every registered facility to overlay on a project map.
π Audit toxic chemical releases by industry.
A compliance officer queries the TRI Facility table with a NAICS code for chemical manufacturing and a city filter to review local toxic release reports.
π§ Inventory drinking water systems.
A public health researcher scrapes the SDWIS Water System table for several ZIP codes to build a dataset of active public water systems and their compliance status.
π Track hazardous waste handlers.
A waste management analyst pulls the RCRA Facility table for an entire state to identify active hazardous waste generators and transporters.
Why choose this scraper
| What you get | |
|---|---|
| No API key | Queries the public Envirofacts REST endpoint directly with no registration or token. |
| Fixed schema | Every facility from every table returns in one consistent flat structure. |
| Large pulls | Collect up to 1,000,000 facilities in a single run with automatic pagination. |
| Program coverage | Covers TRI, RCRA, NPDES, ICIS Air, SDWIS, and the master FRS registry. |
How it compares
No other Store actor targets EPA Envirofacts the same way, so the honest comparison is with the alternatives teams actually weigh.
| EPA Envirofacts Facilities Scraper | Build it in-house | By hand | |
|---|---|---|---|
| Setup | Run it now, zero config | Days of engineering | None, but hours per pull |
| When EPA Envirofacts 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 from a selected Envirofacts table and optional state, city, ZIP, and NAICS filters, alone or together, and filters run as each facility is read so only matches reach your dataset. The Input tab lists every parameter.
A first run with the defaults:
{
"maxItems": 10
}
A larger pull:
{
"maxItems": 200
}
Pricing
Pay-per-result: $0.0085 per result collected. You pay only for the results written to your dataset.
| Results collected | Approximate cost |
|---|---|
| 100 results | $0.85 |
| 1,000 results | $8.50 |
| 10,000 results | $85.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 to collect up to 1,000,000 results per run.
Run it
- Create a free Apify account with $5 in credit.
- Open the EPA Envirofacts Facilities Scraper.
- Set your inputs and any filters, then click Start.
- Export the results as CSV, Excel, JSON, or XML from the Dataset tab.
Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.
Use with AI agents (MCP)
Give an AI agent live access to EPA Envirofacts through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/epa-envirofacts-facilities-scraper"
Then prompt it in plain language to run the scraper and read back the results.
Troubleshooting
Why am I getting no results?
Check that your state code is a valid two-letter USPS abbreviation and that your city name matches the EPA's spelling. Try removing filters one at a time to see which one is too restrictive.
The run finished but returned fewer facilities than my maxItems setting.
This is expected when your filters match fewer facilities than the limit you set. The Actor stops when the API returns no more rows. Try broadening your filters or removing them entirely.
I got an error about an invalid table name.
Select one of the seven tables from the dropdown in the input editor. The table name must match exactly, including the schema prefix like 'frs.frs_facility_site'.
The dataset columns are different from what I expected.
Each Envirofacts table returns a different set of columns. Check the EPA's Envirofacts data model documentation for the table you selected to see which fields are available.
My NAICS code filter is not working.
Enter the full six-digit NAICS code. Partial codes are not supported by the Envirofacts API. Verify your code against the official NAICS directory at census.gov.
FAQ
| Question | Answer |
|---|---|
| What is the FRS Facility Site table? | It is the EPA's master Facility Registry Service table. It contains a unique identifier and location for every regulated facility, acting as the central index that links to program-specific tables like TRI and RCRA. |
| Do I need an EPA API key or account? | No. This Actor queries the public Envirofacts REST API, which does not require registration, an API key, or OAuth. |
| Can I filter by state and city at the same time? | Yes. You can combine the state, city, ZIP, and NAICS filters in a single run. The Actor forwards them as URL path parameters to the Envirofacts API. |
| What does the TRI Facility table return? | It returns facilities that report to the Toxics Release Inventory, including their TRI IDs, location, and the parent company name as registered in the TRI program. |
| How many facilities can I collect in one run? | You can set the maximum up to 1,000,000 facilities. The Actor handles pagination automatically until it reaches your limit or exhausts the results. |
| What is a NAICS code and how do I use it? | NAICS is the North American Industry Classification System. Enter a six-digit code in the input to restrict results to facilities in that industry, such as 325199 for organic chemical manufacturing. |
| Which table should I use for water pollution permits? | Use the NPDES Facility table. It returns facilities with National Pollutant Discharge Elimination System permits that regulate point-source water discharges. |
| Can I get RCRA hazardous waste handler data? | Yes. Select the RCRA Facility table to pull hazardous waste generators, transporters, and treatment, storage, and disposal facilities. |
| What export formats are supported? | You can export your dataset to CSV, JSON, Excel, or XML from the Apify platform after the run completes. |
| Does this Actor scrape the EPA website or use the API? | It calls the official Envirofacts REST API directly. It does not scrape the EPA website or parse HTML pages. |
Related actors
Browse the full ParseForge collection 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.
Input
| Field | Type | What it does | Default |
|---|---|---|---|
| table | string (7 options) | Envirofacts facility table to query. | frs.frs_facility_site |
| maxItems | integer | How many facilities to collect per run. | 10 |
| state | string | Optional two-letter US state code to filter facilities (for example CA, TX, NY). | not set |
| city | string | Optional city name to filter facilities. | not set |
| zip | string | Optional ZIP code to filter facilities. | not set |
| naics | string | Optional NAICS industry code to filter facilities. | not set |
Pricing
from $7.50 per 1,000 results
| Charged for | What it is | Price each |
|---|---|---|
| result | Single result in the default dataset. | $0.0075 to $0.0085 |
Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.
API
One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.
curl -X POST "https://api.apify.com/v2/acts/parseforge~epa-envirofacts-facilities-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"helloWorld": 123
}' Examples
Input that runs as-is.
{
"helloWorld": 123
} Reviews
No reviews yet. Be the first.
Issues
We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.
Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.
Related scrapers
Run EPA Envirofacts Facilities Scraper on Apify All scrapers
