# Storm Overflow Sewage Spill Events England: EDM Data (`thomasjacks/storm-overflow-events-england`) Actor

Every storm overflow sewage discharge in England as clean rows: start, stop and duration from the Environment Agency's event duration monitoring data, per-site 12/24 spill counts, and live status from water company feeds.

- **URL**: https://apify.com/thomasjacks/storm-overflow-events-england.md
- **Developed by:** [Thomas Jacks](https://apify.com/thomasjacks) (community)
- **Categories:** Open source, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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

## Storm Overflow Sewage Spill Events England: EDM Data

Get every recorded **storm overflow discharge in England** as clean, filterable rows. You can look up when each overflow started and stopped discharging, for how long, into which river or sea, and whether a bathing or shellfish water is affected. You can also add the discharges up per overflow with the regulator's 12/24 spill count, or see which overflows are discharging right now.

All data is official and open: the Environment Agency's event duration monitoring (EDM) data, and the near real-time feeds that the water companies publish for the National Storm Overflow Hub. This Actor downloads it, reads ten differently laid out company spreadsheets, joins on site details, and gives you one consistent table. No login, no API key, no proxies.

Built for journalists, campaigners, river and swimming groups, environmental consultants and researchers who need event-level data without wrangling thirty spreadsheets.

### Three tables

Pick one with `dataset`.

| Table | One row per | Source | How fresh |
|---|---|---|---|
| `events` (default) | EDM activation: start, stop, duration | Environment Agency start/stop detailed data | Monthly batches, about two months behind (on 12 November 2026 the newest file ran to the end of August 2026) |
| `site_summary` | Storm overflow, for the period you choose | The same activations, added up by this Actor | As above |
| `live` | Storm overflow, its status now | Water company feeds on Stream | 5 to 60 minutes, by company (see below) |

### Which companies and sources are covered

The `events` and `site_summary` tables cover all ten water and sewerage companies that operate storm overflows in England:

Anglian Water, Dŵr Cymru Welsh Water (its overflows in England only: 112 had activations in 2025), Northumbrian Water, Severn Trent Water, South West Water, Southern Water, Thames Water, United Utilities, Wessex Water and Yorkshire Water.

The data runs from 1 January 2024 to the latest month the Environment Agency has published. Overflows in Wales (regulated by Natural Resources Wales), Scotland and Northern Ireland are not included, nor is Hafren Dyfrdwy.

| Calendar year | Activations | Overflows with at least one activation |
|---|---|---|
| 2024 | 1,852,765 | not counted |
| 2025 | 1,120,515 | 12,008 |
| 2026 to end of August | 990,742 | 11,285 |

The `live` table covers the nine English companies that publish a near real-time feed. Dŵr Cymru Welsh Water has no feed in this source. On 13 November 2026 the feeds listed 14,210 overflows.

### What an "event" means in each source

This matters, because the same word is used for different things.

**Environment Agency start/stop data (`events` table).** Each row is one EDM activation: the monitor recorded the start and the stop of a potential discharge. The Environment Agency says the data "has not been subject to any formal verification" by it. Activations are not the same as spills, for three reasons:

- Some companies split one long discharge into several rows, for example at midnight or at the end of each month (each month is a separate tab in the source).
- A few rows overlap or touch.
- A row can be very short. One 8 minute activation is a row like any other.

So counting rows overstates the number of discharges. Use the `site_summary` table for counts.

**Spills under the 12/24 method (`site_summary` table).** This is how the Environment Agency and the water companies count spills in the annual returns. In the government's words: "Start counting when the first discharge occurs. Any discharge (or discharges) in the first 12-hour block are counted as one spill. Any discharge (or discharges) in the next, and subsequent 24-hour blocks, are each counted as one additional spill per block. Continue counting until there's a 24-hour block with no discharge." This Actor first joins overlapping and touching activations, then applies that method.

How close is the recount to the official figures? For 2025, the Actor's 12/24 count matched the count in the Environment Agency's annual return exactly for 10,731 of 12,007 overflows (89%), and within one spill or 5% for 11,963 (99.6%). Total hours matched within one hour or 2% for 11,997. The remaining gaps come from data revised after the annual return and from companies' own handling of edge cases. Both figures are in every summary row, so you can see any gap for yourself.

**Live feeds (`live` table).** Each row is the current state of one overflow's monitor: `discharging` (the feed's code 1, "Start"), `not discharging` (0, "Stop") or `offline` (-1, the monitor is not reporting or is under maintenance). `statusSince` is when that state began. `latestEventStart` and `latestEventStop` describe the most recent discharge. The companies publish this data before manual checks. For example, Thames Water says its data "is not validated at the point when it is published", and United Utilities says it "may be subject to change after validation". Treat a live discharge as an alert to check, not a confirmed spill.

