82trust / 100

Fr Geocode

by eu-verify in Weather & location

x402 APIPassing, checked 2 h ago

French address geocoding on the official Base Adresse Nationale (api-adresse.data.gouv.fr, Etalab/IGN, continuously updated). Forward: ?q=8 boulevard du port amiens with optional &type=housenumber|street|locality|municipality &citycode=80021 (INSEE filter). Reverse: ?lat=49.897&lon=2.290. &limit=1-10 (default 3). Each match returns normalized label, confidence score, lat/lon, street, postcode, city, INSEE citycode and context. No match returns 400 (not billed). Cached 24h.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
177 ms typical, 177 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://data.greeneris.io/v1/fr/geocode?limit=1&q=8+boulevard+du+port+amiens"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdata.greeneris.io%2Fv1%2Ffr%2Fgeocode
const res = await pay("https://data.greeneris.io/v1/fr/geocode?limit=1&q=8+boulevard+du+port+amiens");
console.log(await res.json());

Example input

{
  "limit": 1,
  "q": "8 boulevard du port amiens"
}

Example output

{
  "count": 1,
  "matches": [
    {
      "city": "Amiens",
      "citycode": "80021",
      "context": "80, Somme, Hauts-de-France",
      "housenumber": "8",
      "label": "8 Boulevard du Port 80000 Amiens",
      "lat": 49.897442,
      "lon": 2.290084,
      "postcode": "80000",
      "score": 0.97072,
      "street": "Boulevard du Port",
      "type": "housenumber"
    }
  ],
  "mode": "search",
  "query": "8 boulevard du port amiens",
  "source": "Base Adresse Nationale via api-adresse.data.gouv.fr (Etalab/IGN, Licence Ouverte 2.0)"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402334 ms$0.001
7 h agoPassed402177 ms$0.001