EPA API

Free to Use Varies (check documentation)

Overview

The EPA API provides access to environmental data and web services from the US Environmental Protection Agency, including air quality, water quality, and toxic release data. It requires no API key, so you can start querying environmental datasets immediately. This is ideal for building environmental monitoring dashboards or research tools.

💡

Beginner Tip

The EPA exposes multiple distinct services (like ECHO for water enforcement and AQS for air quality), so check the developer docs to find the specific endpoint for your data need. Start with the Envirofacts Data Service API for a straightforward REST interface to environmental databases.

Available Data

EPA data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from EPA",
    "description": "Web services and data sets from the US Environmental Protection Agency",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

FACILITY_NAME Name of the regulated facility or site
FAC_STATE Two-letter US state code where the facility is located
FAC_LAT Latitude coordinate of the facility
FAC_LONG Longitude coordinate of the facility
REGISTRY_ID Unique EPA registry identifier for the facility

Implementation Example

const url = "https://www.epa.gov/developers/data-data-products";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

404 Not Found on endpoint The EPA hosts multiple separate APIs; using the wrong base URL for the service
Refer to the EPA developer page to identify the correct base URL for your specific service (e.g., ECHO, AQS, Envirofacts)
Response is XML instead of JSON Default response format for some EPA endpoints is XML
Append /JSON to the URL path or add &output=JSON as a query parameter depending on the specific service
Slow query response Environmental datasets are large and unfiltered queries can be slow
Apply state or facility filters to narrow the dataset before fetching results

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 251ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Verified: 2026-04-07

Similar APIs

View All →