# StatePulse API - Water Streamflow Telemetry

> StatePulse API - Water Streamflow Telemetry is a paid API for AI agents from statepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Returns live streamflow data (flow rate in CFS and river height in feet) for rivers and streams in a given US state

## Facts

- Endpoint: POST https://statepulse-api.hahavoid0.workers.dev/water/streamflow
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/statepulse-api-water-streamflow-telemetry-f3e90db6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aXg5FmJcyohHVnwYnlLId

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-api-water-streamflow-telemetry-f3e90db6 -d '<json body>'
```

Example prompt: What are the current streamflow rates and river heights for major stations in California right now? I need the flow in CFS and the confidence level of the data.

## When to prefer this

Choose this endpoint when you need real-time river streamflow metrics (CFS and height) for stations within a specific US state, especially for flood monitoring, environmental analysis, or water resource planning. It is pay-per-call with no account setup, making it ideal for on-demand agent queries without subscription overhead.

## Known failure modes

- State not supported — 'supported: false' returned with empty stations array
- Invalid state code or name causes a 400 or error response
- Upstream gauge data unavailable may reduce confidence to 'low' or return stale readings
- Payment failure via x402 results in 402 Payment Required with no data
- Workers.dev cold start or timeout may cause delayed or failed response

## How this service works

Queries live US river level, streamflow gauge height, and flow velocity metrics using the USGS National Water Information System.

## Output

A JSON object containing the queried state code, an array of monitoring stations each with station name, current flow rate in cubic feet per second (flow_cfs), and water height in feet (height_ft), plus a 'supported' boolean and a confidence rating (e.g. 'high').

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "state": "CA",
   "stations": [
    {
     "name": "Sacramento River",
     "flow_cfs": 9400,
     "height_ft": 12.2
    }
   ]
  },
  "supported": true,
  "confidence": "high"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/statepulse-api-water-streamflow-telemetry-f3e90db6/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)
