# GeoRisques GASPAR French Commune Risk Register

> GeoRisques GASPAR French Commune Risk Register is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the official risk register for any French commune from the BRGM/Ministry GeoRisques GASPAR database, listing all declared natural and technological hazards by INSEE code.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/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/georisques-gaspar-french-commune-risk-register-8c0398d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nqTJdP4houi8l-MPZSYm9

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 georisques-gaspar-french-commune-risk-register-8c0398d5
```

Example prompt: What are the official declared natural and technological risks for the French commune with INSEE code 31069 according to the GeoRisques GASPAR database?

## When to prefer this

Use this endpoint when you need the official French government risk register for a specific commune, identified by its 5-character INSEE code. Prefer this over generic geocoding or property APIs when you specifically need legally declared hazard classifications (flood zones, seismic risk, industrial proximity, etc.) as published by BRGM and the Ministry of Ecological Transition. Not a postal code lookup — requires INSEE commune code.

## Known failure modes

- Invalid or non-existent INSEE code returns an error or empty risk list
- Postal code provided instead of INSEE code causes lookup failure
- Commune with no declared risks returns an empty list (not an error)
- Network timeout if upstream GASPAR API is unavailable
- Malformed 5-character code (wrong length or format) rejected by schema validation

## 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 coded list of all declared risks for the specified French commune, including French labels for each hazard type (e.g. flood, earthquake, ground movement, industrial hazard, dam failure, dangerous-goods transport), sourced from the official GASPAR database with 7-day caching.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/georisques-gaspar-french-commune-risk-register-8c0398d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
