82trust / 100

River Gauge

by natur.halowerk.com in Other

x402 APIPassing, checked 48 min ago

Returns the latest instantaneous values at a USGS streamgage, together with what makes them readable. A stage of three point four feet means nothing on its own, so each value is placed against the station own record for the requested reference period: the minimum, median and maximum, and the percentile the current reading falls at. The reference period is stated with the comparison, because a percentile without a window is not a statistic.

POST https://natur.halowerk.com/v1/river-gauge

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
104 ms typical, 104 ms slowest 5%
Last check
48 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://natur.halowerk.com/v1/river-gauge" \
  -H "content-type: application/json" \
  -d '{"reference_days":30,"site_id":"01646500"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fnatur.halowerk.com%2Fv1%2Friver-gauge
const res = await pay("https://natur.halowerk.com/v1/river-gauge", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"reference_days":30,"site_id":"01646500"}),
});
console.log(await res.json());

Example input

{
  "reference_days": 30,
  "site_id": "01646500"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
48 min agoPassed402104 ms$0.004
6 h agoPassed402122 ms$0.004