W

Workers · Safety EPA Violations

by Workers

GETBase

$0.02

per call · USD Coin on Base

Clean Water Act compliance for facilities in any US state or county, from EPA ECHO. Returns each facility's permit, current violation status, quarters in non-compliance, inspections, formal enforcement actions and penalties, plus the state-level totals EPA computes across the whole query. Filter to violators only.

Endpoint

GET https://x402-filings.datalayer.workers.dev/v1/safety/epa-violations

1

Calls / 30d

1

Unique payers / 30d

Aug 24

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402-filings.datalayer.workers.dev/v1/safety/epa-violations", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402-filings.datalayer.workers.dev/v1/safety/epa-violations?county=New+Castle&limit=20&state=DE&violatorsOnly=false" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "count": 20,
  "facilities": [
    {
      "address": "120 HAY ROAD, WILMINGTON, DE",
      "currentViolation": null,
      "inspectionsLast5Years": 3,
      "name": "120 HAY ROAD LLC",
      "permitId": "DE0050857",
      "statute": "CWA"
    }
  ],
  "query": {
    "limit": 20,
    "state": "DE",
    "violatorsOnly": false
  },
  "stateSummary": {
    "facilitiesMatched": 1893,
    "formalEnforcementActions": 31,
    "inspections": 288,
    "totalPenalties": "$1,204,551",
    "withViolationsLast4Quarters": 204
  }
}

Payment details

Pay to0x917e635b83f0dd7e8172c55ec4eebb28b734ca85
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Workers & similar services