# Sewage spills in a constituency: 2025 by overflow

**Use case:** 

Every storm overflow in one Westminster constituency with its 2025 spill count, total hours and longest discharge, worked out from the Environment Agency's start and stop data with the 12/24 method. The example uses Hastings and Rye. Change the constituency to your own, or use a council or a postcode.

## Input

```json
{
  "dataset": "site_summary",
  "companies": [],
  "years": [
    "2025"
  ],
  "siteIds": [],
  "siteNameContains": "",
  "postcode": "",
  "radiusKm": 5,
  "constituencies": [
    "Hastings and Rye"
  ],
  "localAuthorities": [],
  "receivingWaterContains": "",
  "bathingOrShellfishWatersOnly": false,
  "dateFrom": "",
  "dateTo": "",
  "liveStatus": "all",
  "includeSiteDetails": true,
  "sortBy": "most_spills",
  "maxResults": 5000
}
```

## Output

```json
{
  "company": {
    "label": "Company"
  },
  "siteId": {
    "label": "Unique ID"
  },
  "siteName": {
    "label": "Site"
  },
  "receivingWater": {
    "label": "Receiving water"
  },
  "spillCount1224": {
    "label": "12/24 spills",
    "format": "number"
  },
  "totalDurationHours": {
    "label": "Hours",
    "format": "number"
  },
  "longestDischargeHours": {
    "label": "Longest (h)",
    "format": "number"
  },
  "daysWithDischarge": {
    "label": "Days with discharge",
    "format": "number"
  },
  "activationCount": {
    "label": "Activations",
    "format": "number"
  },
  "annualReturnSpillCount": {
    "label": "Annual return spills",
    "format": "number"
  },
  "annualReturnYear": {
    "label": "Return year"
  },
  "constituency": {
    "label": "Constituency"
  },
  "localAuthority": {
    "label": "Council"
  },
  "bathingWater": {
    "label": "Bathing water"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Storm Overflow Sewage Spill Events England: EDM Data Actor is ready to run with the inputs already set for "Sewage spills in a constituency: 2025 by overflow". [Sign up or log in](https://console.apify.com/create-task-from-example/8Kf2q3NNg0n8cdLuX) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Sewage spills in a constituency: 2025 by overflow" task

The Storm Overflow Sewage Spill Events England: EDM Data Actor will start running based on the input automatically. You can also change all the input fields, like table, water companies, and more, to match your specific use case.

### 3. Receive the "Sewage spills in a constituency: 2025 by overflow" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as company, unique id, site, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Sewage spills in a constituency: 2025 by overflow" task via API](https://apify.com/thomasjacks/storm-overflow-events-england.md).

## FAQ

### How are sewage spills matched to a constituency?

The constituency task places each overflow's location from the Environment Agency annual return inside the 2024 Westminster constituency boundaries published by the Office for National Statistics.

### Can I see sewage spills for my council instead of a constituency?

Yes. Save the constituency task, clear the constituency and enter a council name such as Cornwall, or a postcode and a distance.

### Why does the constituency spill count differ from the official figure?

The constituency task counts spills itself from the raw start and stop times and shows the official annual return figure beside it. In a check against the 2025 annual return they matched exactly for about nine in ten overflows.

### Does the constituency list show spills happening now?

No, it covers 2025. Switch the constituency task to the live table to see which overflows are discharging now.

## About this Actor

This example demonstrates how to use [Storm Overflow Sewage Spill Events England: EDM Data](https://apify.com/thomasjacks/storm-overflow-events-england.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/thomasjacks/storm-overflow-events-england.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/thomasjacks/storm-overflow-events-england.md

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`).
