EPA API

Free to Use
52 D
Measured Score 0 50 100 Speed 0/30 Consistency 20/20 Security 18/20 Browser access 10/15 Transparency 4/15 TESTED 2026-08-10

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.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://data.epa.gov/efservice/PUB_DIM_FACILITY/ROWS/0:5/JSON
Result
HTTP 200 · application/json · 6,761 bytes
Response time
4933 ms (median of 3) · fastest 4837 ms
Transport
TLSv1.2 · ECDHE-RSA-AES128-GCM-SHA256 · certificate issued by DigiCert Inc
Browser CORS
Allowed — Access-Control-Allow-Origin: https://apisscore.com
Served by
nginx/1.27.3
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
facility_id integer 1000001
latitude number 48.828707
longitude number -122.685533
city string FERNDALE
state string WA
zip string 98248
county_fips string 53073
county string WHATCOM COUNTY
address1 string 5105 LAKE TERRELL ROAD
address2 null null
facility_name string PSE Ferndale Generating Station
state_name string Washington
naics_code string 221112
year integer 2010

Captured Response

Captured from a real request to https://data.epa.gov/efservice/PUB_DIM_FACILITY/ROWS/0:5/JSON on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
[
  {
    "facility_id": 1000001,
    "latitude": 48.828707,
    "longitude": -122.685533,
    "city": "FERNDALE",
    "state": "WA",
    "zip": "98248",
    "county_fips": "53073",
    "county": "WHATCOM COUNTY",
    "address1": "5105 LAKE TERRELL ROAD",
    "address2": null,
    "facility_name": "PSE Ferndale Generating Station",
    "state_name": "Washington",
    "naics_code": "221112",
    "year": 2010,
    "…": "(23 more fields)"
  }
]

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 0/30
Consistency 20/20
Security 18/20
Browser access 10/15
Transparency 4/15
Endpoint Response Time 4933ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Government
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →