# AllTheBot France Flood Alerts

> AllTheBot France Flood Alerts is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Returns official French Vigicrues flood vigilance alerts for river sections at yellow, orange, or red level, with position data and national counts by severity color.

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/france/flood-alerts?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-france-flood-alerts-cc12534b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oG61z2aDr5NQ353Wh8mt_

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 allthebot-france-flood-alerts-cc12534b
```

Example prompt: Check the official Vigicrues flood alerts for France and show me all river sections currently on orange or red vigilance — include their names, coordinates, and the national count breakdown by color.

## When to prefer this

Choose this endpoint when you need official, real-time French flood vigilance data sourced directly from Vigicrues government data. It is the authoritative source for flood alerts across all 337 French river sections, with filtering by river name and minimum severity color. Prefer this over general weather alert endpoints when the specific concern is river flooding rather than meteorological hazards (use the France weather alerts sibling for storms, wind, etc.).

## Known failure modes

- No sections match the filter — returns matches:0 and empty sections array
- Invalid min_color enum value — likely 400 Bad Request
- River name typo or unrecognized name — returns empty matches
- Service temporarily unavailable from Vigicrues upstream — may return 5xx or stale data
- Payment not processed — 402 response if x402 payment header missing or invalid

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

Returns a JSON object with the data source attribution, number of matching alert sections, an array of sections each containing name, code, lat/lon coordinates, and vigilance color, plus aggregate counts of all 337 national river sections broken down by color (green/yellow/orange/red).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "river": {
       "type": "string",
       "maxLength": 60
      },
      "min_color": {
       "enum": [
        "green",
        "yellow",
        "orange",
        "red"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "Vigicrues, service central d'hydrométéorologie (Licence Ouverte Etalab 2.0)",
  "matches": 2,
  "sections": [
   {
    "lat": 48.5111,
    "lon": 3.5465,
    "code": "SM7",
    "name": "Seine Bassée champenoise",
    "color": "yellow"
   }
  ],
  "min_color": "yellow",
  "sections_total": 337,
  "counts_by_color": {
   "red": 0,
   "green": 335,
   "orange": 0,
   "yellow": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-france-flood-alerts-cc12534b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zkrobotics.fr](https://www.zero.xyz/host/api.zkrobotics.fr/llms.txt)
