E

eu-verify · FR Communes

by eu-verify

GETBase

$0.001

per call · USD Coin on Base

Official French administrative reference from geo.api.gouv.fr (INSEE/IGN data). Look up communes by ?cp=31700 (postal code), ?code=31056 (INSEE), ?nom=Blagnac (fuzzy name) or ?lat=43.63&lon=1.37 (commune containing a point). Returns up to 20 communes with name, INSEE code, population, postal codes, departement, region and EPCI. The postal-to-INSEE mapping is the pivot key for joining French territorial datasets. Cached 7 days.

Endpoint

GET https://data.greeneris.io/v1/fr/communes

1

Calls / 30d

1

Unique payers / 30d

Aug 27

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://data.greeneris.io/v1/fr/communes", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://data.greeneris.io/v1/fr/communes?cp=31700" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "communes": [
    {
      "departement": {
        "code": "31",
        "nom": "Haute-Garonne"
      },
      "epci": {
        "code": "243100518",
        "nom": "Toulouse Métropole"
      },
      "insee_code": "31056",
      "name": "Beauzelle",
      "population": 8713,
      "postal_codes": [
        "31700"
      ],
      "region": {
        "code": "76",
        "nom": "Occitanie"
      }
    },
    {
      "departement": {
        "code": "31",
        "nom": "Haute-Garonne"
      },
      "epci": {
        "code": "243100518",
        "nom": "Toulouse Métropole"
      },
      "insee_code": "31069",
      "name": "Blagnac",
      "population": 27604,
      "postal_codes": [
        "31700"
      ],
      "region": {
        "code": "76",
        "nom": "Occitanie"
      }
    }
  ],
  "count": 2,
  "source": "geo.api.gouv.fr decoupage administratif (Etalab, INSEE/IGN data, Licence Ouverte 2.0)"
}

Payment details

Pay to0x6ab8efe305cce67daa48c97bde29c04402822dff
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from eu-verify & similar services