How often each live feed refreshes, as each company describes its own feed: Thames Water and Wessex Water every 5 minutes, Northumbrian Water and South West Water every 10 minutes, Anglian Water every 60 minutes, Yorkshire Water and Severn Trent Water hourly, United Utilities at least hourly. Southern Water's refresh interval was not stated in the description we read. Every row has `sourceLastUpdated` and `minutesSinceSourceUpdate` so you can check.

### Site details

Unless you turn `includeSiteDetails` off, each row is joined by Unique ID to the Environment Agency's latest annual return. That adds the site name from the EA consents database, the permit reference, the receiving water, any linked bathing water or shellfish water, the asset type (storm tank, overflow on the network, pumping station), the Water Framework Directive waterbody ID, latitude and longitude, and the official annual spill count, hours and monitor operating percentage. On 13 November 2026 that was the 2025 return, covering 14,302 overflows. For the 2026 data, 99.9% of activations matched an overflow in it.

`siteNameAsReported` keeps the name exactly as the company wrote it in the start/stop file.

### Search by place

Every overflow carries its **Westminster constituency** (2024 boundaries) and **council** (local authority district, December 2025), and you can search by either, or by distance from a postcode.

- `constituencies`: for example `Hastings and Rye`. Good for "spills in my constituency".
- `localAuthorities`: for example `Cornwall` or `Leeds`.
- `postcode` with `radiusKm`: overflows within a straight-line distance of a postcode. Rows gain `distanceKm`.

These work with all three tables. If a name matches nothing, the log suggests the closest real names.

How it is worked out: each overflow's location in the Environment Agency annual return (or in the company's live feed, for the few overflows not in the return) is tested against the Office for National Statistics boundary lines. About 8% of overflows sit just outside the lines because they discharge on tidal water, and take the nearest area within 3 km. Five overflows are further out and have no constituency or council. The table is made when the Actor is built, so an overflow first reported after that has no constituency until the next update.

### Input

| Field | Meaning | Default |
|---|---|---|
| `dataset` | `events`, `site_summary` or `live` | events |
| `companies` | Any of the ten companies above | all |
| `years` | `latest`, or years such as `2025` | latest |
| `siteIds` | EA Unique IDs such as `TWL00002` | none |
| `siteNameContains` | Text in the site name | none |
| `receivingWaterContains` | Text in the receiving water, such as `Wye` or `Thames` | none |
| `constituencies` | Westminster constituencies, such as `Hastings and Rye` | none |
| `localAuthorities` | Council areas, such as `Cornwall` | none |
| `postcode`, `radiusKm` | Overflows within this many kilometres of a postcode | none, 5 km |
| `bathingOrShellfishWatersOnly` | Only overflows linked to a bathing or shellfish water | off |
| `dateFrom`, `dateTo` | Activation start dates, YYYY-MM-DD | none |
| `minDurationHours` | Only activations at least this long (events table) | none |
| `liveStatus` | `all`, `discharging`, `offline`, `not_discharging` (live table) | all |
| `includeSiteDetails` | Join site details from the annual return | on |
| `sortBy` | Events: `newest`, `oldest`, `longest`. Summary: `most_hours`, `most_spills`, `longest`, `site` | newest, or most_hours for the summary |
| `maxResults` | Stop after this many rows | 1,000 |

Example: every discharge of 24 hours or more near a bathing or shellfish water since 2024, longest first.

```json
{ "years": ["2024", "2025", "latest"], "bathingOrShellfishWatersOnly": true, "minDurationHours": 24, "sortBy": "longest", "maxResults": 5000 }
```

Example: Thames Water overflows into the Thames in June 2026.

```json
{ "companies": ["Thames Water"], "receivingWaterContains": "thames", "dateFrom": "2026-06-01", "dateTo": "2026-06-30" }
```

Example: the overflows that spilled most in 2025, with the official figures alongside.

```json
{ "dataset": "site_summary", "years": ["2025"], "sortBy": "most_spills", "maxResults": 500 }
```

Example: which overflows are discharging now.

