France Water Data (Hub'Eau): Quality, Rivers, Groundwater
Pricing
from $3.00 / 1,000 water records
France Water Data (Hub'Eau): Quality, Rivers, Groundwater
French water data from the official Hub'Eau open API: tap-water quality by commune, river flow and level in near real time, groundwater levels, river quality and temperature, low-flow observations and water withdrawals. Unofficial; no personal data.
Pricing
from $3.00 / 1,000 water records
Rating
0.0
(0)
Developer
Shadow Tools
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
15 days ago
Last modified
Categories
Features
Share
Call this Actor to read French public water data from the official Hub'Eau API (OFB / Eaufrance water information system): tap-water quality by commune, river flow and level in near real time, groundwater levels, river quality, river temperature, low-flow (drought) observations of small streams and annual water withdrawals. One run = one mode, filters by department, commune (INSEE code), station code, parameter and dates, newest records first, every record with its source URL and attribution.
Unofficial tool. Not affiliated with, endorsed by or sponsored by the OFB, Eaufrance, Hub'Eau, the BRGM, the SCV or the data producers. It reads their open API and reformats it. Data are raw public data published without warranty: never use this output as a health notice or flood-safety information, check the official source.
Minimal input per mode
An empty input {} works: it returns the 20 newest drinking-water analyses of France.
drinkingWater:{"mode": "drinkingWater", "commune": ["69123"], "parameterCode": ["1340"], "maxResults": 5}: the 5 newest nitrate results of Lyon.riverFlowRealtime:{"mode": "riverFlowRealtime", "department": ["34"], "maxResults": 10}: latest flow (l/s and m3/s) of each hydrometric station of the Hérault.groundwater:{"mode": "groundwater", "department": ["34"], "maxResults": 10}: latest level of each real-time piezometer of the Hérault.riverQuality:{"mode": "riverQuality", "department": ["69"], "parameterCode": ["1311"], "maxResults": 10}: newest dissolved-oxygen analyses in the Rhône department.riverTemperature:{"mode": "riverTemperature", "department": ["59"], "maxResults": 10}(dataset updated about quarterly; most sensors are retired).lowFlow:{"mode": "lowFlow", "department": ["34"], "dateFrom": "2026-06-01", "maxResults": 10}: visual flow observations of small streams.withdrawals:{"mode": "withdrawals", "department": ["34"], "year": ["2022"], "aggregateBy": "usage"}: water withdrawn per use in 2022.
Short real output (riverFlowRealtime, 8 Nov 2026, shortened; every record also has sourceUrl, attribution, extractedAt):
{"recordType": "river-flow-realtime", "stationCode": "O400101101", "stationName": "L'Agout à Fraisse-sur-Agout - EDF", "riverName": "L'Agout", "communeCode": "34107", "departmentCode": "34", "quantity": "flow", "observedAt": "2026-11-08T12:00:00Z", "value": 817, "unit": "l/s", "valueSi": 0.817, "unitSi": "m3/s", "qualification": "Non qualifiée", "status": "Brute", "longitude": 2.81266, "latitude": 43.61929}
For AI agents (MCP)
- One call = one answer. Default
maxResultsis 20 (max 10,000). Typical run: 1-15 s. - Pick the mode by the question: tap water / nitrates / chlorine / bacteria ->
drinkingWater; "river level / flow now" ->riverFlowRealtime; groundwater / water table ->groundwater; river chemistry ->riverQuality; drought / dry streams ->lowFlow; water use volumes ->withdrawals. - Locations are codes, not names: department
"69","2A","971"; commune = 5-character INSEE code ("69123"for Lyon, not the postal code). The Actor does not geocode place names. - Parameters are numeric Sandre codes (
drinkingWater,riverQuality):1340nitrates,1311dissolved oxygen,1301water temperature. - Errors fail fast as
Field X invalid: expected Y, got Z, example W(for exampleField commune invalid: expected 5-character INSEE commune codes, got ["Lyon"], example ["69123", "2A004"].). Fix that field and call again; nothing is charged. - 0 results is not an error. The run succeeds with an empty dataset and the key-value record
SUMMARYholds anotesaying why and what to widen. The samenoteexplains capped, partial and cost-capped runs, and lists input fields that the chosen mode ignores. - Freshness differs per mode (see below): always read the date field of each record (
sampledAt,observedAt,measuredAt,measuredDate,observedOn,year).
Who uses it
- Journalists, NGOs, local authorities and citizens: tap-water results for a commune, nitrate or pesticide trends in rivers, drought indicators.
- Hydrology, agriculture and insurance analysts: current river flow and groundwater levels, annual withdrawals per use and commune.
- Dashboards and AI assistants: a clean, dated, attributed JSON/CSV feed instead of seven different API schemas.
- Researchers: river temperature and quality series, with limits of detection and quantification.
Modes, filters and data freshness
All filters are optional and combined with AND; several values inside one filter are OR.
drinkingWater: sanitary-control results of the water distributed, per commune (Ministry of Health data). Filters:department,commune,stationCode(distribution network / UDI code),parameterCode,dateFrom,dateTo. Updated monthly; on 8 Nov 2026 the newest sample dated from 31 Aug 2026 (about 2 months late). Each record has the result, unit, quality limit/reference and the compliance conclusion and flags exactly as published (Ccompliant,Nnon-compliant,Dcompliant under derogation,Snot applicable).riverFlowRealtime: hydrometric stations (SCV / PHyC), measurements every 5-60 minutes, the API keeps about one month. Filters:department,commune,stationCode,quantity(flowdefault,height,both),lookbackHours(default 3, max 720) ordateFrom/dateTo,latestPerStation(default true: one record per station and quantity; false lists every measurement newest first). Values keep the published unit (l/s,mm) and addvalueSi(m3/s,m). Withoutdepartment/commune/stationCodethe query is a sample of the newest measurements of France, not a full list. Raw "real-time" values are not validated (seequalification,status).groundwater: real-time piezometers (ADES / BRGM), about 1,400 stations sending hourly values. Same filters and options as above (lookbackHoursdefault 72). Level in metres NGF (waterLevelNgfM), depth below the reference mark (depthToWaterM). For a department the Actor first lists the stations and queries at most 720 of them (flagged in thenoteotherwise).riverQuality: physico-chemical analyses of rivers and lakes (Naïades), results with unit, remark (below quantification limit...), detection and quantification limits, qualification and validation status. Filters:department,commune,stationCode,parameterCode,dateFrom,dateTo.riverTemperature: continuous temperature sensors (Naïades). The source says it is updated about quarterly and only about fifty of about 760 stations are still in service: on 8 Nov 2026 the newest value of France dated from 16 Nov 2025, and the department 69 series ends in 2017. ReadmeasuredDate.lowFlow: Onde network, visual observations of small streams made by OFB agents mostly in summer (flowCode/flowLabel: visible flow, weak flow, no flow...). Filters:department,commune,stationCode,dateFrom,dateTo.withdrawals: annual volumes withdrawn per work (BNPE), in m3, with usage, commune and data-quality labels. Filters:department,commune,stationCode(work code),year,usage(AEPdrinking water,IRRirrigation,INDindustry...).aggregateByusageorcommunesums the volumes instead (reads at most 20,000 matching rows; thenotetells when that is not the whole set). Volumes come from water-agency fee declarations: usages exempt from the fee are unknown and withdrawals under 10,000 m3 are mostly not declared (Hub'Eau documentation).
What you get
Every record: recordType, the mode's fields below, sourceUrl (the official Hub'Eau page of the API), attribution, extractedAt.
drinking-water-result:sampleCode,sampledAt,communeCode,communeName,departmentCode,departmentName,parameterCode,parameterName,resultText,resultValue,unit,qualityLimit,qualityReference,complianceConclusion,bacteriologicalLimits,physicochemicalLimits,bacteriologicalReferences,physicochemicalReferences,upstreamInstallationCode,networkCodes[].river-flow-realtime:stationCode,stationName,riverName,communeCode,communeName,departmentCode,departmentName,siteCode,quantity,observedAt,value,unit,valueSi,unitSi,method,qualification,status,continuity,longitude,latitude.groundwater-level:bssCode,bssId,communeCode,communeName,departmentCode,departmentName,measuredAt,waterLevelNgfM,depthToWaterM,stationAltitudeM,longitude,latitude(rounded to 3 decimals, about 100 m).river-quality-analysis:stationCode,stationName,sampledDate,sampledTime,parameterCode,parameterName,result,unit,remark,fraction,support,detectionLimit,quantificationLimit,qualification,validationStatus,operationCode,analysisCode,longitude,latitude.river-temperature:stationCode,stationName,communeCode,communeName,riverCode,riverName,measuredDate,measuredTime,temperature,unit,qualification,longitude,latitude.low-flow-observation:stationCode,stationName,communeCode,communeName,departmentCode,departmentName,regionName,basinName,riverCode,riverName,campaignCode,networkName,observedOn,flowCode,flowLabel,longitude,latitude.water-withdrawal:workCode,year,volumeM3,usageCode,usageLabel,volumeStatus,volumeQualification,instructionStatus,obtainingMode,highVolumeImmediateReturn,dataProducer,communeCode,communeName,departmentCode,departmentName. WithaggregateBy:water-withdrawal-aggregatewithaggregatedBy,year,usageCode,usageLabel,departmentCode,departmentName, (communeCode,communeName),volumeM3,worksCount.
Example (drinkingWater, real, 8 Nov 2026, shortened):
{"recordType": "drinking-water-result", "sampleCode": "06900176905", "sampledAt": "2026-08-31T14:58:00Z", "communeCode": "69248", "communeName": "THIZY-LES-BOURGS", "departmentCode": "69", "parameterCode": "1398", "parameterName": "Chlore libre", "resultText": "<0,03", "resultValue": 0, "unit": "mg(Cl2)/L", "complianceConclusion": "Eau d'alimentation conforme aux exigences de qualité en vigueur pour l'ensemble des paramètres mesurés.", "bacteriologicalLimits": "C", "physicochemicalLimits": "C", "networkCodes": ["069000136", "069000135"]}
Quick start
Nitrates in the tap water of Lyon since June 2026:
{ "mode": "drinkingWater", "commune": ["69123"], "parameterCode": ["1340"], "dateFrom": "2026-06-01", "maxResults": 20 }
Current flow and height of the rivers of the Hérault:
{ "mode": "riverFlowRealtime", "department": ["34"], "quantity": "both", "maxResults": 100 }
Water withdrawn for irrigation in the Hérault, per commune, 2022:
{ "mode": "withdrawals", "department": ["34"], "year": ["2022"], "usage": ["IRR"], "aggregateBy": "commune", "maxResults": 50 }
Call it from the API: POST https://api.apify.com/v2/acts/<ACTOR>/run-sync-get-dataset-items?token=<TOKEN> with the JSON input as body.
Pricing
Pay per event, no subscription:
water-record: one record delivered (a measurement, an analysis, a withdrawal or one aggregate): 0.003 USD (3 USD per 1,000 records).- Actor start (once per run): 0.00005 USD.
A run returning nothing costs only the start event. Example: the latest value of every hydrometric station of a department (about 50-100 records) costs about 0.15-0.30 USD. Use the platform's Maximum cost per run to cap spending: the Actor reads it, stops cleanly at the cap and returns what it already delivered (the cap must allow at least one record).
Privacy / GDPR by design
This Actor is built so that it returns no data about natural persons, and the filtering below is applied on purpose to respect the GDPR. What the code really does:
- Places and measurements, not people. Records describe monitoring stations, communes, water analyses, levels and annual volumes.
- Allow-list, fail-closed. For each mode the Actor requests from Hub'Eau a fixed list of fields (the
fieldsparameter) and builds every output record from named fields only, each with a strict type (code, number, date, short label...). A field that is not on the list is never requested, never read and never delivered, including any field the source might add later; a value of the wrong type or format becomesnull. Unit tests pin the lists. - Operators, owners and laboratories are never delivered. Dropped on purpose: distributor, operator and contracting-authority names of drinking-water networks (
nom_distributeur,nom_uge,nom_moa), names of upstream installations and networks, names and company ids of the sampler, laboratory and data producer in river analyses, free-text comments and station "localisation" texts, and the point-of-water label of piezometers. No operator or owner name is returned at all, so no register check is needed. - Water withdrawals: structured technical and aggregate fields only. The name of the work (
nom_ouvrage, which can carry an owner or operator name), its coordinates and its geometry are dropped (a private well is a person's property). What stays: work code, year, volume in m3, usage, status labels, data-producer acronym (a water agency) and the commune.aggregateByreturns sums with no work code at all. - Coordinates. Surface-water stations (hydrometry, river quality and temperature, Onde) keep coordinates rounded to 5 decimals; piezometers are rounded to 3 decimals (about 100 m); withdrawal works have none.
- Text is scrubbed. E-mail addresses, phone numbers and HTML are stripped from every text field and labels are cut at 200 characters.
- Nothing is stored about you. The Actor keeps no state between runs and writes no log of your requests beyond the filters you chose in the run log and
SUMMARY. (The Apify platform itself stores the run input, as for any Actor.)
Residual risk, stated honestly: a monitoring station or a commune is a place, and a very small site could in theory sit on a private person's land; we return only what the public authorities already publish openly about that point, and never a name. Source texts such as the sanitary complianceConclusion are passed through the scrubber but not otherwise analysed (they come from a fixed regulatory vocabulary).
Licence and attribution
Hub'Eau terms of use (https://hubeau.eaufrance.fr/page/conditions-generales, section 5.1.3), read on 8 Nov 2026:
« La réutilisation des Jeux de données est régie par la licence ouverte Etalab, https://www.etalab.gouv.fr/licence-ouverte-open-licence. Les Jeux de données sont donc librement et gratuitement utilisables et réutilisables, y compris dans un but commercial. L'utilisateur de ces données doit néanmoins veiller à citer l'auteur des Jeux de données. »
(English, our translation: reuse of the datasets is governed by the Etalab Open Licence; the datasets are freely and free of charge usable and reusable, including for commercial purposes; the user must cite the author of the datasets.) The terms do not state a version number of the licence. The Actor puts the source, the producer of the data, the licence and the extraction date in the attribution of every record and the official API page in sourceUrl. Producers per mode: Ministry of Health (drinking water, SISE-Eaux), SCV / PHyC (river flow), ADES / BRGM (groundwater), Naïades (river quality and temperature), Onde / OFB (low flow), BNPE (withdrawals). The data are published by Hub'Eau, a service of the OFB, the SCV and the BRGM.
Limits and good to know
- Not a safety service. Real-time river and groundwater values are raw; drinking-water results are published with months of delay. Do not use this for health decisions or flood alerts.
- Date and rate limits. Page-based Hub'Eau operations stop at 20,000 records of depth, so
maxResultsis capped at 10,000; the Actor spaces its calls by at least 0.3 s and identifies itself with the User-Agentapify-actor/0.1 (open-data reuse; contact via Apify Store issues). - Real-time modes without
department,communeorstationCodereturn a sample of the newest measurements of France. - The
communefilter needs INSEE codes; names and postal codes are not accepted. - Station and commune names are returned as published (upper case or mixed case varies by source).
- Unofficial; data may be incomplete or late. Report problems in the Issues tab.