81trust / 100

Address Geocode

by d21 address_geocode in Weather & location

x402 APIPassing, checked 37 min ago

Address Geocode ($0.008 — below the category-leading "geocoding" comparable's $0.01): forward + reverse U.S. geocoding in one route, built entirely on the U.S. Census Bureau's free, keyless Geocoder API (a federal government service, not a resold third-party product). Accepts `q` as an alias for `address` (the leading comparable's exact param name), and every response carries an additive `count`/`items[]` block in that comparable's field-name shape. Body { address (or q) } for forward…

POST https://draconic21-x402-api.onrender.com/v1/address_geocode

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
209 ms typical, 209 ms slowest 5%
Last check
37 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://draconic21-x402-api.onrender.com/v1/address_geocode" \
  -H "content-type: application/json" \
  -d '{"address":"4600 Silver Hill Rd, Washington, DC 20233"}'
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%2Fdraconic21-x402-api.onrender.com%2Fv1%2Faddress_geocode
const res = await pay("https://draconic21-x402-api.onrender.com/v1/address_geocode", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"4600 Silver Hill Rd, Washington, DC 20233"}),
});
console.log(await res.json());

Example input

{
  "address": "4600 Silver Hill Rd, Washington, DC 20233"
}

Example output

{
  "caveats": [
    "Coverage is the United States only (Census Bureau public address ranges and TIGER/Line geo…"
  ],
  "count": 1,
  "items": [
    {
      "address": {
        "city": "Washington",
        "country": "United States"
      },
      "displayName": "4600 SILVER HILL RD, WASHINGTON, DC, 20233",
      "lat": 38.845,
      "lon": -76.928,
      "type": "geocode"
    }
  ],
  "matched": true,
  "matches": [
    {
      "latitude": 38.845,
      "longitude": -76.928,
      "matched_address": "4600 SILVER HILL RD, WASHINGTON, DC, 20233"
    }
  ],
  "mode": "forward"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
37 min agoPassed402228 ms$0.008
6 h agoPassed402209 ms$0.008