```json
{ "dataset": "live", "liveStatus": "discharging" }
```

### Output

A real event row from the 2026 file:

```json
{
  "company": "Thames Water",
  "siteId": "TWL00360",
  "siteName": "SAVOY STREET CSO",
  "eventStart": "2026-06-30T23:20:00Z",
  "eventStop": "2026-07-01T00:00:00Z",
  "durationHours": 0.67,
  "durationMinutes": 40.0,
  "receivingWater": "R.THAMES ( TIDAL )",
  "bathingWater": null,
  "shellfishWater": null,
  "permitReference": "CSAB.0532",
  "assetType": "SO on sewer network",
  "wfdWaterbodyId": "GB530603911402",
  "latitude": 51.509502,
  "longitude": -0.118592,
  "constituency": "Cities of London and Westminster",
  "localAuthority": "Westminster",
  "distanceKm": null,
  "dataNote": null,
  "sourcePeriod": "2026 year to August",
  "sourceFile": "Thames Water Detailed Data 2026.xlsx",
  "sourceSheet": "June"
}
```

That row stops at midnight on 30 June because the source puts each month on its own tab. This is the splitting described above.

A real summary row for 2025:

```json
{
  "company": "Thames Water",
  "siteId": "TWL00292",
  "siteName": "MARKYATE WASTEWATER TREATMENT WORKS",
  "activationCount": 33,
  "totalDurationHours": 3530.75,
  "spillCount1224": 155,
  "daysWithDischarge": 154,
  "longestDischargeHours": 3194.0,
  "longestDischargeStart": "2025-01-01T00:00:00Z",
  "receivingWater": "RIVER VER",
  "permitReference": "CSSC.8549",
  "assetType": "Storm tank at WwTW",
  "annualReturnYear": 2025,
  "annualReturnSpillCount": 155.0,
  "annualReturnEdmOperationalPercent": 97.4
}
```

A real live row:

```json
{
  "company": "Northumbrian Water",
  "siteId": "NWL01223",
  "siteName": "SOUTH CLEATLAM CSO",
  "status": "discharging",
  "statusSince": "2026-11-13T16:00:00Z",
  "hoursInCurrentStatus": 0.45,
  "latestEventStart": "2026-11-13T16:00:00Z",
  "latestEventStop": null,
  "receivingWater": "Newham Beck",
  "sourceLastUpdated": "2026-11-13T16:17:47Z",
  "minutesSinceSourceUpdate": 9
}
```

