Skip to content

U.S. EPA Enforcement and Compliance History Online (ECHO) - Safe Drinking Water Act API

by epa.gov

No authHTTPSOpen Data
Open documentation ↗

Overview

Enforcement and Compliance History Online (ECHO) is a tool developed and maintained by EPA's Office of Enforcement and Compliance Assurance for public use. ECHO provides integrated compliance and enforcement information for over 1 million regulated facilities nationwide. SDW Rest Services provides multiple service endpoints, each with specific capabilities, to search and retrieve data on public water systems regulated under the Safe Drinking Water Act (SDWA). The returned results reflect data drawn from EPA's Federal Safe Drinking Water Information System (SDWIS) database. \ The get_systems, get_qid, and get_download end points are meant to be used together. \ The recommended use scenario for get_systems, get_qid, and get_downoad is: \ <b>1)</b> Use get_systems to validate passed query parameters, obtain summary statistics and to obtain a query_id (QID). QIDs are time sensitive and will be valid for approximately 30 minutes. <b>2)</b> Use get_qid, with the returned QID, to paginate through arrays of water system results. <b>3)</b> Use get_download, with the returned QID, to generate a Comma Separated Value (CSV) file of water system information that meets the QID query criteria. \ \ Use the qcolumns parameter to customize your search results. Use the Metadata service endpoint for a list of available output objects, their Column Ids, and their definitions to help you build your customized output. \ Additional ECHO Resources: <a href="https://echo.epa.gov/tools/web-services">Web Services</a>, <a href="https://echo.epa.gov/resources/echo-data/about-the-data">About ECHO's Data</a>, <a href="https://echo.epa.gov/tools/data-downloads">Data Downloads</a>

U.S. EPA Enforcement and Compliance History Online (ECHO) - Safe Drinking Water Act is an open data API from epa.gov. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 8 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Open Data
Base URL
https://echodata.epa.gov/echo
Version
2019.10.15
Endpoints
8
Spec updated
2021-07-05

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://echodata.epa.gov/echo/sdw_rest_services.get_download" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://echodata.epa.gov/echo/sdw_rest_services.get_download", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://echodata.epa.gov/echo/sdw_rest_services.get_download",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/sdw_rest_services.get_downloadSafe Drinking Water Act (SDWA) Download Data Service
POST/sdw_rest_services.get_downloadSafe Drinking Water Act (SDWA) Download Data Service
GET/sdw_rest_services.get_qidSafe Drinking Water Act (SDWA) Paginated Results Service
POST/sdw_rest_services.get_qidSafe Drinking Water Act (SDWA) Paginated Results Service
GET/sdw_rest_services.get_systemsSafe Drinking Water Act (SDWA) Systems Search Service
POST/sdw_rest_services.get_systemsSafe Drinking Water Act (SDWA) Systems Search Service
GET/sdw_rest_services.metadataSafe Drinking Water Act (SDWA) Metadata Service
POST/sdw_rest_services.metadataSafe Drinking Water Act (SDWA) Metadata Service

Questions

Does the U.S. EPA Enforcement and Compliance History Online (ECHO) - Safe Drinking Water Act API need an API key?

No. The U.S. EPA Enforcement and Compliance History Online (ECHO) - Safe Drinking Water Act API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the U.S. EPA Enforcement and Compliance History Online (ECHO) - Safe Drinking Water Act API support HTTPS?

Yes, the U.S. EPA Enforcement and Compliance History Online (ECHO) - Safe Drinking Water Act API is served over HTTPS.

How many endpoints does the U.S. EPA Enforcement and Compliance History Online (ECHO) - Safe Drinking Water Act API have?

Its OpenAPI description lists 8 endpoints in version 2019.10.15. All of them are shown on this page.

What are alternatives to the U.S. EPA Enforcement and Compliance History Online (ECHO) - Safe Drinking Water Act API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).