SwimSignal

Data files

The files the site is built from are public: every spot's forecast, the storm overflows on the map and the accuracy scores. This page lists each one, what it holds and the licence it is under.

In short

The files

FileWhat it holdsSize
spots.jsonEvery spot's five-day forecast and what it rests on1.9 MB
spots-lite.jsonspots.json without each spot's overflows and guide, which the app loads first859 kB
spot/Each spot's overflows and guide, and the river its forecast traced upstream, two files a spot, which its page loads4.3 MB
alerts.jsonEach spot's level and headline, as the alerts send them71 kB
overflows.geojsonEvery storm overflow on the map, and what it is doing now7.0 MB
overflows/overflows.geojson cut into map tiles, which the map loads a few at a time6.5 MB
verification.jsonThe scores on the Accuracy page140 kB
verification_live.csvThe individual forecast and observation pairs behind the live spill scores16.0 MB
verification_spots_live.csvEach spot's forecast level beside the level the spills that happened would have given3.5 MB
spot_scores.jsonThose live spill scores summed over each spot's upstream overflows, for its page27 kB
upstream/Every monitored storm overflow upstream of each spot, one file a spot, for the organisers' page1.5 MB
research/Research observations: dated Sentinel-2 index readings at lakes, with laboratory chlorophyll values where the Environment Agency has them; water temperatures the Environment Agency measured in lakes, May to September 2000 to 2026, by month and reading; how long storm overflow spills lasted in 2024 and 2025, by company and for the overflows upstream of each spot; and every Environment Agency E. coli lab sample at the inland bathing waters, with a model estimate worked out afterwards beside each; and Ambleside Action for a Future's weekly bacteria samples at Waterhead, Windermere, 2025 and 2026; and the model scorecard, each forecast model's test record and stage; and how often 44 river gauges rose quickly, by calendar month, November 2024 to October 20269.1 MB
anypoint/The river network, upstream overflows and spill probabilities for forecasts at a clicked point30.7 MB
sonde-readings.jsonThe latest Environment Agency sonde readings (ammonium, dissolved oxygen, turbidity) on a river spot's own river, upstream or at it, dated, with the EA's quality word3 kB
coastal.jsonOfficial English coastal and estuary directory, historical ratings and dated advice563 kB
places.jsonThe towns, villages and districts Plan a swim can start from771 kB
waters.jsonThe rivers and lakes the search finds on the map804 kB
postcodes.jsonThe postcode districts and sectors the search and Plan a swim understand298 kB
wales.jsonWelsh bathing waters from Natural Resources Wales: ratings and latest samples, dated125 kB
scotland.jsonScottish bathing waters from SEPA: names, latest ratings and links to SEPA's pages45 kB
ireland.jsonBathing waters in the Republic of Ireland from the EPA: ratings, latest samples and restrictions in force, dated261 kB
northern_ireland.jsonNorthern Ireland's bathing waters from DAERA: indicators with their sampling times and profile links32 kB

Sizes are this build's, before compression. The site's host, GitHub Pages, sends the files compressed.

spots.json

Every spot's forecast, as the map and the spot pages show it. A spot's level (low, moderate, high or very high) is worked out from these fields by the page's own rules, levels.js: the worst of the sewage spill risk, the E. coli estimate from May to September, a "poor" rating and an algae check from the last 14 days. A day's label is the spill forecast's level alone.

