75trust / 100

Lookup Place Drinking Water

by OneShot in Other

x402 APIPassing, checked 2 h ago

Find public water systems serving a county and their drinking water violations, largest population first.

POST
https://win.oneshotagent.com/v1/tools/lookup/place-drinking-water
Price
$0.01
per call in USDC
Uptime
90.9%
last 30 days
Response time
178 ms
286 ms slowest 5%
Last check
Passed
2 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://win.oneshotagent.com/v1/tools/lookup/place-drinking-water

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://win.oneshotagent.com/v1/tools/lookup/place-drinking-water
content-type: application/json

{
  "county_fips": "26049",
  "limit": 3
}

Parameters

ParameterTypeRequiredDescription
county_fipsstringNoFive-digit state plus county code, the county_id returned by Place Resolve (place_resolve), for example 26049 for Genesee County, Michigan
include_inactivebooleanNoInclude inactive systems as well as active systems. Defaults to `false`.
limitintegerNoHow many systems to return, largest population first. From 1 to 25. Defaults to `10`.
place_idstringNoOneShot place id returned by place_resolve; use instead of county_fips or other geography
system_typestringNoCommunity serves residents year round; non-transient non-community includes schools and workplaces; transient non-community includes rest stops and restaurants; all includes every type. Defaults to `"community"`. One of: community, non_transient_non_community, transient_non_community, all.

Example response

The provider's example. We can't check it without paying.

Example response, 118 lines
{
  "enforcement_priority_systems": 2,
  "systems": [
    {
      "active": true,
      "cities_served": "FLINT",
      "contaminants_in_violation_3yr": [],
      "contaminants_in_violation_now": [],
      "copper_action_level_exceedances_5yr": null,
      "counties_served": "Genesee",
      "enforcement_priority": false,
      "health_based_violation": false,
      "last_formal_action_on": "2016-11-17",
      "last_site_visit_on": "2026-01-21",
      "lead_action_level_exceedances_5yr": null,
      "monitoring_violation": false,
      "name": "FLINT, CITY OF",
      "other_violation": false,
      "owner_type": "Local government",
      "population_served": 81252,
      "primary_source": "Surface water purchased",
      "public_notice_violation": false,
      "pwsid": "MI0002310",
      "quarters_as_enforcement_priority": 0,
      "quarters_in_violation": 2,
      "registry_id": "110013122281",
      "rules_violated_3yr": 1,
      "rules_violated_now": 0,
      "significant_deficiencies_5yr": 5,
      "state": "MI",
      "type": "Community water system",
      "uncorrected_violation_points": 0,
      "violation_categories": [
        "Treatment Technique Violation"
      ],
      "violation_points_5yr": 5
    },
    {
      "active": true,
      "cities_served": null,
      "contaminants_in_violation_3yr": [],
      "contaminants_in_violation_now": [],
      "copper_action_level_exceedances_5yr": null,
      "counties_served": "Genesee",
      "enforcement_priority": false,
      "health_based_violation": false,
      "last_formal_action_on": null,
      "last_site_visit_on": "2026-01-27",
      "lead_action_level_exceedances_5yr": null,
      "monitoring_violation": false,
      "name": "GENESEE COUNTY WATER SYSTEM",
      "other_violation": false,
      "owner_type": "Local government",
      "population_served": 73726,
      "primary_source": "Surface water purchased",
      "public_notice_violation": false,
      "pwsid": "MI0002615",
      "quarters_as_enforcement_priority": 0,
      "quarters_in_violation": 0,
      "registry_id": "110013123173",
      "rules_violated_3yr": 0,
      "rules_violated_now": 0,
      "significant_deficiencies_5yr": null,
      "state": "MI",
      "type": "Community water system",
      "uncorrected_violation_points": 0,
      "violation_categories": [],
      "violation_points_5yr": 1
    },
    {
      "active": true,
      "cities_served": "BURTON",
      "contaminants_in_violation_3yr": [
        {
          "code": "5000",
          "name": "Lead and Copper Rule"
        }
      ],
      "contaminants_in_violation_now": [
        {
          "code": "5000",
          "name": "Lead and Copper Rule"
        }
      ],
      "copper_action_level_exceedances_5yr": null,
      "counties_served": "Genesee",
      "enforcement_priority": false,
      "health_based_violation": false,
      "last_formal_action_on": null,
      "last_site_visit_on": "2024-08-07",
      "lead_action_level_exceedances_5yr": null,
      "monitoring_violation": false,
      "name": "BURTON, CITY OF",
      "other_violation": false,
      "owner_type": "Local government",
      "population_served": 21000,
      "primary_source": "Surface water purchased",
      "public_notice_violation": false,
      "pwsid": "MI0001010",
      "quarters_as_enforcement_priority": 0,
      "quarters_in_violation": 2,
      "registry_id": "110013129738",
      "rules_violated_3yr": 1,
      "rules_violated_now": 0,
      "significant_deficiencies_5yr": null,
      "state": "MI",
      "type": "Community water system",
      "uncorrected_violation_points": 5,
      "violation_categories": [
        "Treatment Technique Violation"
      ],
      "violation_points_5yr": 6
    }
  ],
  "systems_in_violation_now": 11,
  "systems_with_violations_3yr": 32,
  "total_systems": 45
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://win.oneshotagent.com/v1/tools/lookup/place-drinking-water' \
  -H 'content-type: application/json' \
  --data-raw '{"county_fips":"26049","limit":3}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://win.oneshotagent.com/v1/tools/lookup/place-drinking-water' \
  -H 'content-type: application/json' \
  --data-raw '{"county_fips":"26049","limit":3}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwin.oneshotagent.com%2Fv1%2Ftools%2Flookup%2Fplace-drinking-water&method=POST
const res = await pay("https://win.oneshotagent.com/v1/tools/lookup/place-drinking-water", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "county_fips": "26049",
    "limit": 3
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://win.oneshotagent.com/v1/tools/lookup/place-drinking-water",
        json={
            "county_fips": "26049",
            "limit": 3,
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402173 ms$0.01
12 h agoPassed402215 ms$0.01
23 h agoPassed402159 ms$0.01
33 h agoPassed402167 ms$0.01
43 h agoTimed out---
Show 10 older checks
2 days agoPassed402251 ms$0.01
3 days agoPassed402171 ms$0.01
3 days agoPassed402192 ms$0.01
5 days agoTimed out---
6 days agoPassed402179 ms$0.01
7 days agoPassed402154 ms$0.01
7 days agoPassed402213 ms$0.01
8 days agoPassed402178 ms$0.01
8 days agoPassed402311 ms$0.01
9 days agoPassed402177 ms$0.01