# Lead in tap water by council, England and Wales

**Use case:** 

One row per water company, council and year: the number of lead tests at customers' taps, how many were above the 10 µg/l legal standard, the highest result and the median. Built from the results that 15 water companies publish as open data, from 2016 where available.

## Input

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

## Output

```json
{
  "company": {
    "label": "Company"
  },
  "localAuthority": {
    "label": "Council"
  },
  "parameter": {
    "label": "Parameter"
  },
  "year": {
    "label": "Year",
    "format": "number"
  },
  "samples": {
    "label": "Samples",
    "format": "number"
  },
  "samplesAboveStandard": {
    "label": "Above standard",
    "format": "number"
  },
  "percentAboveStandard": {
    "label": "% above",
    "format": "number"
  },
  "maxResult": {
    "label": "Highest",
    "format": "number"
  },
  "medianResult": {
    "label": "Median",
    "format": "number"
  },
  "units": {
    "label": "Units"
  },
  "standardLimit": {
    "label": "Standard",
    "format": "number"
  },
  "maxResultDate": {
    "label": "Date of highest"
  },
  "region": {
    "label": "Region"
  }
}
```

## How it works

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

The Tap Water Quality Data England & Wales: Lead, Nitrate, E. coli Actor is ready to run with the inputs already set for "Lead in tap water by council, England and Wales". [Sign up or log in](https://console.apify.com/create-task-from-example/cZKReaun4Lb8He1lv) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Lead in tap water by council, England and Wales" task

The Tap Water Quality Data England & Wales: Lead, Nitrate, E. coli Actor will start running based on the input automatically. You can also change all the input fields, like output, parameters, and more, to match your specific use case.

### 3. Receive the "Lead in tap water by council, England and Wales" 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, council, parameter, 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 "Lead in tap water by council, England and Wales" task via API](https://apify.com/thomasjacks/tap-water-quality-england-wales.md).

## FAQ

### Where does the lead in tap water data come from?

The lead task reads the tap water results that water companies publish on Stream, the water industry's open data site, and counts them by council and year.

### What is the legal limit for lead in tap water?

10 micrograms per litre, under the Water Supply (Water Quality) Regulations. The lead task counts results above that value.

### Why does my council have few lead tests?

Companies test a sample of properties each year, so a council can have only a handful of lead results. The lead task shows the number of samples on every row.

### Can I get the individual lead results?

Yes. Save the lead task and switch the output from summary to results.

## About this Actor

This example demonstrates how to use [Tap Water Quality Data England & Wales: Lead, Nitrate, E. coli](https://apify.com/thomasjacks/tap-water-quality-england-wales.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/thomasjacks/tap-water-quality-england-wales.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/tap-water-quality-england-wales.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`).