Times are in GMT/UTC, as in the sources. `dataNote` flags rows where the source has no stop time, a stop before the start, identical start and stop, or no standard Unique ID (for example Severn Trent's "TBC" rows). Those rows are kept so nothing is silently dropped. Summary rows count them in `activationsWithoutUsableTimes`.

### Price

Pay per result: USD 0.001 per row (USD 1 per 1,000), plus a start fee of USD 0.005 per GB of memory (USD 0.01 per run at the default 2 GB). The start fee covers the fixed cost of downloading and reading the source files, which every events or summary run does whatever the filters. A run over one year takes about 30 to 60 seconds, and over three years about two minutes.

### Honest limits

- Monitors are not on every overflow, and a monitor can be offline. The annual return's `annualReturnEdmOperationalPercent` shows how much of the year a monitor worked. A quiet overflow with a low percentage may simply not have been recorded.
- An EDM activation shows that an overflow operated, not how much sewage was released. There are no volumes in these sources.
- The EA start/stop data is published as companies supply it, without formal EA verification, and earlier files are sometimes revised. Re-run rather than relying on an old export.
- Each yearly file is cut at the year boundary, so a discharge running over New Year shows as a row starting at 00:00 on 1 January in the later file. Choose both years and use `site_summary` if that matters.
- The live feeds are unvalidated and can change after the companies check them.
- If a company changes its live feed address, the Actor looks the feed up again in the Stream catalogue. If a feed is down, the run continues with the others and says which one failed.

### Sources, licences and attribution

- Environment Agency, *Event Duration Monitoring - Storm Overflow - Start/Stop Detailed Data*, Open Government Licence v3.0. © Environment Agency copyright and/or database right 2026. All rights reserved. https://www.data.gov.uk/dataset/39ba1e24-69ca-4031-badf-e02649b74a7b
- Environment Agency, *Event Duration Monitoring - Storm Overflows - Annual Returns* (the public all-years layer), Open Government Licence v3.0. Contains OS data © Crown copyright and database right 2026.
- Anglian Water, Northumbrian Water, Severn Trent Water, South West Water, Southern Water, Thames Water, United Utilities, Wessex Water and Yorkshire Water, *Storm Overflow Activity*, published on Stream (streamwaterdata.co.uk), each licensed under CC BY 4.0.
- Office for National Statistics, Open Geography Portal: Westminster Parliamentary Constituencies (July 2024) and Local Authority Districts (December 2025) boundaries, Open Government Licence v3.0. Contains OS data © Crown copyright and database right 2026.
- Postcode locations: postcodes.io, which uses ONS and Ordnance Survey open data.
- 12/24 counting method: GOV.UK, *Water companies: environmental permits for storm overflows and emergency overflows*.

Every row carries `source` and `attribution` fields, so the credit travels with the data. This Actor is not affiliated with or endorsed by the Environment Agency, Stream, Water UK or any water company.

Built by Thomas Jacks with Claude Code.

# Actor input Schema

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

Events: one row per monitor activation (start, stop, duration). Site summary: one row per overflow with total hours, longest discharge and a 12/24 spill count. Live: the current status of every overflow from the water companies' near real-time feeds.

## `companies` (type: `array`):

Leave empty for all ten. Dŵr Cymru Welsh Water is in the events and summary tables only (its English overflows).

## `years` (type: `array`):

Calendar years of EA data, for example 2025, or 'latest' for the newest file (on 12 November 2026: 2026 year to August). Files exist from 2024.

## `siteIds` (type: `array`):

The EA's Unique IDs, for example TWL00002 or SWS00066. The first three letters identify the company.

## `siteNameContains` (type: `string`):

For example 'Mogden' or 'CSO'.

## `postcode` (type: `string`):

Only overflows within a distance of this postcode, for example LS1 4AP. Rows gain a distanceKm field.

## `radiusKm` (type: `integer`):

Used with the postcode. Measured in a straight line to the overflow.

## `constituencies` (type: `array`):

Only overflows in these Westminster constituencies (2024 boundaries), for example Hastings and Rye.

## `localAuthorities` (type: `array`):

Only overflows in these council areas (local authority districts), for example Cornwall or Leeds.

## `receivingWaterContains` (type: `string`):

The river, stream, estuary or sea the overflow discharges into, for example 'Thames' or 'Wye'.

## `bathingOrShellfishWatersOnly` (type: `boolean`):

Keep only overflows that the annual return links to a designated bathing water or shellfish water.

## `dateFrom` (type: `string`):

Keep activations that start on or after this date, as YYYY-MM-DD.

## `dateTo` (type: `string`):

Keep activations that start on or before this date, as YYYY-MM-DD.

## `minDurationHours` (type: `integer`):

Keep only activations at least this long.

## `liveStatus` (type: `string`):

Which overflows to return from the live feeds.

## `includeSiteDetails` (type: `boolean`):

Join site name, permit, receiving water, bathing and shellfish waters, location and the official annual return figures from the EA annual return. Adds about 15 seconds.

## `sortBy` (type: `string`):

Events: newest, oldest or longest. Summary: most hours, most spills, longest single discharge or site ID. Live rows always list discharging overflows first.

## `maxResults` (type: `integer`):

Stop after this many rows. The limit is applied after sorting.

## Actor input object example

```json
{
  "dataset": "events",
  "companies": [],
  "years": [
    "2025"
  ],
  "siteIds": [],
  "siteNameContains": "",
  "postcode": "",
  "radiusKm": 5,
  "constituencies": [],
  "localAuthorities": [],
  "receivingWaterContains": "",
  "bathingOrShellfishWatersOnly": false,
  "dateFrom": "",
  "dateTo": "",
  "liveStatus": "all",
  "includeSiteDetails": true,
  "maxResults": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "years": [
        "2025"
    ],
    "maxResults": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("thomasjacks/storm-overflow-events-england").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 = {
    "years": ["2025"],
    "maxResults": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("thomasjacks/storm-overflow-events-england").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 '{
  "years": [
    "2025"
  ],
  "maxResults": 1000
}' |
apify call thomasjacks/storm-overflow-events-england --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thomasjacks/storm-overflow-events-england"
        }
    }
}
```

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/XPgQK2r9JKfTbKd7O/builds/vTTJYgKBc0tuOdokk/openapi.json