Fields
generated_at
When the forecast was issued, UK time with its offset (ISO 8601)
build
The build's own checks: how many spots got a forecast, how many rows each water company's live feed returned, and any warnings
lead_skill
How good a forecast for each of the five days has been, as a share of the same-day forecast's skill: spill and water, five numbers each
credits
The data credits (below)
n, version
How many spots the file holds, and the version number of SwimSignal's code
spots
One entry for each spot, with the fields that follow
id, name, kind, river, source, lat, lon
From the spot list: its id (its page is spot/<id>/), its name, river or lake, the river's name, its source (designated for an Environment Agency bathing water, openstreetmap for a mapped swim spot), and where it is, in degrees (WGS84). Inclusion does not confirm permission or safe access
notes, query
The spot list's note on the spot, and the point and time the forecast was made for (lat, lon, issued_at)
assumptions, ecoli_scope
The model's settings for this forecast (flow speeds, die-off, how far upstream it looks, the models' versions); when the oldest rain forecast it used was fetched (rain_issued_at) and how many hours before the issue that was (rain_age_h), with rain_fallback where that rain came from the cache because Open-Meteo did not send a newer one (no answer) or the day's limit of requests held the request back (daily limit), and rain_mixed where the rest of the rain is newer; ecoli_model, the E. coli model that gave the figures (file, n_samples, loyo_brier; for a river spot on the soil-moisture model, also its test; soil_source, the live soil-moisture request the value came from; fitted_on_soil_source, the archive the model was fitted on; and today's model under baseline); ecoli_model.soil, whether a river spot's E. coli estimate used soil moisture (used; sm, the value in m³/m³; at, the hour it is for, 00:00 UTC on the issue day), or why not (reason), when it falls back to the model without it; and where the E. coli estimate has been tested: which kind of water and which months
days
One entry for each day: date; risk, the sewage spill risk as a fraction (0.4 is 40 on the site's 0–100 scale), and label, its level, from the score the site shows (that fraction times 100, rounded: 15 and over is moderate risk, 40 high risk, 70 very high risk); expected_spilling_overflows, how many of the overflows upstream that count (see upstream_summary) are expected to spill; p_ecoli_gt900, the E. coli estimate, the chance a sample would show over 900 E. coli per 100 ml; in_validated_season, false from October to April, when that estimate is untested; rain_48h_mm, the rain at the spot in the 48 hours to midday, and rain_48h_coverage, the share of those hours with rain data; data_status, whether the rain forecast was complete, and rain_missing_share, the share of the day's spill forecast that rests on days without rain data; band, where the build had them, the lowest (low) and highest (high) sewage spill risk from three Met Office ensemble rain forecasts, under test and shown on days 3 to 5 only (Method)
now
Right now, from the live feeds: risk and label, as for a day; how many overflows upstream are discharging (discharging_upstream), stopped lately and still counted (recent_upstream: a spill counts until assumptions.recent_spill_hours after its water has passed the spot) and report live (monitored_upstream: discharging, stopped lately, or not discharging on a current feed), and any company feed that is down (feed_down) or has not updated within 6 hours (feed_stale, with its last update, and stale_upstream, how many of its overflows here), and how many do not report because their company has no live feed (no_feed_upstream). While right now's risk is moderate or worse, or an overflow upstream is discharging, where its risk comes from (source) and, when spills whose water has not reached the spot yet hold at least half of it, the largest of them (arriving, with arrives_at, when its water should get there). Where right now's risk is moderate or worse, when it should be back to low risk if no new spill starts (clears_at, and what sets that time, clears_by)
upstream_summary
How many monitored overflows can reach the spot and count (overflows) and how many of them report live. An overflow counts where its model weight here is 0.5% or more (a weight of 0.005: less shows as 0%); the counts in days and now count only these. too_far: how many more are upstream but carry too little weight here to count (too far, or too small beside the river here), and where there is one, which (too_far_overflow). Where none reaches 0.5%, all count
contributors
Up to 10 of those overflows, the ones that matter most to the spot: the company's id and name for it, its distance and travel time, weight, the chance that a spill there affects the spot after travel time, die-off and dilution, and its chance of spilling on each day (p_spill_days); its status and data_state as in overflows.geojson, and feed_updated_at, when its company's feed last updated (UTC); for an overflow that spilled on many of its dry days, dry_weather: the year, its dry spill-days (days) and its dry days (dry_days), as the method defines them. Not part of the level
location
Where the spot sits on the river network: the watercourse, whether it is treated as a river or a lake, and how far it was moved to reach the network
catchment, linked
How the spot's water is joined to the other spots', for the reasons on a spot page's Nearby card. catchment: a short id for where the river from the spot reaches tidal water, or the end of OS Open Rivers' network; spots with different ids drain apart. linked: the other spots joined to it by river, each with s (at least one of the same monitored overflows is counted at both), d (downstream of it) or u (upstream of it), the last two with no overflow counted at both. In the app's files linked is in spot/<id>.json, not in spots-lite.json. Both absent for a spot with no place on the network, such as an isolated lake
classification, algae
At bathing waters: the Environment Agency's rating, with earlier years and a link to its page, and its sampler's latest algae check
lab_sample
At bathing waters: the Environment Agency's latest E. coli lab sample that SwimSignal holds, when it was taken (UK time with its offset, taken_at), the count per 100 ml (ecoli) and, where the count is a limit, qualifier (< or >). Null where there is no sample this season. The EA publishes samples days after they are taken
measured
Lab results an organisation sent SwimSignal for this spot, taken in the last 30 days, newest first: when the sample was taken (UK time with its offset, sampled_at), the count per 100 ml of E. coli (ecoli) and of intestinal enterococci (enterococci), each with ecoli_qualifier or enterococci_qualifier (< or >) where the count is a limit; who sent it (supplier) and when (received); and, where the sender gives them, the lab (lab), whether the sender says it is UKAS-accredited (ukas), and the method (method). Only results the sender agreed to publish. SwimSignal did not take or check them. Absent where there are none. Not part of the level. In spots.json and spot/<id>.json, not in spots-lite.json
water_body
The Environment Agency water body the spot is in: its id and name in the Catchment Data Explorer, whose page for it is https://environment.data.gov.uk/catchment-planning/WaterBody/<id>, and, where the Environment Agency lists agriculture and rural land management as a reason it does not reach good status under "Pollution from rural areas", how certain it is of that (agriculture: confirmed or probable). Absent where the spot is in no water body the Explorer lists reasons for. Not part of the level
river_state
The nearest Environment Agency level gauge: its latest reading, its usual range and how old the reading is, and where the gauge is (station_lat, station_lon, from the Environment Agency's station record). Not part of the level
rise_history
River spots whose river_state gauge is in the river rise history (research/river_rise_history.json): the gauge, the period and the twelve months in order, each with its hours counted, hours followed within 3 hours by a rise of more than a fifth of the usual range, separate rises and years, or null where the history says nothing for that month. History, not a forecast; not part of the level. In spots.json and spot/<id>.json, not in spots-lite.json
flow_state, flood_alerts, flood_alerts_other, flood_alerts_unmatched
Separate from pollution risk: high or rising fast when a recent gauge on the spot's river meets those thresholds, otherwise null; and the Environment Agency flood alerts and warnings in force whose flood area's outline covers the spot's point on its water, or reaches its lake. An empty alert list means none applied; null means the check failed. flood_alerts_other counts alerts in force for other water (another river, the coast) and flood_alerts_unmatched those that could not be matched to the spot (its own river or lake but not its stretch, or no outline). flood_alerts_search says which search an empty list comes from: england, the national list with nothing in force anywhere in England, or within_10km, the Environment Agency's own search of the spot within 10 km; null when unchecked. These do not change the pollution level
water_temp
Where there is a recent Environment Agency sensor on the same river: the temperature in Celsius (temp_c), its time, age and quality, the station and its link, and its distance and direction from the spot. This is a reading at that sensor, not an estimate of the temperature at the swim spot. Absent where no suitable sensor was found
water_temp_est
River and lake spots, all year: an estimate of the water near the surface today, in whole degrees Celsius (temp_c), the day it is for (date), how it was made (route), whether that route was tested for this water and season (tested), the typical error the test measured for it (typical_c, null where none was measured) and the 7-day air it rests on (air_7d_c). Rivers from May to September are the tested model (route river_model, with within_c 2: the test); lakes, and every water from October to April, are provisional (the routes and what is known about their error). From October to April a river or lake uses a winter curve tested on past winters it had never seen (test winter, within_c 2, typical_c 1.63 at rivers and 1.76 at lakes: the winter test); tested stays false. An estimate, not a measurement, and not part of the pollution level.
water_temp_est_missing
Where a river or lake spot has no estimate in this update: why (why: air, not all 30 days of air arrived; error) and the day (date). An older estimate is never given in its place.
weather
Each day's high, sunrise and sunset, from Open-Meteo
error
Instead of a forecast, where there is none: the reason

Licence. SwimSignal's forecasts, made from all the sources the credits list. The ratings, algae checks, water bodies, river levels, flood alerts and water temperatures are the Environment Agency's (OGL v3.0); the rainfall figures stay under CC BY-SA 4.0. OpenStreetMap spot records are kept in a separate source file under ODbL 1.0.

spots-lite.json and spot/

The same forecast as spots.json, split for the app. spots-lite.json is spots.json without each spot's contributors and guide, which only a spot's own page shows; they were half its size. Each spot in it has detail_file, its file in spot/, relative to data/, and, where it has monitored overflows upstream, reach_by_company: whose they are, as [company, share] pairs, the share of their summed weight, largest first. That file, spot/<id>.json, has the spot's id, generated_at, credits, contributors and guide, as in spots.json. spots.json stays whole: read it if you want everything in one file.

Beside it, spot/<id>-trace.json is the river network the forecast traced upstream of the spot: every river and stream within max_upstream_km (60 km) along the water, the water that reaches the spot, which its map draws. lines are the network's lines as encoded polylines (latitude and longitude to five decimal places), simplified to within simplified_m metres. overflows lists the monitored overflows counted on them, each as [site_id, latitude, longitude]. cut_ends lists where the trace stops a river that goes on, at max_upstream_km, each as [latitude, longitude]; an empty list means every river traced reaches its source within it. A spot with nothing traced (an isolated lake) has no trace file.

Licence. As spots.json. The traced rivers are from OS Open Rivers: contains OS data © Crown copyright and database right 2026.

alerts.json

Each spot's level and headline, worked out by the same rules as the page, for the alert service. The smallest file, for anyone who wants only the answer.

Fields
generated_at, credits
As in spots.json
spots
Keyed by spot id: name; level, one of low, moderate, high and very high, or "no overflows", "not covered" or "no forecast"; rank, 0 for low to 3 for very high and −1 without a level; headline, as the list shows it ("High risk today: sewage spills"); action, what to do at that level, the line under the answer on the spot's page; url, the spot's page; best, only where the level changes from day to day: the lowest level of the four days after today, the first date with it, and the words the weekly note uses ("Saturday, low risk")

Licence. SwimSignal's levels and headlines, made from the same sources as spots.json.

Feeds

The same levels and headlines as Atom feeds, for a feed reader, Slack's RSS app, a Discord bot or IFTTT. Each time the forecast is issued, a feed gets a new entry for each of its spots: the spot's name and headline as the title, the headline and what to do as the summary, the spot's page as the link, its level as the category, and the time the forecast was issued as updated. The feed's rights carries the credits.

A reader that checks every 30 minutes misses nothing: the forecast is issued at most that often. The feeds keep only the latest forecast, so a reader that checks less often skips the ones in between.

Licence. As alerts.json.

overflows.geojson

Every storm overflow on the map, as a GeoJSON point (longitude, latitude), with what its water company's live feed last said about it. The largest file.

The same overflows are in overflows/ cut into map tiles, the ones the map loads: index.json gives the zoom and lists the tiles that have any, and each tile, <x>-<y>.json, is a GeoJSON FeatureCollection of the overflows in that Web Mercator tile.

Fields
site_id, company, site_name
The water company's id and name for the overflow
receiving_watercourse
The river or stream it discharges into, as the company names it; null where the feed names none or gives a placeholder such as "#N/A"
status
1 discharging; 0 not discharging; −1 monitor offline; −2 no live feed: the overflow is in the Environment Agency's annual returns but in no live feed SwimSignal reads, as all of Dŵr Cymru Welsh Water's are; −3 unknown, because the company's feed returned nothing at the last poll (the spill times are from the poll before)
has_live
Whether the overflow is in its company's live feed
data_state
Whether its status is current: live, a status from a feed that updated in the 6 hours before the poll; stale, a status from a feed that did not, or gives no time, so "not discharging" may be out of date; offline, no status (−1, −3, or −2 at a company that has a live feed); no_feed, its company has no live feed. On a stale one, feed_updated_at is when its feed last updated (UTC), null if the feed gives no time
latest_event_start, latest_event_end
Its latest spill, as the company's feed gives it (UTC)
lta_spills
Its long-term average number of spills a year, from the Environment Agency's annual returns

Licence. The water companies' data, CC BY 4.0, via the National Storm Overflow Hub, with the Environment Agency's annual returns (OGL v3.0), combined by SwimSignal.

verification.json

Everything on the Accuracy page, which explains each table: live, the scores of the forecasts this site has issued, against what the overflows then did and, for the E. coli estimate, against the Environment Agency's samples (live.ecoli_live); the level each spot's page showed, against the level the spills that happened would have given (live.spots_live); holdout, leads and reliability, the test on a held-out year, 2025; lead_calibration; ecoli, ecoli_combined and ecoli_model, the E. coli estimate's tests; sampling_plan; and credits.

Licence. SwimSignal's scores, made against the water companies' discharge records (CC BY 4.0) and the Environment Agency's samples (OGL v3.0).

verification_live.csv

One row for each scored overflow, day and forecast lead, so the live spill scores can be checked independently. It is published only when its row count matches live.n_scored in verification.json. Read it as CSV after skipping lines beginning with #, which hold its credits.

Fields
overflow_id, company, day
The overflow, its water company and the day being forecast
lead, issued_at
Days ahead (0 is the same day), and when the scored forecast was issued
forecast_raw, forecast_calibrated, climatology
Spill probabilities, from 0 to 1: before and after lead calibration, and the historical baseline used for comparison
observed
1 if a spill was observed that day, 0 if none was observed; days without sufficient observations are excluded

Licence. SwimSignal's forecast and scoring rows, with the water companies' discharge records (CC BY 4.0).

verification_spots_live.csv

One row for each spot with a monitored overflow upstream, each day and each forecast lead 0 to 4, from the first day the forecasts logged each overflow's travel time, so the level a spot's page shows can be checked against what happened. The rules were fixed in advance in the pre-registration (amendment 1). It is published only when its row count matches live.spots_live.csv.rows in verification.json. Values have 6 decimal places, and the Accuracy page's figures are computed from them as written. Skip the lines beginning with #, which hold its credits.

Fields
spot_id, day, lead
The spot, the day being forecast and the days ahead (0 is the same day)
issued_at, forecast, version
When the forecast was issued (the latest by 08:00 on the issue day), the spot's sewage spill exposure index from 0 to 1, and the model's stamp. Empty when no forecast was out by 08:00
observed
The same index with the spills that happened in place of the forecast ones, each overflow's spill days moved later by its travel time in that forecast. Empty when the spot's overflows were not observed well enough to say
climatology
The same index from each overflow's long-run spill rate for the month instead of its forecast: the reference the forecast is compared with
covered, reason
The share of the spot's weight whose overflows were observed on every day that reaches it (0.95 is needed), and why there is no observation

Licence. SwimSignal's forecast and scoring rows, built from the water companies' discharge records (CC BY 4.0).

spot_scores.json

The rows of verification_live.csv for each spot's upstream overflows, counted, for the "How the forecast has done here" tile on its page. Nothing is weighted, so each count can be found by filtering the CSV to the overflows in the spot's upstream/ file. A spot with no monitored overflow upstream is left out. The file has warn_at, the spill chance counted as a warning (the Accuracy page's); min_spills, the spill days a spot needs before its page gives a share; first_day and last_day; all, the same counts over every row; generated_at, credits and spots, by spot id:

Fields
overflows, scored_overflows
How many monitored overflows are upstream, and at how many any day has been scored
overflow_days, spill_days, days
The scored overflow-days (one overflow on one day), those with a spill, and the calendar days they span (first_day to last_day)
forecasts, hits, misses, false_alarms
The scored forecasts, up to five for each overflow-day (one a lead), and of them: warnings before a spill, spills without a warning, and warnings with no spill

Licence. SwimSignal's scores, made against the water companies' discharge records (CC BY 4.0).

upstream/

One file a spot, upstream/<id>.json, with every monitored storm overflow within 60 km upstream along the river network, largest weight first. spots.json keeps only the ten that matter most in the current forecast; the organisers' page loads a spot's file when it has more. A spot with nothing upstream has no file. Each file has the spot's id, generated_at, credits and overflows, one entry an overflow:

Fields
site_id, site_name, company, receiving_watercourse
The water company's id and name for the overflow, the company, and the water it discharges into, as the company names it (null where the feed names none)
distance_km, lake_distance_km, travel_h
How far upstream along rivers, how far across lakes on top of that (the two add up to the distance along the network), and how long sewage takes to arrive at the model's speeds
weight
A modelled relative contribution weight, 0 to 1: how much a spill there counts at the spot in the model, from its assumptions on travel time and die-off and on dilution. Neither a measured bacterial concentration nor a calibrated chance of contamination (how it is worked out)
lta_spills, spill_hours
Its long-term average spills a year, and the hours it spilled in its latest annual return (Environment Agency)
has_live, lat, lon
Whether its water company reports its status live, and where it is
status, data_state, feed_updated_at, latest_event_end
What its company's feed said at the last poll before the update: 1 discharging, 0 not discharging, -1 monitor offline, -2 no live feed, -3 the company's feed did not answer; whether that status was current (live), from a feed not updated within six hours (stale), missing (offline) or from a company with no live feed SwimSignal reads (no_feed); the feed's own update time; and when its last reported spill ended. Null in files from before 30 October 2026

Licence. SwimSignal's upstream calculations, with the overflow records and river network under the licences in the credits.

research/

The satellite lake observations the lake viewer shows, split from the research export (its contract, version 1). The table links lakes.json; its size is the whole folder's. Each reading is a satellite index of how green the water looked on the image's date, not a chlorophyll measurement, not a test for harmful algae and not swimming advice. Contains modified Copernicus Sentinel data; laboratory values © Environment Agency, Open Government Licence v3.0.

Fields
lakes.json
The export without each lake's readings and laboratory values: what the readings may and may not say (claim), the freshness day limits, the laboratory definition, how the readings were made (processing, with each input's SHA-256), and every lake's latest reading, seasons and reasons for any gap. available is false, with why, when no export was published
lake/<lake_id>.json
One lake whole: every usable reading (series), with its image's id and time, and its laboratory values (lab)

The measured lake temperatures the lake temperature page shows, split from the research export (its contract, version 1). The table links lake-temperatures/index.json; its size is the whole folder's. Each reading is the Environment Agency's, at a sampling point on a dated visit between May and September: a record of past measurements, not today's temperature, and not measured where you get in. Environment Agency data, Open Government Licence v3.0; lake depths from HydroLAKES, CC BY 4.0.

Fields
lake-temperatures/index.json
The export without each lake's readings, sampling points and monthly figures: what the readings may and may not say (claim), the period, the method and the credits; every lake with its summary and its readings in each month, May to September (n); and the listed spots each lake is linked to, with the distance from the spot to the nearest sampling point (spots). available is false, with why, when no export was published
lake-temperatures/lake/<wb_id>.json
One lake whole, by its water body id: its sampling points, its linked spots, the median and quartiles by month with their counts (monthly), and every reading (readings: date, °C and sampling point)

The spill durations the spill durations page and each spot's overflow history show, split from the research export (its contract, version 1). Its index is spill_durations.json. They describe 2024 and 2025 from the water companies' start and stop records; they are not a forecast of when a spill will end, and they say nothing of how much was discharged. Environment Agency storm overflow start/stop data, Open Government Licence v3.0.

Fields
spill_durations.json
The export without its overflows: its years (period), how a spill is joined from the monitor's events (method), each source file's SHA-256, what the figures may and may not say (claim), each company's spill lengths (company), how often a spill already running was still running hours later (still_running, with the hours behind each row), and the spots that have a file (spots); version 1.1 adds what an overflow not listed means (absent_note), what a 0.0-hour typical length means (method.zero_length_note), the years on each row, and plain words and the spills behind each still_running row (label, spills). available is false, with why, when no export was published
spill_durations/<id>.json
One spot: the overflows in its upstream/<id>.json that the export has, in that file's order, each with its spills in 2024 and 2025, its typical (median_h), long-end (p90_h) and longest (longest_h) spill in hours, its share of spills over 6 hours and few (fewer than 5 spills); and in absent, those it has not: no recorded spill, or no record, which is not the same as no spills

The E. coli samples the samples page shows, split from the research export (its contract, version 1). Its index is ecoli.json. A dated historical record: each sample is what the Environment Agency's lab measured on the day it was taken. The estimate beside each sample was worked out afterwards and was never shown on the site (issued is false). Sample data © Environment Agency, Open Government Licence v3.0.

Fields
ecoli.json
The export without each bathing water's samples: what it may and may not say (claim), the 900 line and the 25% warning line, how the hindsight estimate was made (hindsight), the sources with each input's SHA-256, and every bathing water's counts and first and last dates (summary), with the Environment Agency's page for it (profile) and its rating in this build (rating). available is false, with why, when no export was published
ecoli/<spot_id>.json
One bathing water whole: every sample in time order, with its time, its E. coli and intestinal enterococci counts per 100 ml, each count's qualifier ("<" below or ">" above the lab's limit), its source, whether it was over 900, and the hindsight estimate of that, or null where there is none, with why (hindsight_reason, version 1.1: before 2024, no monitored overflow upstream, or only in the Water Quality Archive; hindsight_reasons in the index says each in a sentence)

The Waterhead bacteria samples the Waterhead page shows, as the research export holds them (its contract, version 1). Weekly samples at Waterhead, Windermere, taken by Ambleside Action for a Future's Waterhead E. coli Testing project in 2025 and 2026. Not Environment Agency samples, and not compared with a forecast. Public domain; credit Ambleside Action for a Future.

Fields
waterhead_wet.json
The whole export: what the samples may and may not say (claim), the site and whether its exact point is confirmed (site), each season's dates, counts, middle and highest values and how it was sampled (seasons), what is not yet confirmed (open_questions), the credit and permission, the source sheet's SHA-256, and every sample (samples: date, E. coli and intestinal enterococci per 100 ml as the sheet records them)

Wessex Water's own river E. coli samples the Wessex Water river samples page shows, as the research export holds them (its contract, version 1). Three sampling points beside Warleigh Weir, Farleigh Hungerford and Tellisford Weir, 2021 to 2025. The company's lab results, not Environment Agency samples, and not compared with a forecast. Wessex Water Environmental Water Quality © 2026 by Wessex Water, CC BY 4.0.

Fields
wessex_river_samples.json
The whole export: what the samples may and may not say (claim), the credit and the changes SwimSignal made (attribution, changes), the source layer, the day its licence was read and each input's SHA-256 (source), and for each spot (sites) its sampling point, the point's distance from the spot in a straight line and along the river and which way (straight_m, along_m, direction), the placement checks, the counts by year, and every sample (t the time as published, ecoli per 100 ml, q "<" or ">" for the lab's limit, over over 900 or null where a limit leaves it unknown, id the layer's OBJECTID, same_time where two results share a time)

The research records the research catalogue lists (its contract, version 1). Edited by hand from the project's research register; not data from a measurement.

Fields
research_catalogue.json
The stage names (stages) and sections, every pull request named with its state and branch (prs), and one entry per record (entries): what its test found when it was run (verdict), kept apart from where it stands now (stage, stage_note, next, read_on), what it covers (scope), what would reopen an archived version (reopen_when), its record files with a verbatim quote of the verdict (records), and where the register's summary and the record differ (register_note). Since version 1.1, the labels for each kind of evidence (bases) and one row for each figure a place's page can show (figures): the key the page draws it by, the kinds of water, its basis, what it was tested on, the result, what is not known, its links, and the entries, models and quotes its numbers come from
figures.json
The catalogue's figures and bases, without the sources, as a place's page and the method page's "What each figure was tested on" read them

The model scorecard the scorecard page shows, as the research export holds it (its contract, version 1). Every figure is copied from a test record, with the record's own words and file.

Fields
model_scorecard.json
The whole export: what it may and may not say (claim), what each stage and kind of data means, and each model (models): what it predicts, where and when it was tested, its reference, its results (each with its measure, the model's and the reference's figures, the difference and its 95% interval where the record gives one, the kind of rows, and quote and source, the record's words), its verdict, what it misses, how often it was wrong, its window and read date, the rows logged so far (a count only), whether a result is shown, and its records

How often river gauges rose quickly, by calendar month, as the research export holds it (its contract, version 1), from the river-rises record's table. Each river spot whose River level tile shows one of its gauges says this month's figure in one line. History from the Environment Agency's checked past readings, 21 November 2024 to 24 October 2026: not a forecast, not a warning, and nothing about whether the water is safe. Environment Agency Hydrology data and flood and river level data, Open Government Licence v3.0.

Fields
river_rise_history.json
The whole export: what it may and may not say (claim), the period, the definition of a quick rise (more than a fifth of the gauge's usual range within 3 hours) and of the hours counted (definition), when a month is shown on a spot's page (display: at least min_hours hours counted and readings in both years), its limits, the source table and gauge list with their SHA-256 and commits, and each gauge (gauges): its station reference, name, river, usual range, the spots it serves, and each month's hours counted, hours followed by a quick rise (rise_hours), separate rises (rises), share and years. available is false, with why, when no export was published

anypoint/

The files the map uses to calculate a forecast at a point you click, on your device. The table links tiles.json, the index of available 0.25-degree squares, versions, distance units and probability scales; its size is the whole folder's. These files are intended to be read together by the site's point-forecast script.

Fields
overflow_ids.json
The ordered list of overflow ids, names and positions. Other files refer to an overflow by its position in this list; their ids version must match
overflow_days.json
Spill probabilities by day and overflow, in thousandths, and the hours since each overflow's latest spill ended (ended_h), from which the page works out right now's weights with the travel time to the point. Null probabilities mean missing rain data. Also the live statuses, companies, which company feeds are stale (feed_stale_since) and which companies have none (no_feed), rain forecast ages and modelling assumptions. water_air: for a clicked river or lake point's provisional water temperature, the day, each rain square's 7-day air temperature as the model reads it, the river and lake curves, the months the model was tested in, and the curve's typical error measured in those months (the routes), and winter: the October to April curves, their months and their typical error in a test on past winters (the winter test)
link_index/<tile>.bin
Packed river lines used to find the nearest watercourse. The binary format is defined by pack_link_index in the build script
links/<tile>.json
River-link lengths and upstream overflows, with the distances and dilution factors needed to trace a click along each link, and the metres and lake factor of any mapped lake crossed on the way
lakes.json
Mapped lake outlines, simplified to 15 m, with how far each can be from the real one (err, metres); inlets and the upstream overflows that can reach them, with any other mapped lake crossed on the way
lake_outlines/<n>.json
The real outline of the n-th lake in lakes.json, which the page fetches when a click is too near 150 m from a simplified outline to tell whether it is by that lake
outside_england.json
Wales, Scotland and the island of Ireland, widened over their tidal rivers, estuaries and sea loughs, as one GeoJSON geometry in latitude and longitude. A click inside it gets no forecast, because this click-anywhere data holds England's overflows only. In Scotland, while the Scotland trial is on, the page lists the listed spots nearest the click instead. parts says, for each polygon, whether it is Wales and Scotland (wales_scotland) or the island of Ireland (ireland); on the island, northern_ireland marks Northern Ireland, and the rest is the Republic, so the page can name the official source there. Made from the Office for National Statistics' country boundaries and Tailte Éireann's provinces of the Republic by make_outside_england.py; made says how, and credit carries the notices

Rain forecasts are refreshed in batches. rain_h gives the age of the forecast used for each overflow; cached forecasts are used for up to 24 hours. A clicked-point forecast has no local river gauge or bathing-water sample attached to it: it is a sewage-spill forecast, and cannot confirm that swimming is safe.

Licence. SwimSignal's forecasts and upstream calculations, with the source river network, lake outlines, overflow records and rainfall under the licences in the credits. outside_england.json: Source: Office for National Statistics licensed under the Open Government Licence v.3.0. Contains OS data © Crown copyright and database right 2026. © Tailte Éireann, Provinces - National Statutory Boundaries - 2019 - Generalised 20m, CC BY 4.0; joined, widened and simplified by SwimSignal.

sonde-readings.json

Readings from the Environment Agency's water-quality sondes, sensors left in a river that measure it every 15 minutes and publish before anyone has checked them. An observation beside the forecast: no level, colour or advice is worked out from it. Ammonium is a marker that can come from sewage; it is not a count of bacteria and not a sign that the water is fit to swim in, and no reading does not mean clean water. status is ok or unavailable (the EA did not answer; fetch.error says why). fetch gives the requests this build made (two, or up to four with retries), the readings in the answer, the day they start (since) and the readings not used, by reason. rules says which sondes count: on the spot's own river by name, joined to it along the river network, upstream of it at most up_km or within at_km of it either way, the nearest; rivers only. Each entry in spots has the spot's spot_id and name and its sonde: the EA's station_id, its station name and where, river, url, direction (upstream or at), river_km, and readings by property, each with value, unit, observed_at (UTC), age_hours at the build and the EA's quality word ("Unchecked" for raw data); series is the ammonium readings of the last day. The contract is SONDE-READINGS-CONTRACT-v1.md. Contains Environment Agency data licensed under the Open Government Licence v3.0.

coastal.json

An official-information snapshot, separate from SwimSignal’s inland forecasts. fetched_at, status, source, licence and credit describe the fetch. catalogue_state distinguishes live names/ratings from a dated fallback, whose source age is in catalogue_fetched_at. The fallback never contains current advice. Each entry in sites has an EA id, name, kind (coast or estuary), official profile, historical rating with its year and source, and advice.

Each site also has sample: its latest statutory sample in the EA Water Quality Archive, with taken_at (UK time with offset), ecoli and, from the same sample, enterococci (intestinal enterococci; null when the archive has none), each as value per 100 ml and qualifier (=, or < for below the detection limit), and the archive's point. Its state is ok, none (no sample since samples.since), unmapped (no archive point matched with confidence) or unavailable (the archive did not answer). The top-level samples gives the source, when it was asked (fetched_at), the window start and whether the answer is cached. The archive can lag the official profile by several days, and one sample is not a rating or today's water.

Each site also has a provisional water temperature, never part of any rating or advice. water_temp_est has temp_c, its date, route (sea_air_curve, or estuary_air_curve for an estuary), tested (always false), typical_c, air_7d_c and air_km. It is the sea curve applied to the last 7 days' air temperature at the nearest weather-model square the click-anywhere forecast already reads, with that square's distance from the site's sampling point. typical_c is the typical error at sea points in a May to September test (1.63 °C, exploratory), and null in other months and at estuaries, where none was measured. A site without one has water_temp_est_missing with why: air (no square nearby in this build), point (no sampling point on file) or error. The sampling points come from the EA's and NRW's bathing-water service (data/raw/bathing_water_points.json in the repository, same licence).

Advice states distinguish increased risk, no increased risk forecast, no forecast, no current advice and unavailability. Valid advice retains its origin, prediction time, publication time, expiry time and source. An increased-risk record in force counts whatever its origin, and stands over a normal one in force at the same time: the EA's notice after a pollution incident has no origin (null). Check expiry again when using the file: a snapshot can outlive its advice. Missing advice, a normal incident record and a historical rating do not establish clean water.

Licence. Environment Agency copyright and/or database right, Open Government Licence v3.0. Keep the credit and source links. The EA does not endorse SwimSignal.

places.json

The places Plan a swim can start from: every city, town, suburban area, village and other settlement in England and Wales in Ordnance Survey's OS Open Names, about 26,000 names. places lists each as [name, latitude, longitude], to two decimal places (about a kilometre), cities first and villages last. A name that several places share keeps it bare for the biggest, and the others carry their district or county after a comma. The page fetches the file the first time a place is typed, and looks the name up on the device. The file changes only when make_places.py is run again.

Licence. Contains OS data © Crown copyright and database right 2026, Open Government Licence v3.0. The file's credit field carries the notice.

waters.json

The rivers and lakes the search on the home page finds on the map: Ordnance Survey's named rivers in OS Open Rivers with at least 1 km in England, and the Environment Agency's WFD lake water bodies in England, about 9,700 in all. waters lists each as [name, alternative, kind, near, south, west, north, east, latitude, longitude, km]: its other name if it has one (the Welsh name of the Wye, "Afon Gwy"), river or lake, the city or town nearest its middle, the box around it in England to two decimal places, a point on it, and its length in England in km. The pieces OS gives a river of one name are joined where they lie within 2 km of each other, so rivers that share a name stay apart ("River Derwent" near Wirksworth, Malton, Consett and three more). The page fetches the file the first time three letters are typed in the search and looks the name up on the device. The file changes only when make_waters.py is run again.

Licence. Contains OS data © Crown copyright and database right 2026. © Environment Agency copyright and/or database right 2026. Both under the Open Government Licence v3.0. The file's credit field carries the notice.

postcodes.json

The postcodes the search on the home page and Plan a swim understand: every postcode district in Great Britain ("LS29", about 2,900) and every sector ("LS29 9", about 10,800), from the 1.7 million postcodes in Ordnance Survey's OS Open Names. districts and sectors give each as [latitude, longitude], the mean position of its postcodes, to two decimal places (about a kilometre). There are no whole postcodes in the file: a whole postcode typed is read as its sector. Northern Ireland's (BT) are not in OS Open Names. The page fetches the file the first time a postcode is typed and looks it up on the device. The file changes only when make_postcodes.py is run again.

Licence. Contains OS data © Crown copyright and database right 2026. Contains Royal Mail data © Royal Mail copyright and database right 2026. Contains National Statistics data © Crown copyright and database right 2026. Open Government Licence v3.0. The file's credit field carries the notice.

wales.json

Natural Resources Wales's designated bathing waters, separate from SwimSignal's forecasts: SwimSignal makes no Welsh forecast. state is live when NRW's service answered the build, cached when the build used the dated snapshot kept in the repository (NRW's service refused GitHub's runners on 3 October 2026), or unavailable; fetched_at is when those sites and samples were read. Each entry in sites has NRW's id, name, kind (coast, estuary, lake or river), official profile, latest rating with its year (null for a water not yet rated) and sample: the latest in-season sample, with taken_at, ecoli and enterococci as value per 100 ml and qualifier. The file holds no pollution-risk forecasts: the coverage page asks NRW for those in the reader's browser, and none is kept. One sample is not a rating or today's water. Each site also has a provisional water temperature, water_temp_est or water_temp_est_missing, as in coastal.json, with lake_air_curve and river_air_curve for its inland waters (their curves' summer test figures, 1.93 and 1.85 °C, in May to September).

Licence. Contains Natural Resources Wales information © Natural Resources Wales and Database Right. All rights reserved. Open Government Licence v3.0. NRW does not endorse SwimSignal.

scotland.json

SEPA's designated bathing waters, separate from SwimSignal's forecasts: SwimSignal makes no Scottish forecast. state is live or unavailable (with error); fetched_at is when SEPA's layer was read. Each entry in sites has an id made from SEPA's location code, name, SEPA's page for it, its point (lat, lon) and its latest rating with the year, or null with unrated_year when SEPA lists it as unclassified. It holds no samples, signs or advice: those are on SEPA's page for each water, under SEPA's own conditions. Each also has kind (coast or lake), with kind_from sepa_list: SEPA's layer does not type its waters, so SEPA's three inland waters (Loch Morlich, Dores on Loch Ness and Luss Bay on Loch Lomond, by SEPA's own profile and the Scottish Government's list) are lakes and the rest are coast. And a provisional water temperature, water_temp_est or water_temp_est_missing, as in coastal.json.

Licence. Contains public sector information licensed under the Open Government Licence v2.0: SEPA bathing water points. SEPA does not endorse SwimSignal.

ireland.json

The bathing waters the Environmental Protection Agency (EPA) lists for the Republic of Ireland, separate from SwimSignal's forecasts: SwimSignal makes no forecast in Ireland. state is live when every part was current for this build, partial when a part was kept from an earlier build or could not be read, or unavailable (with error). locations, samples and alerts each give their own state (ok, kept or unavailable) and when they were read (fetched_at). The list of waters is read once a day and the samples at most every three hours; restrictions are read on every build and never kept. Each water also has its point, lat and lon (from the EPA's Irish Grid easting and northing), kind (coast, estuary, lake or river) with kind_from: epa_code where the designated water's code says it, checked for the waters checked one by one, else name (a Lake is a lake, a River a river, anything else the coast; a Lough or Loch not yet checked is unknown and gets no estimate, its water_temp_est_missing saying kind). And a provisional water temperature, water_temp_est or water_temp_est_missing, as in coastal.json.

Each entry in sites has the EPA's id, name (as the EPA gives it, Irish accents kept), county, designated (false for a water the council monitors that is not a designated bathing water), its EPA page on beaches.ie, its latest rating with the year (null when none is listed, with unrated_year when the EPA lists it as not classified), season_restriction (a restriction for the whole season), alerts (restrictions in force: type in the EPA's words, since, cause and notice; null when the list could not be read) and sample: the latest sample this year, with date, season (in, 22 May to 15 September, or out, voluntary and not used for a rating), ecoli and enterococci as value per 100 ml and qualifier, and status, the EPA's word for that sample. A sample's state is ok, none (none listed for samples.season) or unavailable. One sample is not a rating or today's water.

Licence. Contains bathing water data from the Environmental Protection Agency (Ireland), Bathing Water Open Data API, licensed under CC BY 4.0. SwimSignal shows some of the fields and picks each water's latest sample. The EPA does not endorse SwimSignal.

northern_ireland.json

The bathing waters of the Department of Agriculture, Environment and Rural Affairs (DAERA) in Northern Ireland, separate from SwimSignal's forecasts: SwimSignal makes no forecast in Northern Ireland. state is live, kept (DAERA did not answer, so the copy from an earlier build, at most three days old, with fetched_at its time) or unavailable (with error). Each entry in sites has an id made from DAERA's site code, name, kind (coast or inland), candidate, inactive, DAERA's profile of the water, the indicator (DAERA's code and its words for it) and sampled_at, the sampling time DAERA gives with the indicator (UK time with its offset). It holds no rain figures and no samples. Each also has its point, lat and lon, and a provisional water temperature, water_temp_est or water_temp_est_missing, as in coastal.json; the one inland water is estimated as a lake.

Licence. Contains public sector information licensed under the Open Government Licence v3.0: DAERA bathing water monitoring points. DAERA does not endorse SwimSignal.

The credits field

The JSON files carry credits: attribution, the notices each provider asks for; modified, which says that SwimSignal combined and modelled the data and that no provider endorses it; licences, each licence's name and address; and full, the address of the full credits on the terms page. Individual river-link tiles carry the full credits' address; their binary index uses tiles.json's credits. The CSV's comment header gives the same notices. The MIT licence of the source code covers the code, not the data.

Using the files