The data feed
For apps, charities and groups that already reach swimmers. SwimSignal's forecasts, the storm overflows behind them, their spill history and the forecast's scored record are files you can read. This page says what is in them, how often they change, what you may reuse and the credit to show.
What you get
The feed is the set of files the site itself is built from. They are public today, in the site's data/ folder, served by GitHub Pages. Another website can read them: they are sent with Access-Control-Allow-Origin: *. The data files page lists every field. Below, each group of files with one record from it, taken from this build. In the examples, lists are cut to their first entry and some fields are left out.
Each spot's forecast
spots.json holds every listed spot. For each: where it is, and its five days, each with its sewage spill risk (a 0–100 score for sewage from upstream reaching the spot, stored as 0 to 1; it is a score, not a probability) and its pollution risk level. Where a spot has one, a day also has the E. coli estimate: the chance a sample would show over 900 E. coli per 100 ml. It has been tested from May to September only, which in_validated_season says. now says how many overflows upstream are discharging at the last poll, how many report live, and how many cannot be seen. spots-lite.json is the same without each spot's overflows, which are in spot/<id>.json.
Example: spots.json
{
"generated_at": "2026-11-29T23:31:58.619053+00:00",
"n": 141,
"spots": [
{
"id": "bw-uke4100-08901",
"name": "Wharfe at Cromwheel, Ilkley",
"kind": "river",
"river": "River Wharfe",
"source": "designated",
"lat": 53.93189,
"lon": -1.81618,
"now": {
"risk": 0.784,
"label": "very high",
"discharging_upstream": 0,
"recent_upstream": 7,
"monitored_upstream": 13,
"no_feed_upstream": 0
},
"days": [
{
"date": "2026-11-29",
"risk": 0.615,
"label": "high",
"expected_spilling_overflows": 1.0,
"p_ecoli_gt900": 0.896,
"in_validated_season": false,
"rain_48h_mm": 19.3,
"data_status": "ok"
}
],
"upstream_summary": {
"overflows": 16,
"with_live_feed": 13,
"without_live_feed": 3,
"companies": ["Yorkshire Water"]
},
"contributors": [
{
"site_id": "YWS00176",
"company": "Yorkshire Water",
"site_name": "ILKLEY MIDDLETON/CSO",
"distance_km": 0.0,
"travel_h": 0.0,
"weight": 0.998,
"status": 0,
"data_state": "live",
"feed_updated_at": "2026-11-29T23:07:36+00:00",
"p_spill_days": [0.021, 0.045, 0.073, 0.129, 0.024]
}
]
}
]
}
alerts.json is the smallest file: each spot's level, headline and what to do, worded as the site words them, and, where the level changes from day to day, each day's level, as places in its words list (left out of the example). The same are in Atom feeds, for every spot, each area and each spot on its own.
Example: alerts.json
{
"generated_at": "2026-11-29T23:31:58.619053+00:00",
"spots": {
"bw-uke4100-08901": {
"name": "Wharfe at Cromwheel, Ilkley",
"rank": 3,
"level": "very high",
"headline": "Very high risk right now: recent sewage spills",
"action": "Avoid swimming here right now: choose a lower day or spot.",
"clears": "The spills upstream should have passed and died off by Tuesday 20:42.",
"url": "https://swimsignal.co.uk/spot/bw-uke4100-08901/",
"best": {
"date": "2026-11-30",
"level": "high",
"words": "at least high risk every day"
}
}
}
}
The overflows upstream, with live status
upstream/<id>.json lists every monitored storm overflow within 60 km upstream of a spot along the rivers: the company's name and id for it, how far upstream and how long its water takes to arrive, its model weight (a modelled relative contribution, 0 to 1; not a measured concentration and not a chance of contamination), its long-term average spills a year, and what its company's live feed said at the build's poll. overflows.geojson has every overflow on the map, with the same status.
Example: upstream/<id>.json
{
"id": "bw-uke4100-08901",
"generated_at": "2026-11-29T23:31:58.619053+00:00",
"overflows": [
{
"site_id": "YWS00176",
"site_name": "ILKLEY MIDDLETON/CSO",
"company": "Yorkshire Water",
"receiving_watercourse": "River Wharfe",
"distance_km": 0.0,
"lake_distance_km": 0.0,
"travel_h": 0.0,
"weight": 0.998,
"lta_spills": 36.0,
"spill_hours": 214.5,
"has_live": true,
"lat": 53.931779,
"lon": -1.816162,
"status": 0,
"data_state": "live",
"feed_updated_at": "2026-11-29T23:07:36+00:00",
"latest_event_end": "2026-11-28T14:42:34+00:00"
}
]
}
Example: overflows.geojson
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [-1.816162, 53.931779]
},
"properties": {
"site_id": "YWS00176",
"company": "Yorkshire Water",
"site_name": "ILKLEY MIDDLETON/CSO",
"receiving_watercourse": "River Wharfe",
"status": 0,
"has_live": true,
"data_state": "live",
"latest_event_start": "2026-11-28T11:59:32+00:00",
"latest_event_end": "2026-11-28T14:42:34+00:00",
"lta_spills": 36.0
}
}
]
}
A status is 1 discharging, 0 not discharging, −1 monitor offline, −2 no live feed (all of Dŵr Cymru Welsh Water's overflows: SwimSignal reuses none of its own data, only the Environment Agency's annual returns) or −3 unknown. data_state says whether it is current: a status from a feed that has not updated within 6 hours is stale.
Any point on a river or lake
On the map, a tap anywhere on a river or lake in England gets five days too. There is no file for each point, and no hosted service to ask. The page works out the point's forecast in the browser, from the files in anypoint/: the river network, the overflows that can reach each stretch, and each overflow's chance of spilling on each day. The script that does it, anypoint.js, is open source under the MIT licence, so an app could run it too; it has not been packaged for that. A point has no E. coli estimate, no river gauge and no bathing-water sample. Wales, Scotland and the island of Ireland are not covered.
The files are columns: one position for each overflow, in the order of overflow_ids.json. The example puts together one overflow's values from two of them.
Example: anypoint/
{
"overflow_ids.json": {
"ids_version": "62c8d9e37d17",
"ids": "YWS00176",
"name": "ILKLEY MIDDLETON/CSO",
"lat": 53.9318,
"lon": -1.8162
},
"overflow_days.json": {
"generated_at": "2026-11-29T23:32:04.244419+00:00",
"ids": "62c8d9e37d17",
"days": ["2026-11-15", "2026-11-16", "2026-11-17", "2026-11-18", "2026-11-19", "2026-11-20", "2026-11-21", "2026-11-22", "2026-11-23", "2026-11-24", "2026-11-25", "2026-11-26", "2026-11-27", "2026-11-28", "2026-11-29", "2026-11-30", "2026-12-01", "2026-12-02", "2026-12-03"],
"today": 14,
"scale": 1000,
"p": [36, 11, 455, 248, 78, 19, 10, 9, 10, 80, 7, 8, 55, 720, 27, 37, 61, 114, 20],
"status": 0,
"ended_h": 32.8
}
}
Spill history
Each spot's overflow history page has a CSV beside it, spot/<id>/profile/monitored-storm-overflows.csv: every monitored overflow upstream, with its spills, spill hours and monitor uptime in each year from 2021 to 2025, from the Environment Agency's annual returns. In spots.json, seasonal counts, month by month, the days with a spill recorded at the spot's overflows. research/spill_durations/<id>.json gives how long their spills lasted in 2024 and 2025. These are records of the past, not forecasts.
Example: monitored-storm-overflows.csv
spot_id,spot_name,forecast_issued_at,record_type,site_id,site_name,company,receiving_watercourse,lat,lon,km,travel_h,weight,has_live,spills_2021,spill_hours_2021,edm_operational_pct_2021,spills_2022,spill_hours_2022,edm_operational_pct_2022,spills_2023,spill_hours_2023,edm_operational_pct_2023,spills_2024,spill_hours_2024,edm_operational_pct_2024,spills_2025,spill_hours_2025,edm_operational_pct_2025,credits bw-uke4100-08901,"Wharfe at Cromwheel, Ilkley",2026-11-29T23:30:27.725775+00:00,monitored storm overflow; not a treated-effluent outlet inventory,YWS00176,ILKLEY MIDDLETON/CSO,Yorkshire Water,River Wharfe,53.931779,-1.816162,0.0,0.0,0.998,True,31.0,292.75,99.76313018798828,34.0,223.11639404296875,99.6530990600586,49.0,507.3800048828125,100.0,38.0,281.4997253417969,99.9800033569336,24.0,214.5,99.98999786376953,"Storm overflow annual returns: © Environment Agency copyright and/or database right 2025, Open Government Licence v3.0. Overflow positions: the water companies via the National Storm Overflow Hub, CC BY 4.0. River network: contains OS data © Crown copyright and database right 2026 (OS Open Rivers). Traced and weighted by SwimSignal (swimsignal.co.uk), whose method is at swimsignal.co.uk/methods.html."
Example: seasonal, in spots.json
{
"id": "bw-uke4100-08901",
"seasonal": {
"years": [2024, 2025],
"overflows": 16,
"covered_min": 15,
"days": [62, 57, 62, 60, 62, 60, 62, 62, 60, 62, 60, 62],
"spill": [33, 21, 24, 25, 21, 30, 33, 32, 27, 22, 29, 23],
"short": {
"2021": 0,
"2022": 0,
"2023": 0
},
"made": "2026-10-27"
}
}
Example: research/spill_durations/<id>.json
{
"id": "bw-uke4100-08901",
"name": "Wharfe at Cromwheel, Ilkley",
"period": {
"from": "2024-01-01",
"to": "2025-12-31"
},
"overflows": [
{
"site_id": "YWS00176",
"name": "Ilkley Middleton storm overflow",
"own": "Ilkley Middleton/CSO",
"company": "Yorkshire Water",
"spills_2024": 35,
"spills_2025": 21,
"median_h": 4.5,
"p90_h": 18.0,
"longest_h": 73.25,
"share_over_6h": 0.429,
"few": false
}
]
}
The scored record
Every forecast the site issues is logged and later scored against what the overflows did. verification_live.csv has one row for each scored overflow, day and lead, so anyone can check the scores. verification_spots_live.csv does the same for each spot's level. spot_scores.json counts the hits, misses and false alarms at each spot's overflows. verification.json holds everything on the Accuracy page.
Example: spot_scores.json
{
"generated_at": "2026-11-29T23:31:58.619053+00:00",
"warn_at": 0.4,
"unit": "overflow-day forecast",
"first_day": "2026-09-29",
"last_day": "2026-11-25",
"spots": {
"bw-uke4100-08901": {
"overflows": 16,
"scored_overflows": 16,
"overflow_days": 544,
"spill_days": 16,
"forecasts": 2629,
"hits": 27,
"misses": 43,
"false_alarms": 78,
"days": 38,
"first_day": "2026-09-29",
"last_day": "2026-11-25"
}
}
}
Example: verification_live.csv
overflow_id,company,day,lead,issued_at,forecast_raw,forecast_calibrated,climatology,observed AWS00007,Anglian Water,2026-09-29,0,2026-09-29T03:26+01:00,0.0025,0.0014,0.0275,0
Example: the warning table, in verification.json
{
"live": {
"warning_table": {
"warn_at": 0.4,
"level": "high",
"unit": "overflow-day forecast",
"n": 192328,
"hits": 3345,
"misses": 6850,
"false_alarms": 3631,
"hit_rate": 0.32810201078960277,
"warnings_true": 0.4795011467889908,
"base_rate": 0.05300840231271578,
"n_days": 38,
"first_day": "2026-09-29",
"last_day": "2026-11-25"
}
}
}
Today the fields change when the site does, without notice. The build script writes them.
How often it changes
- The whole forecast is rebuilt by a scheduled job. It asks to run every 30 minutes, but GitHub runs scheduled jobs when it has room. From 7 October to 6 November 2026 the scheduled builds were a median 4.6 hours apart; 95 in 100 gaps were under 7.7 hours, and the longest was 10.1 hours. From 31 October to 9 November 2026: a median 5.8 hours, at most 10.6 hours. A change to the site's code builds it again in between.
- A build took a median 14 minutes from 1 to 6 November 2026.
generated_atin each file says when its forecast was issued. - The live status is read once, at the build. So "not discharging" can be hours old, and a spill that started after the poll is not in the files. Each overflow's
feed_updated_atsays when its company's feed last updated. - The annual returns behind the spill history come once a year. The Environment Agency publishes bathing-water samples days after they are taken.
- Each build overwrites the files: the public folder keeps only the latest forecast. Browsers may keep a copy for 10 minutes.
Licences
The forecasts, levels and scores are SwimSignal's own. Today the terms of use let anyone reuse them for non-commercial purposes with a credit; any other use, an app with subscriptions or adverts included, is by agreement. The data they are made from keeps its own licence, and a licence from SwimSignal cannot widen it. The sources, and what each allows:
- Storm overflow status from nine water companies, via the National Storm Overflow Hub; overflow ids from the Stream ID lookup
- Licence: CC BY 4.0. In a paid product: Allowed, with the credit, the licence's link and a note that the data was changed.
- Environment Agency data: annual returns, start and stop records, bathing-water ratings and samples, river levels and flood alerts, water temperatures, water bodies
- Licence: OGL v3.0. In a paid product: Allowed, with the credit. The flood and river level data needs its own sentence, which is in the credit below. The Environment Agency says its real-time data "should not be relied upon for safety critical applications".
- Ordnance Survey OS Open Rivers and OS Open Names
- Licence: OGL v3.0. In a paid product: Allowed, with "Contains OS data © Crown copyright and database right".
- Rainfall, weather and soil moisture, from Open-Meteo
- Licence: Data: CC BY 4.0; the Met Office's forecasts for England within it: CC BY-SA 4.0. In a paid product: Not on Open-Meteo's free plan, which is for non-commercial use only. A paid feed needs SwimSignal on an Open-Meteo subscription, which "grants a commercial use licence". The build also asks Open-Meteo's ensemble service, which needs its Professional plan or higher. The rainfall figures stay under CC BY-SA 4.0: if you republish them, they keep that licence.
- Swim spots chosen from OpenStreetMap (those with
"source": "openstreetmap") - Licence: ODbL 1.0. In a paid product: Allowed, with "© OpenStreetMap contributors". A database you make from them must be offered under the ODbL too.
- Lake residence times, HydroLAKES v1.0
- Licence: CC BY 4.0. In a paid product: Allowed, with the credit.
- ERA5-Land, which the models were trained on; Met Office HadUK-Grid, which the water temperature estimate was trained on
- Licence: Copernicus licence; OGL v3.0. In a paid product: Not in the files: only models trained on them are. Their notices are in the credit.
- Scottish Water's overflow status and history (Scotland trial)
- Licence: History: OGL v3.0. Live status: no named licence; Scottish Water's page says "an open license for reuse". In a paid product: Not confirmed for commercial reuse. Ask before reusing the Scotland trial's data.
Not in any file, and not part of any feed: the Environment Agency's register of consented discharges, whose licence allows internal use only and forbids publishing it.
The files on the bathing waters of Wales, Scotland and the island of Ireland, the coast directory and the research files are official or research records beside the forecast. Each keeps its own licence, given on the data files page.
Read from each licence and provider's terms on 10 November 2026; not reviewed by a lawyer. That ShareAlike in CC BY-SA 4.0 reaches only the rainfall figures, not the forecasts made from them, is SwimSignal's reading of the licence, not checked by a lawyer.
The credit to show
Wherever you show anything from the feed, show this credit. Every JSON file carries it in its credits field, and each CSV in its comment lines or a credits column. The full credits give each source's notice.
Contains Scottish Water data: overflow event history (OGL v3.0) and live overflow status from Scottish Water's near-real-time API. Storm overflow status from Anglian Water Services, Northumbrian Water, Severn Trent Water, South West Water, Southern Water (© 2026), Thames Water, United Utilities, Wessex Water (© 2024) and Yorkshire Water, via the National Storm Overflow Hub, CC BY 4.0; overflow identifiers matched with the Stream ID lookup, via Stream, CC BY 4.0. Environment Agency data © Environment Agency copyright and/or database right, OGL v3.0; river levels: this uses Environment Agency flood and river level data from the real-time data API (Beta). Contains OS data © Crown copyright and database right 2026. Weather data by Open-Meteo.com, CC BY 4.0, from Met Office forecasts © Crown copyright, CC BY-SA 4.0: rainfall figures stay under CC BY-SA 4.0. Soil moisture from ECMWF's IFS forecasts, served by Open-Meteo, CC BY 4.0. The river water-temperature estimate was trained on Met Office HadUK-Grid air temperature, OGL v3.0. Lake residence times from HydroLAKES v1.0 (Messager et al. 2016, Nature Communications 7: 13603), CC BY 4.0. The models were trained on ERA5-Land reanalysis (doi:10.24381/cds.e2161bac): contains modified Copernicus Climate Change Service information 2026; neither the European Commission nor ECMWF is responsible for any use that may be made of the Copernicus information or data it contains. Combined, filtered and modelled by SwimSignal. The forecasts, levels and scores are SwimSignal's own estimates, not the data providers'. None of the providers endorses SwimSignal.
Also:
- Name SwimSignal as the source of the forecasts, levels and scores, with a link to the site or the spot's page.
- Where you show a spot from OpenStreetMap, say "Location © OpenStreetMap contributors".
- Do not suggest that SwimSignal or any provider endorses your product.
What it is not
- Not a water test. Nothing in the feed was measured in the water at the spot, apart from the Environment Agency's and partners' lab samples, which are dated and labelled.
- Not a toxin measurement. The algae check is the Environment Agency's sampler's observation on a date; it does not tell harmful algae from harmless kinds.
- Not a swimming clearance. A low level means only that nothing the forecast looks at flags the day. It covers monitored storm overflows only: not treated sewage from sewage works, farm runoff, wildlife, other bathers or a pollution incident.
- Not complete. Some overflows have no live monitor, a company's feed can be late or down, and rain forecasts are wrong more often the further ahead they look.
How good it is today: It misses most spills. Its live scores cover 38 days between 29 September and 25 November 2026. At the high risk line, it warned of about one in three spills. About one in two of its warnings were followed by a spill. 1,116 of the 3,345 warnings that came true were at United Utilities, the one company the spill model learned from. At the other companies, so far, it warned of about three in ten spills. The Accuracy page has the full scores, updated with every build.
Talk to us
There is no price list. Email hello@swimsignal.co.uk with what you would show and to whom, or start from For organisations. SwimSignal is run by one person, Ethan Buckley.