{"api":{"id":"api_788068544a4c3cbfff20e2bc","slug":"drinking-water-violations","name":"US Drinking Water Violations API","description":"Violations recorded against US public water systems by state, with the system's name, size, type and water source, from the EPA's drinking water database. For water treatment sellers, due diligence, researchers and journalists.","kind":"ready_made","visibility":"public","domain":"data.epa.gov","source_url":"https://data.epa.gov/efservice/VIOLATION","category":"environment","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":14,"created_at":"2026-12-06T03:57:27.637Z","updated_at":"2026-12-06T03:57:27.637Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"Unique key: water system ID and violation ID.","required":true,"coverage":1,"example":"NJ0101308-1313"},{"name":"pwsid","type":"string","description":"Public water system ID.","required":false,"coverage":1,"example":"NJ0101308"},{"name":"water_system_name","type":"string","description":"Name of the water system.","required":false,"coverage":1,"example":"ROYAL LODGE"},{"name":"violation_id","type":"string","description":"The source's violation ID within the system.","required":false,"coverage":1,"example":"1313"},{"name":"violation_code","type":"string","description":"EPA violation code.","required":false,"coverage":1,"example":"4B"},{"name":"violation_category","type":"string","description":"Violation category code, such as MCL, TT, MR or MON.","required":false,"coverage":1,"example":"RPT"},{"name":"is_health_based","type":"boolean","description":"Whether the violation is health-based.","required":false,"coverage":1,"example":false},{"name":"contaminant_code","type":"string","description":"EPA contaminant code.","required":false,"coverage":1,"example":"8000"},{"name":"begin_date","type":"date","description":"Start of the compliance period.","required":false,"coverage":1,"example":"2018-01-11"},{"name":"end_date","type":"date","description":"End of the compliance period, empty while open.","required":false,"coverage":0.6,"example":"2019-06-30"},{"name":"compliance_status","type":"string","description":"Returned to compliance, addressed or unaddressed.","required":false,"coverage":1,"example":"Returned to compliance"},{"name":"population_served","type":"integer","description":"People served by the system.","required":false,"coverage":1,"example":28},{"name":"pws_type","type":"string","description":"System type, such as community or non-community.","required":false,"coverage":1,"example":"Transient non-community water system"},{"name":"primary_source","type":"string","description":"Main water source, such as groundwater or surface water.","required":false,"coverage":1,"example":"Groundwater"}],"inputs":[{"name":"state","type":"string","description":"Two-letter state code (primacy agency), such as NJ","example":"NJ"},{"name":"pwsid","type":"string","description":"One public water system ID, such as NJ0102001","example":"NJ0102001"},{"name":"health_based_only","type":"boolean","description":"Only health-based violations","example":true},{"name":"max_results","type":"integer","description":"Most rows to return","example":5}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"begin_date":{"description":"Start of the compliance period.","format":"date","type":"string"},"compliance_status":{"description":"Returned to compliance, addressed or unaddressed.","type":"string"},"contaminant_code":{"description":"EPA contaminant code.","type":"string"},"end_date":{"description":"End of the compliance period, empty while open.","format":"date","type":"string"},"id":{"description":"Unique key: water system ID and violation ID.","type":"string"},"is_health_based":{"description":"Whether the violation is health-based.","type":"boolean"},"population_served":{"description":"People served by the system.","type":"integer"},"primary_source":{"description":"Main water source, such as groundwater or surface water.","type":"string"},"pws_type":{"description":"System type, such as community or non-community.","type":"string"},"pwsid":{"description":"Public water system ID.","type":"string"},"violation_category":{"description":"Violation category code, such as MCL, TT, MR or MON.","type":"string"},"violation_code":{"description":"EPA violation code.","type":"string"},"violation_id":{"description":"The source's violation ID within the system.","type":"string"},"water_system_name":{"description":"Name of the water system.","type":"string"}},"required":["id"],"title":"US Drinking Water Violations API","type":"object"},"samples":[{"id":"NJ0101308-1313","pwsid":"NJ0101308","water_system_name":"ROYAL LODGE","violation_id":"1313","violation_code":"4B","violation_category":"RPT","is_health_based":false,"contaminant_code":"8000","begin_date":"2018-01-11","end_date":null,"compliance_status":"Returned to compliance","population_served":28,"pws_type":"Transient non-community water system","primary_source":"Groundwater"},{"id":"NJ0101308-1314","pwsid":"NJ0101308","water_system_name":"ROYAL LODGE","violation_id":"1314","violation_code":"3A","violation_category":"MON","is_health_based":false,"contaminant_code":"8000","begin_date":"2019-04-01","end_date":"2019-06-30","compliance_status":"Returned to compliance","population_served":28,"pws_type":"Transient non-community water system","primary_source":"Groundwater"},{"id":"NJ0101308-1315","pwsid":"NJ0101308","water_system_name":"ROYAL LODGE","violation_id":"1315","violation_code":"4B","violation_category":"RPT","is_health_based":false,"contaminant_code":"8000","begin_date":"2019-07-11","end_date":null,"compliance_status":"Returned to compliance","population_served":28,"pws_type":"Transient non-community water system","primary_source":"Groundwater"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"begin_date":1,"compliance_status":1,"contaminant_code":1,"end_date":0.33,"id":1,"is_health_based":1,"population_served":1,"primary_source":1,"pws_type":1,"pwsid":1,"violation_category":1,"violation_code":1,"violation_id":1,"water_system_name":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_788068544a4c3cbfff20e2bc/run","openapi":"https://pullrow.dev/v1/apis/api_788068544a4c3cbfff20e2bc/openapi.json","contract":"https://pullrow.dev/v1/apis/api_788068544a4c3cbfff20e2bc/contract.json","page":"https://pullrow.dev/catalog/drinking-water-violations"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Give a two-letter state (primacy agency) code, a public water system ID, or both. A state run returns all its violations, active and past, in the source's own order; use health_based_only to narrow it.","A run returns at most 5,000 violations. Large states have tens of thousands of rows, so filter by system ID or health-based status.","Water system names are looked up once per system, so a run that touches many systems takes longer. Some inactive or old systems have no name in the source (water_system_name is then empty).","contaminant_code is the EPA numeric code, not a name. end_date is empty while a violation is open. Codes such as violation_category and violation_code are shown as the source gives them.","Data is reported by states to the EPA and updated quarterly, so recent violations can be missing or revised. US EPA Envirofacts (SDWIS) is public domain."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"Unique key: water system ID and violation ID.","group":"Technical","shown":false,"written":false},{"name":"pwsid","label":"Pwsid","description":"Public water system ID.","group":"Basics","shown":true,"written":false},{"name":"water_system_name","label":"Water system name","description":"","group":"Basics","shown":true,"written":false},{"name":"violation_id","label":"Violation ID","description":"The source's violation ID within the system.","group":"Technical","shown":false,"written":false},{"name":"violation_code","label":"EPA violation code","description":"","group":"Basics","shown":true,"written":false},{"name":"violation_category","label":"Violation category","description":"Violation category code, such as MCL, TT, MR or MON.","group":"Basics","shown":true,"written":false},{"name":"is_health_based","label":"Health based","description":"Whether the violation is health-based.","group":"Basics","shown":true,"written":false},{"name":"contaminant_code","label":"EPA contaminant code","description":"","group":"Basics","shown":true,"written":false},{"name":"begin_date","label":"Begin date","description":"Start of the compliance period.","group":"Dates","shown":true,"written":false},{"name":"end_date","label":"End date","description":"End of the compliance period, empty while open.","group":"Dates","shown":true,"written":false},{"name":"compliance_status","label":"Compliance status","description":"Returned to compliance, addressed or unaddressed.","group":"Basics","shown":true,"written":false},{"name":"population_served","label":"Population served","description":"People served by the system.","group":"Basics","shown":true,"written":false},{"name":"pws_type","label":"Pws type","description":"System type, such as community or non-community.","group":"Basics","shown":true,"written":false},{"name":"primary_source","label":"Primary source","description":"Main water source, such as groundwater or surface water.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"state","label":"State","help":"Two-letter state code (primacy agency), such as NJ","example":"NJ","written":false},{"name":"pwsid","label":"Pwsid","help":"One public water system ID, such as NJ0102001","example":"NJ0102001","written":false},{"name":"health_based_only","label":"Health based only","help":"Only health-based violations","example":"true","written":false},{"name":"max_results","label":"Maximum results","help":"Most rows to return","example":"5","written":false}]}},"incidents":[]}