80trust / 100

Geocode Reverse

by geocode-reverse in Weather & location

x402 APIPassing, checked 1 h ago

Reverse-geocode coordinates (WORLDWIDE) to a street address + parsed components via OpenStreetMap Nominatim; enriched with the nearest NWS city/state when the point is in the US.

GET https://api.agentstools.dev/geocode/reverse

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.agentstools.dev/geocode/reverse?lat=38.9&lon=-77.04"
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.agentstools.dev%2Fgeocode%2Freverse
const res = await pay("https://api.agentstools.dev/geocode/reverse?lat=38.9&lon=-77.04");
console.log(await res.json());

Example input

{
  "lat": 38.9,
  "lon": -77.04
}

Example output

{
  "components": {
    "city": "Washington",
    "country": "United States",
    "country_code": "us",
    "county": "District of Columbia",
    "postcode": "20500",
    "state": "District of Columbia"
  },
  "country": "United States",
  "country_code": "us",
  "lat": 38.9,
  "lon": -77.04,
  "matched_address": "Washington, District of Columbia, USA",
  "nearest_city": "Washington",
  "nearest_state": "DC",
  "source": "osm_nominatim"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed40233 ms$0.002
5 h agoPassed40239 ms$0.002
8 h agoPassed40281 ms$0.002
12 h agoPassed40224 ms$0.002
15 h agoPassed40295 ms$0.002
20 h agoPassed40273 ms$0.002
23 h agoPassed40228 ms$0.002
26 h agoPassed40226 ms$0.002
32 h agoPassed40227 ms$0.002