# greeneris-data French Commune Natural Risk Lookup

> greeneris-data French Commune Natural Risk Lookup is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns all catalogued natural and industrial risks for a French commune using its 5-character INSEE code, sourced from the official GeoRisques GASPAR registry

## Facts

- Endpoint: GET https://data.greeneris.io/v1/fr/risks
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-data-french-commune-natural-risk-lookup-5f0e67c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__UBnKO_Lsi_gyZwiiOecN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability greeneris-data-french-commune-natural-risk-lookup-5f0e67c8
```

Example prompt: What are all the natural and industrial risks listed for the French commune with INSEE code 31069 (Blagnac)? Pull the official GeoRisques GASPAR data.

## When to prefer this

Use this endpoint when you need official French government risk data for a specific commune — for real estate due diligence, insurance underwriting, property disclosure compliance (Plan de Prévention des Risques), or environmental screening. Prefer this over generic web searches because it returns structured, machine-readable data from the authoritative GASPAR registry with no personal data exposure. Requires a valid 5-char INSEE code, not a postal code.

## Known failure modes

- Invalid or non-existent INSEE code returns an empty result or error
- Postal code mistakenly supplied instead of INSEE code (different format) causes no match
- 2A/2B Corsican codes may require special handling
- Commune has no registered risks — returns empty risks array
- Network or upstream GeoRisques API unavailability causes 5xx response
- Missing required code_insee parameter returns a 400 or schema validation error

## How this service works

Official risk register for any French commune from the GeoRisques GASPAR database (BRGM / Ministry of Ecological Transition, Licence Ouverte): flood, earthquake, industrial hazard, dam failure, ground movement, dangerous-goods transport, etc. Query: ?code_insee=31069 (INSEE commune code, not a postal code). Returns coded risk list with French labels. Slow-moving data, cached 7 days.

## Output

A JSON object containing an array of risks (each with a hierarchical code and French label such as 'Inondation' or 'Rupture de barrage'), the commune name, its INSEE code, the total risk count, and a source attribution string pointing to georisques.gouv.fr.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "code_insee"
     ],
     "properties": {
      "code_insee": {
       "type": "string",
       "description": "5-char INSEE commune code, e.g. 31069 or 2A004 (not a postal code)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "risks": [
   {
    "code": "11",
    "label": "Inondation"
   },
   {
    "code": "112",
    "label": "Par une crue à débordement lent de cours d'eau"
   },
   {
    "code": "21",
    "label": "Risque industriel"
   },
   {
    "code": "211",
    "label": "Effet thermique"
   },
   {
    "code": "23",
    "label": "Rupture de barrage"
   }
  ],
  "source": "GeoRisques GASPAR (georisques.gouv.fr, BRGM/MTE, Licence Ouverte)",
  "commune": "BLAGNAC",
  "code_insee": "31069",
  "risk_count": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-french-commune-natural-risk-lookup-5f0e67c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
