# Uk Flood Monitoring Scraper (`zerobreak/uk-flood-monitoring-scraper`) Actor

This Actor collects live flood warnings, river level readings, and monitoring station data from the UK Environment Agency. It extracts alert severity levels, affected regions, water flow measurements, and station locations to support flood risk analysis, safety planning, and environmental research

- **URL**: https://apify.com/zerobreak/uk-flood-monitoring-scraper.md
- **Developed by:** [ZeroBreak](https://apify.com/zerobreak) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### UK Flood Monitoring Scraper — Environment Agency Flood Warnings

![UK Flood Monitoring Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/uk-flood-monitoring-scraper-cover.png)

Collect publicly available flood warnings and alerts from the UK Environment Agency and export them as JSON, CSV, Excel, or other supported dataset formats. Filter records by county or minimum severity and control how many flood records are saved.

### What This Actor Does

This actor collects flood warning and alert information published by the Environment Agency.

Each dataset item represents a flood record and includes its description, affected area, severity, warning message, and relevant timestamps.

You can collect available flood records or narrow the results using the `county` and `minSeverity` filters. Use `maxItems` to control the maximum number of records saved.

### Collection Mode

- **Flood Warnings (`floodWarnings`)**: Collect current Environment Agency flood alerts and warnings.

### Input Example

```json
{
  "mode": "floodWarnings",
  "county": "",
  "minSeverity": 1,
  "maxItems": 100,
  "requestDelayMs": 1000
}
```

### Input Parameters

| Parameter | Description |
|---|---|
| `mode` | Selects the collection mode. Use `floodWarnings` to collect flood records. |
| `county` | Optional county name used to filter flood records. Leave empty to include all counties. |
| `minSeverity` | Minimum severity level for filtering records. |
| `maxItems` | Maximum number of flood records to save. |
| `requestDelayMs` | Delay between requests, in milliseconds. |

### What Data Does This Actor Extract?

Each dataset record can contain:

| Field | Description |
|---|---|
| `floodDescription` | Description of the affected flood area. |
| `eaAreaName` | Environment Agency area name. |
| `floodAreaID` | Unique flood area identifier. |
| `isTidal` | Indicates whether the flood area is tidal. |
| `severity` | Current flood warning or alert status. |
| `severityLevel` | Numeric severity level. |
| `timeRaised` | Date and time the warning was raised. |
| `message` | Flood warning message and information. |
| `scrapedAt` | Timestamp indicating when the record was collected. |

### Example Output

```json
{
  "floodDescription": "Upper River Derwent, Stonethwaite Beck and Derwent Water",
  "eaAreaName": "Cumbria and Lancashire",
  "floodAreaID": "011WAFDW",
  "isTidal": false,
  "severity": "Warning no longer in force",
  "severityLevel": 4,
  "timeRaised": "2026-10-11T16:34:06",
  "message": "There is no longer a threat of flooding.",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Flood dashboards**: Collect UK flood warnings for monitoring dashboards and maps.
- **County monitoring**: Filter flood records by county for local planning and monitoring.
- **Severity analysis**: Focus on higher-severity warnings using `minSeverity`.
- **Flood research**: Export flood area identifiers, warning messages, and timestamps for offline analysis.
- **Environmental monitoring**: Compare collected records across runs to study changes in flood warning conditions.

### Working with Your Dataset

After the run finishes, open the Apify dataset to browse your collected flood records or export them as JSON, CSV, Excel, and other supported formats.

### FAQ

**Who is this actor for?**

Developers, analysts, researchers, and planning teams who need UK Environment Agency flood warning information.

**Can I filter by county?**

Yes. Enter a county name in `county`. Leave it empty to collect records across all available counties.

**Can I filter by severity?**

Yes. Use `minSeverity` to set the minimum severity level for the records you want to collect.

**What can I export?**

You can export the dataset as JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I run it on a schedule?**

Yes. You can use Apify schedules to refresh flood warning data automatically at your preferred intervals.

**How many records can it collect per run?**

You can collect up to 1,000 records per run. Use `maxItems` to control the number of records saved.

### Disclaimer

This actor is an independent tool and is not officially affiliated with or endorsed by the UK Environment Agency. It collects publicly available information. Users are responsible for complying with applicable data-use terms and licensing requirements.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

Collect currently published Environment Agency flood warnings and alerts.

## `county` (type: `string`):

Optional county filter, such as Essex, Kent or North Yorkshire.

## `location` (type: `string`):

Optional text filter matching returned flood descriptions, area names, counties, rivers and messages. This is a text search, not an official district filter.

## `minSeverity` (type: `integer`):

Enter 1, 2 or 3. Level 1 includes severe warnings, level 2 includes warnings, and level 3 includes all active warnings and alerts. Level 4 (no longer in force) is excluded.

## `maxItems` (type: `integer`):

Maximum number of matching unique current flood warnings and alerts. You can enter 100, 500 or 1000.

## `requestDelayMs` (type: `integer`):

Delay before each page request.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run time limit.

## `requestTimeoutSecs` (type: `integer`):

Maximum time for each request.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless needed.

## Actor input object example

```json
{
  "mode": "floodWarnings",
  "minSeverity": 3,
  "maxItems": 1000,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("zerobreak/uk-flood-monitoring-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("zerobreak/uk-flood-monitoring-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call zerobreak/uk-flood-monitoring-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zerobreak/uk-flood-monitoring-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cl7R6gn5xY5HQ7DLa/builds/qPliVcyQzylMpjcdb/openapi.json
