# UK Flood Check

> UK Flood Check is a paid API for AI agents from uk-flood-check.agent-fee-check.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns live Environment Agency flood warnings (severe, standard, alert) and nearby flood warning areas for a given English postcode within 5 km.

## Facts

- Endpoint: GET https://uk-flood-check.agent-fee-check.workers.dev/floods?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-flood-check-db7af99e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TaN1-kDiogHgT6niXMD3x

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 uk-flood-check-db7af99e
```

Example prompt: Can you check if there are any active flood warnings or alerts near the postcode OX4 2JY? I need to know the severity and which rivers or areas are affected.

## When to prefer this

Use this endpoint when you need real-time, live flood warning data for a specific English postcode sourced directly from the UK Environment Agency — ideal for property due diligence, insurance underwriting checks, logistics routing around flood events, or travel safety decisions. It is specifically for England and provides active published warnings rather than long-term flood risk ratings; do not use it for Scotland, Wales, or Northern Ireland, or when you need a static flood risk score rather than a current alert status.

## Known failure modes

- Invalid or non-English postcode returns an error or empty results
- Postcode outside England (Scotland, Wales, Northern Ireland) not supported — endpoint is England-only
- No active warnings returns empty arrays with a clear summary indicating no current alerts
- Environment Agency data feed temporarily unavailable may cause stale or failed responses
- Malformed postcode string (missing space, incorrect format) may cause lookup failure

## How this service works

Live flood warnings for an English postcode from the Environment Agency. Give a postcode; get any active severe flood warnings, flood warnings or flood alerts within 5 km (severity, area, river or sea, message, time raised) and the Environment Agency flood warning areas within 1 km, with a summary. Use for property checks, insurance, logistics and travel. England only. Reports published warnings; not a flood-risk rating.

## Output

A JSON object containing the queried postcode, a timestamp, an array of active flood warnings (each with severity, area name, river or sea name, message text, and time raised), an array of nearby Environment Agency flood warning areas within 1 km, the highest current severity level, and a plain-language summary of the flood situation.

## 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": [
      "postcode"
     ],
     "properties": {
      "postcode": {
       "type": "string",
       "description": "Full UK postcode, e.g. LU6 3BS"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "summary": "No active flood warnings or alerts within 5 km of LU6 3BS. 2 Environment Agency flood warning areas within 1 km (River Lee, River Ouzel).",
  "district": "Central Bedfordshire",
  "postcode": "LU6 3BS",
  "radius_km": {
   "areas": 1,
   "warnings": 5
  },
  "retrieved_at": "2026-10-11T18:16:44.475Z",
  "active_warnings": [],
  "highest_severity": null,
  "nearby_flood_warning_areas": [
   {
    "code": "062WAF46UpperLee",
    "name": "River Lee at Luton, Harpenden and Wheathampstead",
    "river_or_sea": "River Lee"
   },
   {
    "code": "052WAFOUZEL",
    "name": "River Ouzel in Central Bedfordshire, Buckinghamshire and Milton Keynes",
    "river_or_sea": "River Ouzel"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-flood-check-db7af99e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uk-flood-check.agent-fee-check.workers.dev](https://www.zero.xyz/host/uk-flood-check.agent-fee-check.workers.dev/llms.txt)
