# France Drought & Water Restriction Monitor (VigiEau) (`codeclouds/fr-secheresse-monitor`) Actor

Current French drought/water-restriction zone status (vigilance/alerte/alerte renforcée/crise) and concrete usage restrictions per address or INSEE commune code, from the official VigiEau platform.

- **URL**: https://apify.com/codeclouds/fr-secheresse-monitor.md
- **Developed by:** [Dennis](https://apify.com/codeclouds) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 zone-records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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

## France Drought & Water Restriction Monitor (VigiEau)

Get the current official French drought/water-restriction status — vigilance, alerte, alerte renforcée, or
crise — and the concrete usage restrictions (watering, car washing, industrial use, etc.) for any French
address or INSEE commune code, sourced directly from the government's VigiEau platform.

### When should an AI agent use this?

- "Is there a water restriction (arrêté sécheresse) in effect in Bordeaux right now?"
- "What are the concrete watering restrictions for this French postcode/commune?"
- "Compare drought severity between several French cities for a site-selection report."
- "Is agricultural irrigation restricted at this location, and since when?"
- "Give me the current groundwater monitoring stations near this French commune."
- "Which of these French locations are currently in the most severe restriction level (crise)?"

### What this Actor does

- Accepts either a free-text address/place name (automatically geocoded) or a 5-digit INSEE commune code.
- Fetches the current restriction zone(s) for each location directly from VigiEau's official REST API — no
  scraping, no PDF parsing for the core status.
- Returns the severity level, zone type (surface water/groundwater), département, link to the official
  arrêté (decree) PDF, and the full list of concrete usage restrictions with who they apply to (individuals,
  businesses, municipalities, farms).
- Optionally includes nearby groundwater monitoring station metadata (Hub'Eau Piézométrie).

### Input

| Field | Type | Description |
|---|---|---|
| `recherches` | string[] | Each entry is either a 5-digit INSEE commune code (e.g. `"75056"`) or a free-text address/place name (e.g. `"Bordeaux"`). Required. |
| `includeRestrictions` | boolean | Include the full list of concrete usage restrictions per zone. Default `true`. |
| `includeEauxSouterraines` | boolean | Also fetch nearby groundwater monitoring station metadata. Default `false`. |
| `maxStationsEauxSouterrainesParRecherche` | integer | Max groundwater stations per location (1-20). Default `5`. |
| `maxResults` | integer | Maximum total records across all locations (1-2000). Default `500`. |

### Output

One flat JSON record per matched restriction zone. **Field values and content are in French** — this
Actor's audience reads French, not Dutch or English, for the substantive fields:

```json
{
  "land": "FR",
  "tipo": "zone",
  "recherche": "Bordeaux",
  "inseeCode": "33063",
  "zoneCode": "75_33_32",
  "nomZone": "ZA Jalle de Blanquefort",
  "typeZone": "SUP",
  "niveauGravite": "alerte_renforcee",
  "departement": "33",
  "restrictions": [
    {
      "nom": "Arrosage des jardins potagers y compris serres non agricoles",
      "thematique": "Arroser",
      "description": "Interdiction de 8h à 20h.",
      "concerneParticulier": true,
      "concerneEntreprise": true,
      "concerneCollectivite": true,
      "concerneExploitation": false
    }
  ],
  "arreteUrl": "https://.../AP-secheresse-16-07-26.pdf",
  "arreteKaderUrl": "https://.../ACD-...pdf",
  "bronDatum": "2026-07-17",
  "arreteFinValidite": null,
  "bronUrl": "https://api.vigieau.beta.gouv.fr/api/zones?lat=44.85&lon=-0.59",
  "datumOpgehaald": "2026-07-19T08:00:00.000Z"
}
````

When `includeEauxSouterraines` is enabled, additional records with `"tipo": "station_piezometrique"` are
included (station code, name, département, coordinates).

A location can match more than one zone at once (e.g. a separate surface-water and groundwater zone) — each
is returned as its own record.

### Use cases

- Agricultural/insurance risk screening for French farms or irrigation-dependent businesses.
- Compliance monitoring for industrial sites (ICPE) subject to water-use restrictions.
- Real estate due diligence on structurally water-stressed locations.
- Feeding a scheduled pipeline that alerts when a location's restriction level worsens.

### Pricing

This Actor uses Apify's Pay-Per-Event (PPE) pricing model.

- **Actor Start:** $0.00005 (Apify default)
- **`zone-record`:** $0.004 per delivered restriction-zone record
- **`station-piezometrique-record`:** $0.002 per delivered groundwater station record (only when enabled)
- **`alerte-restriction-severe`:** $0.015 per zone record at the `alerte_renforcee` or `crise` severity level

### Legal

Data sourced exclusively from official French government platforms: VigiEau (Ministère de la Transition
écologique, Open Licence 2.0/Etalab) and Hub'Eau Piézométrie (BRGM/ADES). No personal data is stored — input
addresses are only used to resolve a location, not retained as linked to any individual. This Actor reports
the latest official restriction status; it does not provide legal advice or predict future restrictions.

### FAQ

**Q: What if my address doesn't geocode?**
A: The location is skipped and a warning is logged in the run — no incorrect data is produced.

**Q: Can I use a postcode instead of an address?**
A: Yes, free-text input (address, place name, or postcode) is geocoded automatically. You can also pass an
INSEE commune code directly to skip geocoding.

**Q: Does this predict future droughts?**
A: No — only the latest officially published restriction status is reported.

**Q: Why are the output field values (restrictions, thématique, etc.) in French rather than English?**
A: The people who actually read this data — French farmers, municipalities, ICPE operators, compliance
teams — read French. Values are kept in French (matching VigiEau's own official terminology) rather than
translated into a language they'd have to translate back.

***

*Mots-clés : sécheresse France, restriction d'eau, VigiEau, arrêté sécheresse, niveau de gravité, zone
d'alerte, pénurie d'eau, irrigation agricole, ICPE.*

### Keywords

france, drought, water-restriction, secheresse, vigieau, water-scarcity, agriculture-risk, insurance-risk,
climate-risk, open-data, groundwater, hubeau

### Changelog

#### 0.2.0

- Renamed output/input fields from Dutch to French (e.g. `restricties`→`restrictions`, `naam`→`nom`,
  `geldtVoorX`→`concerneX`, `grondwaterstation`→`station_piezometrique`, `locaties`→`recherches`) — this
  Actor's audience reads French, not Dutch. Fixed a Spanish word ("escasez") that had accidentally ended
  up in the French keywords line.

#### 0.1.0

- Initial release: VigiEau restriction zone status (severity + usage restrictions) per address or INSEE
  code, with an optional Hub'Eau groundwater monitoring station layer.

# Actor input Schema

## `recherches` (type: `array`):

Each entry is either a 5-digit French INSEE commune code (e.g. "75056" for Paris) or a free-text address/place name (e.g. "Bordeaux"), which is geocoded automatically.

## `includeRestrictions` (type: `boolean`):

Include the full list of concrete usage restrictions (e.g. watering, car washing) per zone. Set to false to only get the severity level.

## `includeEauxSouterraines` (type: `boolean`):

Also fetch nearby groundwater level monitoring station metadata (Hub'Eau Piézométrie) for each location's commune.

## `maxStationsEauxSouterrainesParRecherche` (type: `integer`):

Only relevant when 'Include groundwater monitoring stations' is enabled.

## `maxResults` (type: `integer`):

Maximum total number of records to return across all locations (1-2000).

## Actor input object example

```json
{
  "recherches": [
    "Bordeaux",
    "75056"
  ],
  "includeRestrictions": true,
  "includeEauxSouterraines": false,
  "maxStationsEauxSouterrainesParRecherche": 5,
  "maxResults": 500
}
```

# 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 = {
    "recherches": [
        "Bordeaux",
        "75056"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codeclouds/fr-secheresse-monitor").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 = { "recherches": [
        "Bordeaux",
        "75056",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("codeclouds/fr-secheresse-monitor").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "recherches": [
    "Bordeaux",
    "75056"
  ]
}' |
apify call codeclouds/fr-secheresse-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=codeclouds/fr-secheresse-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "France Drought & Water Restriction Monitor (VigiEau)",
        "description": "Current French drought/water-restriction zone status (vigilance/alerte/alerte renforcée/crise) and concrete usage restrictions per address or INSEE commune code, from the official VigiEau platform.",
        "version": "0.2",
        "x-build-id": "cAmBKIYYRxNWPnPqY"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/codeclouds~fr-secheresse-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-codeclouds-fr-secheresse-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/codeclouds~fr-secheresse-monitor/runs": {
            "post": {
                "operationId": "runs-sync-codeclouds-fr-secheresse-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/codeclouds~fr-secheresse-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-codeclouds-fr-secheresse-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "recherches"
                ],
                "properties": {
                    "recherches": {
                        "title": "Locations",
                        "type": "array",
                        "description": "Each entry is either a 5-digit French INSEE commune code (e.g. \"75056\" for Paris) or a free-text address/place name (e.g. \"Bordeaux\"), which is geocoded automatically.",
                        "default": [
                            "Bordeaux",
                            "75056"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeRestrictions": {
                        "title": "Include usage restrictions",
                        "type": "boolean",
                        "description": "Include the full list of concrete usage restrictions (e.g. watering, car washing) per zone. Set to false to only get the severity level.",
                        "default": true
                    },
                    "includeEauxSouterraines": {
                        "title": "Include groundwater monitoring stations",
                        "type": "boolean",
                        "description": "Also fetch nearby groundwater level monitoring station metadata (Hub'Eau Piézométrie) for each location's commune.",
                        "default": false
                    },
                    "maxStationsEauxSouterrainesParRecherche": {
                        "title": "Max groundwater stations per location",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Only relevant when 'Include groundwater monitoring stations' is enabled.",
                        "default": 5
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 2000,
                        "type": "integer",
                        "description": "Maximum total number of records to return across all locations (1-2000).",
                        "default": 500
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
