# Tap Water Quality Data England & Wales: Lead, Nitrate, E. coli (`thomasjacks/tap-water-quality-england-wales`) Actor

Drinking water test results from 15 water companies in one table: lead, nitrate, E. coli, iron, pesticides and more, by postcode, council or company. Each result is compared with the legal standard. Open data from Stream.

- **URL**: https://apify.com/thomasjacks/tap-water-quality-england-wales.md
- **Developed by:** [Thomas Jacks](https://apify.com/thomasjacks) (community)
- **Categories:** News, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% 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

## Tap Water Quality Data England & Wales: Lead, Nitrate, E. coli

Get the laboratory results that water companies publish for drinking water at customers' taps, from 15 companies in England and Wales, in one consistent table. Filter by postcode, council, company, parameter and year. Each result is compared with the legal standard where one exists.

- About **7.7 million test results**, 2016 to 2026, from more than 50 open datasets on [Stream](https://www.streamwaterdata.co.uk/), the water industry's open data site.
- **One format.** The companies publish with different column names, date formats, unit spellings and parameter names. This Actor reads them all and returns the same fields for every company.
- **Checked against the legal standard.** 48 standards and indicator values from the Water Supply (Water Quality) Regulations, with a flag on each result above them.
- **Place names.** Results are published by neighbourhood code (LSOA). The Actor adds the council and region, and lets you search by postcode or council name.
- No login, no API key, no proxy. Public open data only.

### What you can do with it

| You are | Example |
| --- | --- |
| Journalist or researcher | Every result above the legal standard in a year, by company and council |
| Property, conveyancing or relocation service | Lead, hardness and nitrate results for the neighbourhood around a postcode |
| Environmental consultant or campaigner | Pesticide results, nitrate trends or iron and manganese for a council area |
| Water company analyst or supplier | Compare companies on iron, manganese, coliforms or lead, year by year |
| Data team | A clean yearly extract without writing 15 different parsers |

### Input

Left as it is, a run returns the 1,000 lead results from the last complete year that are highest against the legal limit.

| Field | What it does |
| --- | --- |
| `output` | `results` (one row per test result) or `summary` (one row per company, council, parameter and year) |
| `parameters` | What was measured: `lead`, `nitrate`, `e. coli`, `iron`, `pH`, `hardness`, `pesticides`, `pfas` and so on. Regulated parameters are matched by Drinking Water Inspectorate (DWI) code, other words by name. A DWI code such as `C009` also works. Empty means every parameter |
| `years` | Calendar years such as `2024`, `latest` (the last complete year) or `all` |
| `postcodes` | Results from the neighbourhood around each postcode, for example `LS1 4AP` |
| `localAuthorities` | Results from a council area, for example `Birmingham`, `Cornwall` or `Leeds` |
| `lsoaCodes` | ONS neighbourhood codes such as `E01033620` (2011 or 2021 codes) |
| `companies` | One or more of the 15 companies. Empty means all |
| `aboveStandardOnly` | Keep only results above the standard or indicator value |
| `detectedOnly` | Leave out results reported as "less than" the detection limit, and zeros |
| `dateFrom`, `dateTo` | Sample date range, as `YYYY-MM-DD` |
| `sortBy` | `highest` (against the standard), `newest`, `oldest` or `none` (fastest, for large exports) |
| `maxResults` | Row limit. Default 1,000 |
| `datasetTitleContains` | Advanced: read only the Stream datasets whose title contains this text |

#### Example: everything above a legal standard in 2024

```json
{
  "parameters": [],
  "years": ["2024"],
  "aboveStandardOnly": true,
  "maxResults": 5000
}
```

#### Example: lead by council, all years

```json
{
  "output": "summary",
  "parameters": ["lead"],
  "years": ["all"],
  "maxResults": 20000
}
```

#### Example: all results near a postcode

```json
{
  "parameters": [],
  "postcodes": ["LS1 4AP"],
  "years": ["all"],
  "sortBy": "newest",
  "maxResults": 20000
}
```

### Output

One row per laboratory result:

```json
{
  "company": "Severn Trent Water",
  "sampleDate": "2024-10-02",
  "sampleTime": null,
  "parameter": "Lead",
  "operator": null,
  "result": 609.5,
  "resultText": null,
  "units": "µg/l",
  "aboveStandard": true,
  "percentOfStandard": 6095.0,
  "standardLimit": 10,
  "standardMinimum": null,
  "standardUnits": "µg/l",
  "standardType": "Standard (Schedule 1)",
  "standardNote": null,
  "localAuthority": "Nuneaton and Bedworth",
  "region": "West Midlands",
  "lsoaCode": "E01031098",
  "lsoaName": "Nuneaton and Bedworth 015D",
  "determinandAsReported": "Lead",
  "dwiCode": "B007B",
  "sampleId": "ZWA26E0103109820241002",
  "sourceDataset": "Severn Trent Water Domestic Tap Water Quality 2024",
  "sourceUrl": "https://www.streamwaterdata.co.uk/datasets/35e00a238a384d8cb51f1a53e000a396",
  "licence": "CC BY 4.0 (stated on the dataset)",
  "attribution": "Severn Trent Water, \"Severn Trent Water Domestic Tap Water Quality 2024\", published on Stream (streamwaterdata.co.uk), licensed under CC BY 4.0",
  "scrapedAt": "2026-11-16T16:12:29Z"
}
```

| Field | Meaning |
| --- | --- |
| `parameter` | A consistent name for regulated parameters (for example `Lead`). For others, the company's own name |
| `determinandAsReported`, `dwiCode` | The name and DWI code exactly as the company published them |
| `operator` | `<` when the result was below the laboratory's detection limit, `>` when above its range |
| `result`, `units` | The number and units as published. Unit spellings are tidied (for example `ug/l` becomes `µg/l`) but values are never converted |
| `resultText` | The published text when the result is not a number |
| `aboveStandard` | `true`, `false`, or `null` when the result could not be compared |
| `percentOfStandard` | The result as a percentage of the standard |
| `standardNote` | Why a result was not compared, for example unrecognised units |
| `standardType` | `Standard (Schedule 1)` for the legal standards, `Indicator (Schedule 2)` for indicator parameters |
| `lsoaCode`, `lsoaName`, `localAuthority`, `region` | Where the sample was taken, to neighbourhood level. Council and region come from ONS lookups |

In `summary` mode each row has `company`, `localAuthority`, `region`, `parameter`, `year`, `samples`, `detected`, `assessedAgainstStandard`, `samplesAboveStandard`, `percentAboveStandard`, `maxResult`, `maxResultDate`, `maxResultLsoaCode`, `medianResult`, `units` and `standardLimit`.

### Coverage

Counted on 16 November 2026. Companies add data at different times, usually a year at a time and some months after the year ends.

| Company | Years | Results |
| --- | --- | --- |
| Affinity Water | 2021 to 2025 | 443,773 (plus 129,515 PFAS results) |
| Anglian Water | 2022 to 2024 | 386,807 |
| Cambridge Water | 2016 to 2024 | 65,715 |
| Dŵr Cymru Welsh Water | 2023 to 2024 | 166,899 |
| Hafren Dyfrdwy | 2018 to 2025 | 61,408 |
| Northumbrian Water | 2022 to 2025 | 469,398 |
| Portsmouth Water | 2016 to 2024 | 383,824 |
| SES Water | 2022 to 2024 | 51,254 |
| Severn Trent Water | 2016 to 2025 | 1,794,140 |
| South Staffs Water | 2016 to 2024 | 290,756 |
| South West Water | 2022 to 2025 | 236,494 |
| Southern Water | 2016 to 2026 | 1,275,868 |
| United Utilities | 2022 to 2024 | 568,963 |
| Wessex Water | 2016 to 2025 | 475,161 |
| Yorkshire Water | 2022 to 2026 | 913,848 |

**Not covered:** Thames Water and South East Water have no tap water datasets on Stream, and nor do some smaller companies. Scotland and Northern Ireland are not included.

The Actor checks Stream's catalogue for new datasets on every run, so new years and new companies are picked up when they are published. If a dataset cannot be reached during a run, the log says which one, so you know the answer is incomplete.

### How the comparison with legal standards works

- The standards are the "prescribed concentrations or values" in Schedule 1, and the indicator values in Schedule 2, of the Water Supply (Water Quality) Regulations 2016 (England) and the Water Supply (Water Quality) Regulations (Wales) 2018, read from legislation.gov.uk. The numbers are the same in both.
- Results are matched to a standard by DWI code first. The name is used only where a company publishes no code.
- A result is compared only when its units are recognised and agree with the standard. Results in mg/l are compared with standards in µg/l and the other way round. Nothing else is converted.
- A result reported as "less than" a value is counted as below the standard when that value is at or below the standard. Otherwise it is not compared.
- Where the published units cannot be right for the parameter (for example pH in µg/l), the result is not compared and `standardNote` says why.
- Individual pesticides are compared with the 0.10 µg/l standard, and aldrin, dieldrin, heptachlor and heptachlor epoxide with 0.030 µg/l.
- pH is checked against both ends of the range, 6.5 to 9.5.
- There is no standard for PFAS in the Regulations, so PFAS rows are not flagged.

**Checked against a full year.** For 2024 the Actor read 1,341,808 results from all 15 companies. It compared 891,909 of them with a standard and found 461 above (0.05%). The most common were coliform bacteria (248), iron (84), nickel (36), lead (27) and E. coli (16).

### Things to know before you rely on it

- **A result above a standard is not a finding that the company broke the law.** A single sample can be affected by the customer's own pipes and taps, and the Regulations set out how results are investigated. The Drinking Water Inspectorate is the regulator.
- **Results are as published.** Some look like data entry mistakes (for example one aluminium result of 74,300 µg/l). The Actor does not correct or remove them.
- **Location is a neighbourhood, not an address.** Companies publish the LSOA (about 1,500 people) to protect privacy. A postcode search returns results for the LSOA that the postcode is in.
- **Southern Water publishes two overlapping series**: yearly files of regulatory samples with units and sample IDs (2021 to 2025), and a larger series that also holds operational samples, mostly without units (2016 to 2026). The Actor reads the yearly files where they exist and the larger series for other years, so each result appears once. Results without units are not compared with a standard. Use `datasetTitleContains` to read a particular series.
- **PFAS results are from one company.** On 16 November 2026 only Affinity Water had PFAS results on Stream (2021 to 2025).
- **Under 0.1% of rows have no council**, because the company left the neighbourhood code blank.
- Dates are published in several formats. Text dates are read day first or month first according to each dataset's own pattern, and a date that cannot be read is left empty.
- This is not a substitute for a laboratory test of your own tap.

### Price

Pay per result: **$1.00 per 1,000 rows**, plus a start fee of half a cent per run. A summary row costs the same as a result row. The default run costs about $1.

Set a maximum charge on the run if you want a hard cap. The Actor stops reading when the cap is reached.

### Sources and licences

- **Test results:** the water companies listed above, published on [Stream](https://www.streamwaterdata.co.uk/) under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Stream's terms make CC BY 4.0 the licence for a dataset unless it states another. Every row carries the dataset title, its Stream page, the licence and an attribution line.
- **Legal standards:** legislation.gov.uk, Open Government Licence v3.0.
- **Council and region lookups:** Office for National Statistics, Open Geography Portal, Open Government Licence v3.0. Contains OS data © Crown copyright and database right 2026.
- **Postcode lookup:** [postcodes.io](https://postcodes.io/), which uses ONS and Ordnance Survey open data.

If you publish anything made with this data, credit the water company and Stream as the licence asks.

This Actor is independent. It is not endorsed by Stream, the water companies, the Drinking Water Inspectorate or Ofwat.

### FAQ

**How fresh is the data?** As fresh as each company's latest upload. Most publish a calendar year at a time. On 16 November 2026, eight companies had 2025 results and two had 2026 results.

**Why is my water company missing?** It has not published tap water results on Stream. Thames Water and South East Water are the largest gaps.

**Can I get every result?** Yes. Set `parameters` to empty, `years` to `all`, `sortBy` to `none` and a high `maxResults`. That is millions of rows, so filter first if you can.

**What is a DWI code?** The Drinking Water Inspectorate's code for a parameter, for example `B007B` for lead and `C002` for E. coli. Companies' names for the same parameter differ, but most use the same codes.

**Is hardness included?** Yes, where companies publish it. There is no legal standard for hardness, so it is not flagged.

### Feedback

Found a problem or want another field? Open an issue on the Actor's Issues tab.

# Actor input Schema

## `output` (type: `string`):

Results: one row per laboratory result. Summary: one row per company, council, parameter and year, with the number of samples, how many were above the standard, the highest and the median.

## `parameters` (type: `array`):

What was measured, for example lead, nitrate, e. coli, iron, pH, hardness, pesticides or pfas (PFAS results are from Affinity Water only so far). Regulated parameters are matched by their Drinking Water Inspectorate code, other words by name. A DWI code such as C009 also works. Leave empty for every parameter.

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

Calendar years such as 2024, 'latest' for the last complete year, or 'all'. Most companies publish a year at a time, some months after it ends. Data starts in 2016 for some companies and 2021 or 2022 for most.

## `postcodes` (type: `array`):

Results from the neighbourhood (LSOA, about 1,500 people) around each postcode, for example LS1 4AP. Samples are located to the neighbourhood, not the address.

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

Results from a council area, for example Birmingham, Cornwall or Leeds. Use the current council name.

## `lsoaCodes` (type: `array`):

ONS neighbourhood codes such as E01033620 (2011 or 2021 codes).

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

Leave empty for all companies with data. Thames Water and a few smaller companies do not publish tap water results on Stream.

## `aboveStandardOnly` (type: `boolean`):

Keep only results above the standard or indicator value in the Water Supply (Water Quality) Regulations. With no parameter chosen this checks every regulated parameter.

## `detectedOnly` (type: `boolean`):

Leave out results reported as 'less than' the detection limit, and zeros. Useful for PFAS and pesticides.

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

Keep samples taken on or after this date, as YYYY-MM-DD. If no years are given, the dates decide which years are read.

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

Keep samples taken on or before this date, as YYYY-MM-DD.

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

Highest: results above the standard first, then by how close they are to it. None is fastest and is the choice for large exports: rows are saved as they arrive and the run stops at the row limit.

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

Stop after this many rows. With a sort order the limit is applied after sorting (up to 200,000 rows).

## `datasetTitleContains` (type: `array`):

Read only Stream datasets whose title contains this text, for example 'Southern Water Drinking Water Quality 2022_2026'. This switches off the rule that reads only one of two overlapping datasets.

## Actor input object example

```json
{
  "output": "results",
  "parameters": [
    "lead"
  ],
  "years": [
    "latest"
  ],
  "postcodes": [],
  "localAuthorities": [],
  "lsoaCodes": [],
  "companies": [],
  "aboveStandardOnly": false,
  "detectedOnly": false,
  "dateFrom": "",
  "dateTo": "",
  "sortBy": "highest",
  "maxResults": 1000,
  "datasetTitleContains": []
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("thomasjacks/tap-water-quality-england-wales").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 = {
    "parameters": ["lead"],
    "years": ["latest"],
    "maxResults": 1000,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thomasjacks/tap-water-quality-england-wales"
        }
    }
}
```

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/Vj3ozIOy0bMvJnafn/builds/9JbW8t1ymhRiIUHNR/openapi.json
