78trust / 100

Geocode Address

by 2s in Weather & location

x402 APIPassing, checked 2 h ago

Forward geocoding — free-text address or place name → latitude/longitude plus structured address components (houseNumber, road, suburb, city, county, state, postcode, country, countryCode). Query: q (2-500 chars), limit (1-10, default 5), country (optional 2-letter ISO 3166-1 bias). Underlying data is OpenStreetMap (ODbL). Sister: /api/geocode/reverse.

GET https://2s.io/api/geocode/address

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
256 ms typical, 407 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://2s.io/api/geocode/address?country=example&limit=5&q=xx"
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%2F2s.io%2Fapi%2Fgeocode%2Faddress
const res = await pay("https://2s.io/api/geocode/address?country=example&limit=5&q=xx");
console.log(await res.json());

Example input

{
  "country": "example",
  "limit": 5,
  "q": "xx"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402175 ms$0.0025
6 h agoPassed402332 ms$0.0025
9 h agoPassed402168 ms$0.0025
13 h agoPassed402174 ms$0.0025
17 h agoPassed402407 ms$0.0025
20 h agoPassed402183 ms$0.0025
23 h agoPassed402373 ms$0.0025
27 h agoPassed402251 ms$0.0025
31 h agoPassed402403 ms$0.0025
35 h agoPassed402339 ms$0.0025
38 h agoPassed402425 ms$0.0025
42 h agoPassed402256 ms$0.0025
45 h agoPassed402405 ms$0.0025
2 days agoPassed402160 ms$0.0025