Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
SDWA public water-system inventory and compliance records for building local drinking-water system lookups.
From source to product signal
ECHO Drinking Water System Search services expose SDWIS/Fed inventory and compliance attributes for public water systems. Start with one state and JSON output. Do not use the web service as a bulk-download substitute, and do not treat these records as real-time water-quality measurements.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://echodata.epa.gov/echo/sdw_rest_services.get_systems",
params={"output": "JSON", "p_st": "RI", "p_act": "Y"},
timeout=30,
)
response.raise_for_status()
payload = response.json()
systems = pd.json_normalize(payload.get("Results", payload).get("Systems", payload))
systems["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(systems.head(20))Test a useful signal
Count active Rhode Island public water systems in a bounded ECHO search and note compliance fields that are present.
U.S. Environmental Protection Agency is a government source. Last verified 2026-08-14. Temporal coverage: SDWIS/Fed records with weekly ECHO refreshes.