{
  "x402Version": 2,
  "id": 51402,
  "slug": "51402",
  "resource": "https://api.locus.report/api/locus-drinking-water-violations",
  "description": "EPA SDWIS drinking-water violations for a water system or area, for agents. Returns the same records as locus_drinking_water_violations. Use this when your client can only call paid x402 routes. Use locus_drinking_water_violations instead when you can call Locus free tools (REST tools/call or MCP).",
  "type": "http",
  "resourceType": "MCP Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF121fbeceC43e1B616D47285851c20d5fC64431b",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "FBVHMG5PTNW6sNd7uhZBsxhWkwJYRpgk34QcTgDpQdwV",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "address": "1 E Edenton St, Raleigh, NC 27601"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "caveats": [
              "Point-in-polygon containment identifies a candidate utility or published provider boundary, not proof of an active account or connection. Confirm with the utility; a water bill names the actual provider."
            ],
            "componentStatus": [
              {
                "component": "sdwis_violation_enforcement",
                "status": "ok"
              }
            ],
            "note": "Awareness/diagnostic only. Full briefs are x402-paid. Agents can discover live free tools at https://api.locus.report/tools/list and paid tools, prices, and manifests at https://api.locus.report/.well-known/ai-tool/index.json.",
            "ok": true,
            "place": {
              "county": "Wake County",
              "countyFips3": "183",
              "stateAbbr": "NC"
            },
            "point": {
              "latitude": 35.780418000003195,
              "longitude": -78.63910200000142
            },
            "provenance": {
              "coverage": "United States public water systems where SDWIS publishes violation/enforcement rows",
              "serviceUrl": "https://data.epa.gov/efservice/SDW_VIOL_ENFORCEMENT",
              "source": "EPA SDWIS / ECHO Safe Drinking Water Act violation and enforcement records",
              "sourcePage": "https://echo.epa.gov/tools/data-downloads/sdwa-download-summary"
            },
            "query": {
              "pwsids": [
                "NC0392010"
              ]
            },
            "serviceAreaMatched": true,
            "serviceAreaResolution": {
              "caveats": [
                "Point-in-polygon containment identifies a candidate utility or published provider boundary, not proof of an active account or connection. Confirm with the utility; a water bill names the actual provider."
              ],
              "multipleMatches": false,
              "point": {
                "latitude": 35.780418000003195,
                "longitude": -78.63910200000142
              },
              "source": {
                "fetchedAt": "2026-09-23T01:11:19.075Z",
                "layerUrl": "https://services.arcgis.com/cJ9YHowT8TU7DUyn/arcgis/rest/services/Water_System_Boundaries/FeatureServer/0",
                "name": "EPA Community Water System Service Area Boundaries (EPA Office of Research and Development)",
                "sourcePage": "https://www.epa.gov/ground-water-and-drinking-water/public-water-system-service-areas"
              },
              "status": "matched",
              "systems": [
                {
                  "boundary": {
                    "basis": "provider_supplied",
                    "confidence": "high",
                    "confidenceNote": "Provider-supplied boundary marked Verified in the EPA layer.",
                    "dataProvider": "NC Center for Geographic Information and Analysis",
                    "dataProviderType": "State Agency",
                    "verification": "verified",
                    "verificationStatus": "Verified"
                  },
                  "name": "RALEIGH, CITY OF",
                  "populationServed": 640000,
                  "primacyAgency": "NC",
                  "pwsid": "NC0392010",
                  "serviceAreaType": "Municipality",
                  "serviceConnections": 200114
                }
              ]
            },
            "systemsBasis": "service_area_boundary",
            "systemsChecked": [
              {
                "pwsid": "NC0392010"
              }
            ],
            "systemsQueried": 1,
            "systemsRetrieved": 1,
            "verifyNext": [
              {
                "step": "Confirm the serving utility directly (a water bill names it); service-area boundary containment does not prove an active account or connection.",
                "url": "https://www.epa.gov/ground-water-and-drinking-water/public-water-system-service-areas"
              }
            ],
            "violations": [
              {
                "compliancePeriod": {
                  "begin": "2006-01-01",
                  "end": "2006-01-31"
                },
                "contaminantCode": "3100",
                "contaminantName": "Coliform (TCR)",
                "enforcementAction": "SOX",
                "enforcementActionName": "St Compliance achieved",
                "enforcementDate": "2010-09-01",
                "officialUrl": "https://echo.epa.gov/detailed-facility-report?fid=NC0392010",
                "pwsid": "NC0392010",
                "systemName": "RALEIGH, CITY OF",
                "violationCategory": "Monitoring and Reporting",
                "violationCode": "24",
                "violationId": "3285707",
                "violationName": "Monitoring, Routine Minor (TCR)"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "address": {
                    "maxLength": 200,
                    "minLength": 5,
                    "type": "string"
                  },
                  "county": {
                    "maxLength": 60,
                    "minLength": 3,
                    "type": "string"
                  },
                  "latitude": {
                    "maximum": 90,
                    "minimum": -90,
                    "type": "number"
                  },
                  "longitude": {
                    "maximum": 180,
                    "minimum": -180,
                    "type": "number"
                  },
                  "pwsids": {
                    "items": {
                      "maxLength": 24,
                      "minLength": 3,
                      "type": "string"
                    },
                    "maxItems": 10,
                    "type": "array"
                  },
                  "state": {
                    "maxLength": 2,
                    "minLength": 2,
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_vz5zyuko"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "locus.freePreflight": {
      "coverageBeforeCharge": true,
      "laneTool": "locus_lane_availability",
      "mcpUrl": "https://mcp.locus.report/mcp",
      "recommendedTool": "locus_coverage_check",
      "skillInstall": "npx @velinussage/locus-agent-skill add",
      "skillUrl": "https://api.locus.report/.well-known/skill.md",
      "toolsCallUrl": "https://api.locus.report/tools/call",
      "toolsListUrl": "https://api.locus.report/tools/list",
      "unsupportedReturnsFreeDiagnostic": true,
      "version": 2
    },
    "offer-receipt": {
      "info": {
        "offers": [
          {
            "acceptIndex": 0,
            "format": "eip712",
            "payload": {
              "amount": "50000",
              "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "network": "eip155:8453",
              "payTo": "0xF121fbeceC43e1B616D47285851c20d5fC64431b",
              "resourceUrl": "https://api.locus.report/api/locus-drinking-water-violations",
              "scheme": "exact",
              "validUntil": 1791387938,
              "version": 1
            },
            "signature": "0x3b06e7f08df3ee0d472bc59c278b4cbbce1bb8be3d9b0c858f6b22bbad39316c330fc87e00d48916628f2e7bf6f9bdc8737338f12d8caf89a5c2d611a5118f821c"
          }
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "offers": {
            "items": {
              "properties": {
                "acceptIndex": {
                  "type": "integer"
                },
                "format": {
                  "type": "string"
                },
                "payload": {
                  "properties": {
                    "amount": {
                      "type": "string"
                    },
                    "asset": {
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    },
                    "payTo": {
                      "type": "string"
                    },
                    "resourceUrl": {
                      "type": "string"
                    },
                    "scheme": {
                      "type": "string"
                    },
                    "validUntil": {
                      "type": "integer"
                    },
                    "version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "version",
                    "resourceUrl",
                    "scheme",
                    "network",
                    "asset",
                    "payTo",
                    "amount"
                  ],
                  "type": "object"
                },
                "signature": {
                  "type": "string"
                }
              },
              "required": [
                "format",
                "signature"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "offers"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code",
    "locus.freePreflight",
    "offer-receipt"
  ],
  "sourceHost": "api.locus.report",
  "lastUpdated": "2026-10-07T15:44:38.943Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-07T15:44:35.555Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "address": "1 E Edenton St, Raleigh, NC 27601"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "caveats": [
                "Point-in-polygon containment identifies a candidate utility or published provider boundary, not proof of an active account or connection. Confirm with the utility; a water bill names the actual provider."
              ],
              "componentStatus": [
                {
                  "component": "sdwis_violation_enforcement",
                  "status": "ok"
                }
              ],
              "note": "Awareness/diagnostic only. Full briefs are x402-paid. Agents can discover live free tools at https://api.locus.report/tools/list and paid tools, prices, and manifests at https://api.locus.report/.well-known/ai-tool/index.json.",
              "ok": true,
              "place": {
                "county": "Wake County",
                "countyFips3": "183",
                "stateAbbr": "NC"
              },
              "point": {
                "latitude": 35.780418000003195,
                "longitude": -78.63910200000142
              },
              "provenance": {
                "coverage": "United States public water systems where SDWIS publishes violation/enforcement rows",
                "serviceUrl": "https://data.epa.gov/efservice/SDW_VIOL_ENFORCEMENT",
                "source": "EPA SDWIS / ECHO Safe Drinking Water Act violation and enforcement records",
                "sourcePage": "https://echo.epa.gov/tools/data-downloads/sdwa-download-summary"
              },
              "query": {
                "pwsids": [
                  "NC0392010"
                ]
              },
              "serviceAreaMatched": true,
              "serviceAreaResolution": {
                "caveats": [
                  "Point-in-polygon containment identifies a candidate utility or published provider boundary, not proof of an active account or connection. Confirm with the utility; a water bill names the actual provider."
                ],
                "multipleMatches": false,
                "point": {
                  "latitude": 35.780418000003195,
                  "longitude": -78.63910200000142
                },
                "source": {
                  "fetchedAt": "2026-09-23T01:11:19.075Z",
                  "layerUrl": "https://services.arcgis.com/cJ9YHowT8TU7DUyn/arcgis/rest/services/Water_System_Boundaries/FeatureServer/0",
                  "name": "EPA Community Water System Service Area Boundaries (EPA Office of Research and Development)",
                  "sourcePage": "https://www.epa.gov/ground-water-and-drinking-water/public-water-system-service-areas"
                },
                "status": "matched",
                "systems": [
                  {
                    "boundary": {
                      "basis": "provider_supplied",
                      "confidence": "high",
                      "confidenceNote": "Provider-supplied boundary marked Verified in the EPA layer.",
                      "dataProvider": "NC Center for Geographic Information and Analysis",
                      "dataProviderType": "State Agency",
                      "verification": "verified",
                      "verificationStatus": "Verified"
                    },
                    "name": "RALEIGH, CITY OF",
                    "populationServed": 640000,
                    "primacyAgency": "NC",
                    "pwsid": "NC0392010",
                    "serviceAreaType": "Municipality",
                    "serviceConnections": 200114
                  }
                ]
              },
              "systemsBasis": "service_area_boundary",
              "systemsChecked": [
                {
                  "pwsid": "NC0392010"
                }
              ],
              "systemsQueried": 1,
              "systemsRetrieved": 1,
              "verifyNext": [
                {
                  "step": "Confirm the serving utility directly (a water bill names it); service-area boundary containment does not prove an active account or connection.",
                  "url": "https://www.epa.gov/ground-water-and-drinking-water/public-water-system-service-areas"
                }
              ],
              "violations": [
                {
                  "compliancePeriod": {
                    "begin": "2006-01-01",
                    "end": "2006-01-31"
                  },
                  "contaminantCode": "3100",
                  "contaminantName": "Coliform (TCR)",
                  "enforcementAction": "SOX",
                  "enforcementActionName": "St Compliance achieved",
                  "enforcementDate": "2010-09-01",
                  "officialUrl": "https://echo.epa.gov/detailed-facility-report?fid=NC0392010",
                  "pwsid": "NC0392010",
                  "systemName": "RALEIGH, CITY OF",
                  "violationCategory": "Monitoring and Reporting",
                  "violationCode": "24",
                  "violationId": "3285707",
                  "violationName": "Monitoring, Routine Minor (TCR)"
                }
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "address": {
                      "maxLength": 200,
                      "minLength": 5,
                      "type": "string"
                    },
                    "county": {
                      "maxLength": 60,
                      "minLength": 3,
                      "type": "string"
                    },
                    "latitude": {
                      "maximum": 90,
                      "minimum": -90,
                      "type": "number"
                    },
                    "longitude": {
                      "maximum": 180,
                      "minimum": -180,
                      "type": "number"
                    },
                    "pwsids": {
                      "items": {
                        "maxLength": 24,
                        "minLength": 3,
                        "type": "string"
                      },
                      "maxItems": 10,
                      "type": "array"
                    },
                    "state": {
                      "maxLength": 2,
                      "minLength": 2,
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_vz5zyuko"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "locus.freePreflight": {
        "coverageBeforeCharge": true,
        "laneTool": "locus_lane_availability",
        "mcpUrl": "https://mcp.locus.report/mcp",
        "recommendedTool": "locus_coverage_check",
        "skillInstall": "npx @velinussage/locus-agent-skill add",
        "skillUrl": "https://api.locus.report/.well-known/skill.md",
        "toolsCallUrl": "https://api.locus.report/tools/call",
        "toolsListUrl": "https://api.locus.report/tools/list",
        "unsupportedReturnsFreeDiagnostic": true,
        "version": 2
      },
      "offer-receipt": {
        "info": {
          "offers": [
            {
              "acceptIndex": 0,
              "format": "eip712",
              "payload": {
                "amount": "50000",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "network": "eip155:8453",
                "payTo": "0xF121fbeceC43e1B616D47285851c20d5fC64431b",
                "resourceUrl": "https://api.locus.report/api/locus-drinking-water-violations",
                "scheme": "exact",
                "validUntil": 1791387938,
                "version": 1
              },
              "signature": "0x3b06e7f08df3ee0d472bc59c278b4cbbce1bb8be3d9b0c858f6b22bbad39316c330fc87e00d48916628f2e7bf6f9bdc8737338f12d8caf89a5c2d611a5118f821c"
            }
          ]
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "offers": {
              "items": {
                "properties": {
                  "acceptIndex": {
                    "type": "integer"
                  },
                  "format": {
                    "type": "string"
                  },
                  "payload": {
                    "properties": {
                      "amount": {
                        "type": "string"
                      },
                      "asset": {
                        "type": "string"
                      },
                      "network": {
                        "type": "string"
                      },
                      "payTo": {
                        "type": "string"
                      },
                      "resourceUrl": {
                        "type": "string"
                      },
                      "scheme": {
                        "type": "string"
                      },
                      "validUntil": {
                        "type": "integer"
                      },
                      "version": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "version",
                      "resourceUrl",
                      "scheme",
                      "network",
                      "asset",
                      "payTo",
                      "amount"
                    ],
                    "type": "object"
                  },
                  "signature": {
                    "type": "string"
                  }
                },
                "required": [
                  "format",
                  "signature"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "offers"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.locus.report",
    "manifest_name": "api.locus.report",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}