# EPA Greenhouse Gas Emitters Scraper (`compute-edge/epa-ghg-emitters-scraper`) Actor

Extract EPA Envirofacts Greenhouse Gas Reporting Program (GHGRP) facility data — names, locations, NAICS codes, and reporting years. Filter by state, year, and industry. No API key required.

- **URL**: https://apify.com/compute-edge/epa-ghg-emitters-scraper.md
- **Developed by:** [Compute Edge](https://apify.com/compute-edge) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.

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 Greenhouse Gas Emitters Scraper

**Extract facility data from the EPA's Greenhouse Gas Reporting Program (GHGRP).** Access detailed information on major industrial emitters including location, coordinates, reporting year, and industry classification. Filter by state, year, and NAICS code for targeted facility research.

### What This Actor Does

This Actor provides direct access to the EPA Envirofacts database—specifically the **Public Dimension Facility** table from the Greenhouse Gas Reporting Program (GHGRP). It allows you to extract facility-level greenhouse gas emissions reporting data without authentication.

#### Key Features

- **900,000+ facilities** — Access the complete EPA GHGRP dataset
- **Flexible filtering** — Filter by state, reporting year, and NAICS industry code
- **Location data** — Latitude/longitude coordinates for mapping and geospatial analysis
- **Industry codes** — NAICS classification for supply-chain targeting
- **No API key required** — Direct access to public EPA data
- **Batch processing** — Efficient extraction in windows of 10,000 records
- **Deduplication** — Automatic removal of duplicate facilities across reporting years
- **Error handling** — Graceful fallback for network issues

#### Typical Use Cases

- **Environmental Compliance** — Monitor which facilities report greenhouse gas emissions in your region
- **Supply Chain Mapping** — Identify suppliers and vendor locations in high-emission industries
- **Geospatial Analysis** — Map facilities by location and assess environmental risk
- **Industry Research** — Discover facility counts and distribution by NAICS code
- **Carbon Credit Sourcing** — Find eligible offset projects and emissions verification sources

### Getting Started

#### Step 1: Configure Inputs (All Optional)

1. **State** — 2-letter state code (e.g., "CA", "TX"). Leave blank for all states.
2. **Reporting Year** — Year of emissions report (e.g., 2022, 2023). Leave as 0 for all years.
3. **NAICS Code** — Industry code (e.g., "221112"). Leave blank for all industries.
4. **Max Results** — Maximum facilities to return (default 1000, max 50000).

#### Step 2: Run the Actor

1. Fill in your desired filters (or leave all blank for 1000 random facilities)
2. Click **Start**
3. Results appear in the **Dataset** tab

#### Step 3: Download Results

Export results as JSON, CSV, or other formats via the Apify UI.

### How to scrape EPA greenhouse gas emitter data

#### Tutorial 1: Find All Power Generation Facilities in California

**Goal:** Identify electric power generation facilities (NAICS code 221112) reporting emissions in California.

**Input configuration:**
- **State:** `CA`
- **NAICS Code:** `221112`
- **Max Results:** `1000`

**Expected output:**
```json
[
  {
    "facilityId": 1000001,
    "facilityName": "PSE Ferndale Generating Station",
    "city": "FERNDALE",
    "state": "WA",
    "stateName": "Washington",
    "zip": "98248",
    "county": "WHATCOM COUNTY",
    "address1": "5105 LAKE TERRELL ROAD",
    "latitude": 48.82,
    "longitude": -122.68,
    "naicsCode": "221112",
    "reportingYear": 2022
  },
  ...
]
````

**Use case:** Feed facility locations into a mapping tool to visualize power plants, or cross-reference with utility service territories to identify energy infrastructure.

***

#### Tutorial 2: Track Year-Over-Year Facility Changes in Texas

**Goal:** Compare facilities reporting emissions in Texas for 2021 vs. 2022 to identify new emitters or facility closures.

**Input configuration (Run 1):**

- **State:** `TX`
- **Reporting Year:** `2021`
- **Max Results:** `10000`

**Input configuration (Run 2):**

- **State:** `TX`
- **Reporting Year:** `2022`
- **Max Results:** `10000`

**Expected workflow:**

1. Export Run 1 results as CSV
2. Export Run 2 results as CSV
3. Use a spreadsheet to compare facility IDs between the two years
4. Identify new facilities (in Run 2 but not Run 1) and closed facilities (in Run 1 but not Run 2)

**Use case:** Track industrial development trends, identify emerging pollution sources, or monitor facility lifecycle changes.

***

#### Tutorial 3: Survey Chemical Manufacturing Facilities Nationwide

**Goal:** Identify all chemical manufacturing facilities (NAICS codes 325xxx) reporting greenhouse gas emissions.

**Input configuration:**

- **State:** (blank — all states)
- **NAICS Code:** `325` (matches all 6-digit codes starting with 325)
- **Max Results:** `50000`

**Expected output:**
A dataset of all chemical manufacturers reporting GHGRP emissions, with their locations and year of most recent report.

**Use case:** Build a database of chemical manufacturers for regulatory research, supplier discovery, or environmental risk assessment.

***

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| **state** | string | "" | 2-letter state code (e.g., "CA", "TX"). Blank = all states. Case-insensitive (input "ca" works). |
| **year** | integer | 0 | Reporting year (e.g., 2022). Leave as 0 to include all years. |
| **naicsCode** | string | "" | NAICS industry code (e.g., "221112" or "325" for partial match). Blank = all industries. |
| **maxResults** | integer | 1000 | Maximum facilities to return (minimum 1, maximum 50000). |

### Output Fields

Each record includes:

| Field | Type | Description |
|-------|------|-------------|
| **facilityId** | integer | Unique EPA facility identifier |
| **facilityName** | string | Name of the facility |
| **city** | string | City where facility is located |
| **state** | string | 2-letter state code |
| **stateName** | string | Full state name (e.g., "California") |
| **zip** | string | ZIP code |
| **county** | string | County name |
| **address1** | string | Street address |
| **latitude** | number | Latitude for mapping (null if unavailable) |
| **longitude** | number | Longitude for mapping (null if unavailable) |
| **naicsCode** | string | NAICS industry code |
| **reportingYear** | integer | Year of emissions report |

### Pricing

This Actor uses **no API keys or subscriptions** — it accesses freely available EPA public data.

- **Compute cost:** ~$0.0001-0.001 per run (depends on result volume and API latency)
- **Typical cost per batch:** $0.01-0.05 for 1000 facilities
- **Bulk runs (10,000+ facilities):** ~$0.10-0.25 per run

The EPA data itself is completely **free** — you pay only for Apify compute time.

### Output Example

```json
{
  "facilityId": 1001234,
  "facilityName": "Acme Chemical Plant #3",
  "city": "Houston",
  "state": "TX",
  "stateName": "Texas",
  "zip": "77001",
  "county": "HARRIS COUNTY",
  "address1": "1234 Industrial Blvd",
  "latitude": 29.7604,
  "longitude": -95.3698,
  "naicsCode": "325110",
  "reportingYear": 2022
}
```

### Troubleshooting

#### "No records found"

- Verify the state code is valid (2 letters, e.g., "CA" not "California")
- Check that the NAICS code is correct (e.g., "221112" for power generation)
- Try running without filters (leave blank) to fetch all facilities
- Note: Not all states or years have reports — try a different state or year range

#### "Actor timed out"

- Reduce `maxResults` to a smaller number (e.g., 1000 instead of 10000)
- Add a state filter to narrow the dataset
- Try running multiple times with different years

#### "Empty dataset"

- The combination of filters may not match any facilities
- Try removing filters one at a time to identify which filter is too restrictive
- Use the EPA's GHGRP search at https://ghgrp.epa.gov/ghgrpublicsearch/ to manually verify data exists for your filters

### FAQ

**Q: What is the EPA's Greenhouse Gas Reporting Program (GHGRP)?**\
A: GHGRP is a mandatory federal program requiring large industrial emitters (primarily ≥25,000 metric tons CO₂e/year) to report greenhouse gas emissions annually. The data is public and updated yearly.

**Q: Why are some facilities missing?**\
A: Not all facilities report every year. Some may have closed, been acquired, or fall below the reporting threshold. Facilities in certain sectors (e.g., agriculture, smaller operations) may not be included.

**Q: Can I filter by emissions volume?**\
A: No — this Actor returns facility records only. To filter by emissions magnitude, download the data and post-process it, or contact the EPA for detailed emissions reports (available separately).

**Q: How often is the EPA data updated?**\
A: Annual reports are typically published in the second quarter of the following year. Data is refreshed when EPA updates their Envirofacts service.

**Q: Can I use this for compliance monitoring?**\
A: Yes — the data is official and public. However, verify facility details against official EPA records before making compliance decisions.

### Related Actors

Looking for other EPA or environmental data sources?

- **[EPA TRI Scraper](https://apify.com/seatsignal/epa-tri-scraper)** — Toxic Release Inventory facility data
- **[EPA ECHO Scraper](https://apify.com/seatsignal/epa-echo-scraper)** — Enforcement and Compliance History Online (ECHO) environmental permit and inspection records
- **[CISA KEV Scraper](https://apify.com/seatsignal/cisa-kev-scraper)** — Cybersecurity vulnerability intelligence (for compliance automation)

### Legal & Support

**Data Source:** All data is sourced from the EPA's Envirofacts service (https://data.epa.gov/), which is in the public domain and freely available.

**Disclaimer:** This Actor provides access to publicly available EPA data. Verify facility records against official EPA GHGRP publications (https://ghgrp.epa.gov/) before using in regulatory or compliance contexts. The Actor is not affiliated with or endorsed by the EPA.

**Terms of Use:** Respect EPA's data usage terms. The EPA generally allows free public reuse of data; always attribute the EPA as the source and include a link to the original GHGRP publication.

**Support:** If you encounter issues:

1. Verify your state code (2 letters) or NAICS code (5-6 digits)
2. Test the EPA API directly: `curl "https://data.epa.gov/efservice/PUB_DIM_FACILITY/STATE/CA/ROWS/0:9/JSON"`
3. Check EPA Envirofacts: https://data.epa.gov/
4. Open an issue on Apify Community or contact support

***

**Built with ❤️ for environmental researchers, supply chain analysts, and sustainability professionals.**

# Actor input Schema

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

Filter by U.S. state (2-letter code, e.g., 'CA', 'TX', 'NY'). Leave blank to include all states.

## `year` (type: `integer`):

Filter by reporting year (e.g., 2022, 2023). Leave as 0 to include all years.

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

Filter by NAICS industry code (e.g., '221112' for electric power generation). Leave blank to include all industries.

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

Maximum number of facility records to return. Minimum 1, maximum 50000.

## Actor input object example

```json
{
  "state": "",
  "year": 0,
  "naicsCode": "",
  "maxResults": 1000
}
```

# Actor output Schema

## `dataset` (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("compute-edge/epa-ghg-emitters-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("compute-edge/epa-ghg-emitters-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 compute-edge/epa-ghg-emitters-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "EPA Greenhouse Gas Emitters Scraper",
        "description": "Extract EPA Envirofacts Greenhouse Gas Reporting Program (GHGRP) facility data — names, locations, NAICS codes, and reporting years. Filter by state, year, and industry. No API key required.",
        "version": "0.1",
        "x-build-id": "SmPcM2PoMNgNGp00w"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/compute-edge~epa-ghg-emitters-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-compute-edge-epa-ghg-emitters-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/compute-edge~epa-ghg-emitters-scraper/runs": {
            "post": {
                "operationId": "runs-sync-compute-edge-epa-ghg-emitters-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/compute-edge~epa-ghg-emitters-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-compute-edge-epa-ghg-emitters-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",
                "properties": {
                    "state": {
                        "title": "State (Optional)",
                        "type": "string",
                        "description": "Filter by U.S. state (2-letter code, e.g., 'CA', 'TX', 'NY'). Leave blank to include all states.",
                        "default": ""
                    },
                    "year": {
                        "title": "Reporting Year (Optional)",
                        "type": "integer",
                        "description": "Filter by reporting year (e.g., 2022, 2023). Leave as 0 to include all years.",
                        "default": 0
                    },
                    "naicsCode": {
                        "title": "NAICS Code (Optional)",
                        "type": "string",
                        "description": "Filter by NAICS industry code (e.g., '221112' for electric power generation). Leave blank to include all industries.",
                        "default": ""
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum number of facility records to return. Minimum 1, maximum 50000.",
                        "default": 1000
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
