81trust / 100

Proxy Postal Code

by Postal Code Lookup in Developer tools

x402 APIPassing, checked 16 min ago

Postal codes for 70 countries (GeoNames via zippopotam.us): postal code to place names, state and coordinates, or city + state to all its postal codes. For GB, CA and IE only the outward part (e.g. SW1A) is resolved. Params: country (ISO2, required), postal_code, or city + state (state abbreviation, e.g. CA, BY).

POST https://agentsvc.io/api/v1/proxy/postal-code

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
32 ms typical, 32 ms slowest 5%
Last check
16 min ago
Next check
in 14 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/postal-code" \
  -H "content-type: application/json" \
  -d '{"country":"DE","postal_code":"80331"}'
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%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fpostal-code
const res = await pay("https://agentsvc.io/api/v1/proxy/postal-code", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"country":"DE","postal_code":"80331"}),
});
console.log(await res.json());

Example input

{
  "country": "DE",
  "postal_code": "80331"
}

Example output

{
  "data": {
    "country": "DE",
    "found": true,
    "places": [
      {
        "lat": 48.1345,
        "lon": 11.571,
        "place": "München",
        "state": "Bayern",
        "state_code": "BY"
      }
    ],
    "postal_code": "80331",
    "source": "zippopotam.us (GeoNames)"
  },
  "success": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
16 min agoPassed40233 ms$0.0025
5 h agoPassed40232 ms$0.0025