78trust / 100

Geo Forward

by api.x-402.online in Weather & location

x402 APIPassing, checked 3 h ago

Turn an address into coordinates: BAN for France (INSEE code, score), OpenStreetMap elsewhere. Address to coordinates: for France the official BAN registry (house number, street, postcode, city, INSEE code, match score), elsewhere OpenStreetMap Nominatim. Query: ?q=8 rue de la Paix Paris&country=fr&limit=1

GET https://api.x-402.online/v1/geo/forward

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.x-402.online/v1/geo/forward?q=8+rue+de+la+Paix+75002+Paris"
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%2Fapi.x-402.online%2Fv1%2Fgeo%2Fforward
const res = await pay("https://api.x-402.online/v1/geo/forward?q=8+rue+de+la+Paix+75002+Paris");
console.log(await res.json());

Example input

{
  "q": "8 rue de la Paix 75002 Paris"
}

Example output

{
  "best": {
    "city": "Paris",
    "insee_code": "75102",
    "lat": 48.8698,
    "lon": 2.331,
    "postcode": "75002",
    "score": 0.97,
    "source": "BAN (api-adresse.data.gouv.fr)"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402904 ms$0.005
7 h agoPassed402700 ms$0.005
10 h agoPassed402586 ms$0.005
14 h agoPassed402734 ms$0.005
18 h agoPassed402591 ms$0.005
22 h agoPassed402561 ms$0.005
25 h agoPassed402578 ms$0.005
29 h agoPassed402552 ms$0.005
32 h agoPassed402671 ms$0.005
36 h agoPassed402540 ms$0.005
41 h agoPassed402833 ms$0.005