# French Groundwater Levels (Piezometry — Hub Eau ADES) (`vigilant_jasmine/french-groundwater-levels-piezo`) Actor

Get French groundwater levels from 23000+ official piezometric stations (Hub Eau ADES). Water table elevation, depth, history and rising/falling trend by department or commune. Free.

- **URL**: https://apify.com/vigilant\_jasmine/french-groundwater-levels-piezo.md
- **Developed by:** [DEV DEV](https://apify.com/vigilant_jasmine) (community)
- **Categories:** Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## French Groundwater Levels (Piezometry — Hub'Eau ADES)

Monitor **French groundwater levels** ("niveau des nappes phréatiques", "piézométrie") from the **23 000+ official piezometric stations** of the ADES network, served by the government's Hub'Eau API. For any department or commune: where the monitoring wells are, how high the water table currently sits, its recent history, and whether it is **rising, stable or falling**.

Groundwater is where droughts actually show up first — months before restrictions make the news.

**This actor is free.** You only pay your own Apify platform usage.

> Related: this actor covers **groundwater** (aquifers). For **surface water** use the river levels actor, and for **water quality** the drinking water actor.

### Input

| Field | Type | Description |
|---|---|---|
| `departments` | array | Department codes: `59`, `84`, `2A`… Provide this **or** `communes`. |
| `communes` | array | 5-character INSEE commune codes, e.g. `59350`. |
| `includeMeasurements` | boolean | Fetch recent readings and compute a trend. Default `true`. |
| `measurementsPerStation` | integer | Readings per station, newest first. Default `10`. |
| `maxStations` | integer | Cap on stations returned. Default `50`. |

### Output

One item per monitoring station, each with a `status` field (`found` / `not_found` / `error`).

```json
{
  "status": "found",
  "stationCode": "00285X0478/PZ10",
  "stationId": "BSS000CXYT",
  "communeName": "Pecquencourt",
  "communeCode": "59456",
  "departmentCode": "59",
  "departmentName": "Nord",
  "longitude": 3.215696996,
  "latitude": 50.377295867,
  "stationAltitudeM": 18.05,
  "investigationDepthM": 69.0,
  "aquiferNames": ["Craie des vallées de la Scarpe et de la Sensée"],
  "measurementCount": 595,
  "firstMeasurementDate": "1957-12-07",
  "lastMeasurementDate": "2026-06-16",
  "latestLevel": {
    "date": "2026-06-16",
    "waterTableElevationM": 34.15,
    "depthToWaterM": 34.15,
    "qualification": "Correcte",
    "producer": "Syndicat Mixte Escaut et Affluents"
  },
  "trend": { "from": "2025-09-02", "to": "2026-06-16", "changeM": -1.2, "direction": "falling" }
}
```

- `waterTableElevationM` — water table elevation in metres **above sea level** (NGF).
- `depthToWaterM` — depth to water measured **from ground level**.

### Use cases

- **Drought monitoring** — track aquifer recharge and depletion across a region, ahead of water restrictions.
- **Agriculture** — inform irrigation planning where groundwater is the source.
- **Construction & geotechnics** — check the water table before excavation or foundation work.
- **Environmental research** — long time series (some stations go back to the 1950s) for climate and hydrology studies.

### Limitations & fair use

- Source: [Hub'Eau — Niveaux nappes / ADES](https://hubeau.eaufrance.fr/page/api-piezometrie) published by BRGM / Eau France under the **Licence Ouverte** (open licence, free to reuse).
- Station coverage and update frequency vary by producer: some stations report daily, others are historic and stopped decades ago. Check `lastMeasurementDate` before treating a station as live.
- `trend` is a simple first-to-last comparison over the readings you requested — it is an indicator, not a hydrological model. Seasonal cycles matter: compare like-for-like periods.
- The actor retries with backoff and paces requests to stay polite to the source.

### More actors by this developer

Reliable data tools built on official French & EU open data APIs — company data, compliance checks, geo and environment: **[apify.com/vigilant\_jasmine](https://apify.com/vigilant_jasmine)**

# Actor input Schema

## `departments` (type: `array`):

French department codes to search, e.g. 59, 84, 2A. Provide this or communes.

## `communes` (type: `array`):

Restrict to specific communes by 5-character INSEE code, e.g. 59350. Provide this or departments.

## `includeMeasurements` (type: `boolean`):

Fetch the most recent groundwater level readings for each station, plus a trend.

## `measurementsPerStation` (type: `integer`):

How many recent readings to fetch per station (newest first).

## `maxStations` (type: `integer`):

Maximum number of monitoring stations to return.

## Actor input object example

```json
{
  "departments": [
    "59"
  ],
  "communes": [],
  "includeMeasurements": true,
  "measurementsPerStation": 10,
  "maxStations": 50
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "departments": [
        "59"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vigilant_jasmine/french-groundwater-levels-piezo").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "departments": ["59"] }

# Run the Actor and wait for it to finish
run = client.actor("vigilant_jasmine/french-groundwater-levels-piezo").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "departments": [
    "59"
  ]
}' |
apify call vigilant_jasmine/french-groundwater-levels-piezo --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vigilant_jasmine/french-groundwater-levels-piezo"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bZ4uNII9xTuB5kDkG/builds/LvKdXnjVaKRfdodEw/openapi.json
