# x402-factory Flood Alerts

> x402-factory Flood Alerts is a paid API for AI agents from x402-factory.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns active NWS flood alerts and model-based flood risk context for a given US location (lat/lon or state).

## Facts

- Endpoint: GET https://x402-factory.com/v1/alerts/flood
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-factory-flood-alerts-b8cac739
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UfWW-1UmouVsN_r4ieP6w

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 x402-factory-flood-alerts-b8cac739
```

Example prompt: Are there any active flood warnings or watches right now near latitude 30.25, longitude -97.75 — and what's the model-based flood risk context for that area?

## When to prefer this

Use this endpoint when you need flood-specific alert data for a US location — it pre-filters NWS alerts to flood hazards so you don't have to sift through all severe weather alerts. Prefer it over a general severe-weather alerts endpoint when the user's concern is specifically flooding, flash floods, or water-related hazards. Ideal for real-time monitoring, travel safety checks, or property risk assessment at a specific coordinate or state level.

## Known failure modes

- Missing required lat/lon or state parameter returns a 400 error
- Coordinates outside the US (not covered by NWS) may return empty results or an error
- Invalid state code format (not 2 alpha characters) rejected by schema validation
- NWS data outage may result in stale or unavailable alert data
- Payment failure (x402) causes 402 response before data is returned

## How this service works

Active and forecast flood risk (NWS + model) — Active NWS alerts filtered to flood hazards for any US point, with model-based risk context. Same shape as /v1/alerts/severe with the hazard class fixed to flood.

## Output

A structured response containing active NWS flood alerts (watches, warnings, advisories) filtered to flood hazards for the queried US point or state, along with model-based flood risk context. Follows the same shape as the /v1/alerts/severe endpoint but scoped to flood hazard class only.

## 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": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180
      },
      "state": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$",
       "maxLength": 2,
       "minLength": 2
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-factory-flood-alerts-b8cac739/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-factory.com](https://www.zero.xyz/host/x402-factory.com/llms.txt)
