# ClearCheck Drinking Water Safety Lookup

> ClearCheck Drinking Water Safety Lookup is a paid API for AI agents from loonie-toll.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns a safety verdict (CLEAR or REVIEW) for a US public water system, including violation counts, health-based flags, and recent violation details.

## Facts

- Endpoint: GET https://loonie-toll.onrender.com/drinkingwater
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clearcheck-drinking-water-safety-lookup-0c138e91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q8nFUOrip3cjpgkForZDm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability clearcheck-drinking-water-safety-lookup-0c138e91
```

Example prompt: Can you check the drinking water safety record for public water system TN0000128 and tell me if it has any health-based violations or if it gets a CLEAR verdict?

## When to prefer this

Use this endpoint when you need a fast, structured safety verdict for a US public water system identified by PWSID or name. It is purpose-built for drinking water compliance checks and surfaces health-based violations specifically, making it more useful than raw EPA database queries for agent workflows that need a simple CLEAR/REVIEW signal with supporting violation counts.

## Known failure modes

- Unknown PWSID returns no match or empty result
- Name search without state code may return ambiguous or multiple matches
- System may be inactive or delisted from EPA registry
- Stale data if EPA SDWIS has not been recently updated
- Rate-limited or server unavailable on free-tier Render hosting
- Misspelled system name returns no matched systems

## How this service works

Drinking water verdict for a US public water system: violations on record, health-based or not, CLEAR to REVIEW.

## Output

Returns a verdict string (CLEAR or REVIEW), violation counts (total, unresolved, health-based), a list of recent violations, water system metadata (name, PWSID, state, type, population served, source water), the data source, retrieval timestamp, and a disclaimer about data freshness.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "name": {
       "type": "string",
       "description": "System name to search when the PWSID is unknown"
      },
      "pwsid": {
       "type": "string",
       "description": "Public water system ID, e.g. TN0000128"
      },
      "state": {
       "type": "string",
       "description": "2-letter state code, required with name search"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "query": {
       "type": "object",
       "properties": {
        "name": {
         "type": "null"
        },
        "pwsid": {
         "type": "string"
        },
        "state": {
         "type": "null"
        }
       }
      },
      "source": {
       "type": "string"
      },
      "system": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "type": {
         "type": "string"
        },
        "pwsid": {
         "type": "string"
        },
        "state": {
         "type": "string"
        },
        "active": {
         "type": "boolean"
        },
        "sourceWater": {
         "type": "string"
        },
        "populationServed": {
         "type": "integer"
        }
       }
      },
      "reasons": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "verdict": {
       "type": "string"
      },
      "disclaimer": {
       "type": "string"
      },
      "retrievedAt": {
       "type": "string"
      },
      "matchedSystems": {},
      "violationCounts": {
       "type": "object",
       "properties": {
        "total": {
         "type": "integer"
        },
        "unresolved": {
         "type": "integer"
        },
        "healthBased": {
         "type": "integer"
        }
       }
      },
      "recentViolations": {
       "type": "array"
      }
     }
    }
   }

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clearcheck-drinking-water-safety-lookup-0c138e91/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from loonie-toll.onrender.com](https://www.zero.xyz/host/loonie-toll.onrender.com/llms.txt)
