{"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},"version":"1.0","contract_hash":"aabd77a29cd148e99c216fa1bd578282e064415f637ca7cb6a2df9de77db0464","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.637Z","activated_at":"2026-12-06T03:57:27.637Z","active":true,"contract_hash":"aabd77a29cd148e99c216fa1bd578282e064415f637ca7cb6a2df9de77db0464","fields_count":14}]}