Live API

UK Water Quality API

Postcode-level water quality data for any UK address. Single endpoint. Under 200ms. Free to start.

Example Request & Response
# Request
GET https://mytapwater-api.blumsomlimited.workers.dev/lookup?postcode=SW1A1AA
X-API-Key: mtw_live_demo00000000000000000000000000

# Response
{
  "postcode":  "SW1A 1AA",
  "zone":     { "name": "Lambeth South", "water_company": "Thames Water" },
  "quality":  { "score": 62, "score_label": "Fair" },
  "parameters": {
    "hardness":   { "value": 320, "classification": "Very Hard" },
    "nitrate":    { "value": 18.4, "status": "pass" },
    "pfas_notice": true
  },
  "compliance": { "active_notices": 8, "overall_compliance": "improvement_required" }
}

Everything you need about UK water quality

Built on official DWI annual compliance data and covering every water company in England, Wales and Scotland.

21
UK water companies
1,327
Supply zones
1.8M
Postcodes mapped
30+
Parameters returned
398
DWI notices tracked
<200ms
Response time

Built for real data needs

From property platforms to insurance underwriting — water quality data that fits your product.

🏠

PropTech & Property Search

Add water quality data to property listings and area guides. Hardness classification, PFAS status and supply zone for every UK address.

📋

Conveyancing & Legal

Include water quality in property search reports. PFAS notices, lead levels, and DWI enforcement status as structured data.

🛡️

Insurance & Risk

Price hard water risk and PFAS exposure into home insurance models. Zone-level compliance and contaminant data via a single endpoint.

💧

Home & Health Apps

Personalise filter recommendations and health guidance by location. Full parameter set with legal limits, trend data, and actionable scoring.

Start free. Scale when you need to.

No contracts, no credit card required for the free tier. Paid tiers available immediately.

Free
£0 forever
Testing and small projects
  • 100 calls/month
  • Full API access
  • All 30+ parameters
  • PFAS & DWI notices
  • Email support
Get Free Key
Hobby
£29 /month
Personal and side projects
  • 1,000 calls/month
  • Full API access
  • All 30+ parameters
  • PFAS & DWI notices
  • Email support
Get Hobby — £29/month

Your API key will be emailed within 24 hours of payment.

Enterprise
Custom
High volume & data licensing
  • High volume with negotiated overage pricing
  • SLA guarantee
  • Dedicated support
  • Bulk data license
  • Custom integration
Contact Us

API Reference

Endpoint

GET https://mytapwater-api.blumsomlimited.workers.dev/lookup?postcode={postcode}

Authentication

Pass your API key using either method:

Header (recommended)
X-API-Key: mtw_live_your_key_here
Query Parameter
GET /lookup?postcode=SW1A1AA&api_key=mtw_live_your_key_here

Parameters

ParameterTypeRequiredDescription
postcodestringYesUK postcode, with or without space. Case insensitive.
api_keystringCond.API key — required if not passing via X-API-Key header.

Response Fields

FieldTypeDescription
postcodestringNormalised postcode with space
zone.namestringWater supply zone name
zone.water_companystringWater company name
quality.scoreintegerOverall quality score 0–100
quality.score_labelstringExcellent / Good / Fair / Poor
parameters.hardness.valuenumberHardness in mg/l CaCO₃
parameters.hardness.classificationstringSoft / Moderately Hard / Hard / Very Hard
parameters.nitrate.valuenumberNitrate mean in mg/l (legal limit: 50)
parameters.lead_mean.valuenumberLead mean in µg/l (legal limit: 10)
parameters.chlorine_mean.valuenumberChlorine mean in mg/l
parameters.fluoride.valuenumberFluoride mean in mg/l
parameters.ph.valuenumberpH mean
compliance.pfas_noticebooleanActive DWI PFAS enforcement notice
compliance.active_noticesintegerTotal active DWI improvement notices
recommendations.filter_typestringRecommended filter type
meta.data_yearintegerYear of underlying compliance data

Error Codes

CodeMeaning
200Success
401Invalid or missing API key
404Postcode not found in any supply zone
429Monthly rate limit exceeded
500Server error

Code Examples

JavaScript Python PHP
const response = await fetch(
  'https://mytapwater-api.blumsomlimited.workers.dev/lookup?postcode=SW1A1AA',
  { headers: { 'X-API-Key': 'your_api_key_here' } }
);
const data = await response.json();
console.log(data.parameters.hardness.classification); // "Very Hard"
console.log(data.compliance.pfas_notice);               // true/false
console.log(data.quality.score);                        // 0–100
import requests

response = requests.get(
    'https://mytapwater-api.blumsomlimited.workers.dev/lookup',
    params={'postcode': 'SW1A1AA'},
    headers={'X-API-Key': 'your_api_key_here'}
)
data = response.json()
print(data['parameters']['hardness']['classification'])  # Very Hard
print(data['compliance']['pfas_notice'])                   # True/False
$response = file_get_contents(
    'https://mytapwater-api.blumsomlimited.workers.dev/lookup?postcode=SW1A1AA',
    false,
    stream_context_create(['http' => ['header' => 'X-API-Key: your_api_key_here']])
);
$data = json_decode($response, true);
echo $data['parameters']['hardness']['classification']; // Very Hard
Demo Key — try it now
mtw_live_demo00000000000000000000000000
This key is public. 100 calls/month shared across all demo users. Get your own free key →

Get Your Free API Key

Your key will be emailed instantly. No credit card required.

Your key will be emailed instantly. No credit card required.

Common questions

Is the API really free?
Yes. The free tier gives 100 calls per month with no credit card required. Perfect for testing and small projects. For higher volumes, see the Growth and Enterprise tiers above.
What data does the API return?
Hardness, nitrates, lead, chlorine, fluoride, pH, THMs, PFAS enforcement status, DWI compliance notices, overall quality score, and personalised filter recommendations — 30+ parameters per postcode, covering all 21 UK water companies.
How accurate is the data?
Data comes directly from official annual compliance reports submitted to the Drinking Water Inspectorate (DWI) by all 21 UK water companies, and from the DWI's public enforcement register. Updated annually when new reports are published.
Can I use this for commercial projects?
Yes. The API is available for commercial use on paid tiers. Email hello@mytapwater.co.uk for enterprise licensing and bulk data agreements.
How fast is the API?
Average response time is under 200ms. The API runs on Cloudflare Workers — a global edge network with data centres in 300+ cities. Requests are routed to the nearest edge node automatically.