# StatePulse Flood Warnings

> StatePulse Flood Warnings is a paid API for AI agents from statepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns live flood alerts and river gauge heights for a given US state

## Facts

- Endpoint: POST https://statepulse-api.hahavoid0.workers.dev/water/flood-warnings
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/statepulse-flood-warnings-c4331f83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M74BIqkabhUdLBOeTAMlR

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 statepulse-flood-warnings-c4331f83 -d '<json body>'
```

Example prompt: Are there any active flood warnings or high river gauge readings in California right now?

## When to prefer this

Use this endpoint when an agent needs real-time flood warning data and river gauge heights for a specific US state, particularly for safety monitoring, travel planning, or emergency awareness workflows. It is pay-per-call with no API key required, making it suitable for lightweight agent use via x402 USDC payments on Base.

## Known failure modes

- State not supported — 'supported: false' returned with empty alerts array
- No active flood warnings — returns empty alerts array with supported: true
- Invalid state code or unrecognized input — may return error or unsupported response
- Payment failure — x402 USDC transaction not confirmed, request blocked
- Upstream data source unavailable — stale or missing gauge data

## How this service works

Scans active USGS gauge heights in a US state for potential river flooding. Matches: streamflow flood alerts, USGS gauge height warnings, river level flood checker, water streamflow warnings, river overflow stage alerts.

## Output

A JSON object containing the queried state code, an array of active flood alerts each with the monitoring station name and current gauge height in feet, plus a confidence level and supported flag indicating data availability for that state.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "state": "CA",
   "alerts": [
    {
     "station_name": "Sacramento River near Red Bluff",
     "gauge_height_ft": 14.8
    }
   ]
  },
  "supported": true,
  "confidence": "high"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/statepulse-flood-warnings-c4331f83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from statepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/statepulse-api.hahavoid0.workers.dev/llms.txt)
