78trust / 100

Ip Geo

by agentshelf.syntexa.ch in Weather & location

x402 APIPassing, checked 2 h ago

Call when an agent needs IP geolocation: country, region, city, coordinates, ASN, and ISP for a public IPv4 or IPv6 address. Use it to place a public IP. Private and metadata addresses are rejected. Send JSON {"ip":"8.8.8.8"}. Exact $0.003 USDC on Base. Try unpaid POST /v1/sandbox/ip-geo first.

POST https://agentshelf.syntexa.ch/v1/ip-geo

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
30 ms typical, 33 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 POST "https://agentshelf.syntexa.ch/v1/ip-geo" \
  -H "content-type: application/json" \
  -d '{"ip":"8.8.8.8"}'
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%2Fagentshelf.syntexa.ch%2Fv1%2Fip-geo
const res = await pay("https://agentshelf.syntexa.ch/v1/ip-geo", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"ip":"8.8.8.8"}),
});
console.log(await res.json());

Example input

{
  "ip": "8.8.8.8"
}

Example output

{
  "asn": 15169,
  "billed": true,
  "city": "San Jose",
  "country": "United States",
  "country_code": "US",
  "ip": "8.8.8.8",
  "isp": "Google LLC",
  "latitude": 37.3394,
  "longitude": -121.895,
  "ok": true,
  "org": "Google LLC",
  "receipt_id": "rcpt_01EXAMPLE000000000000000",
  "region": "California",
  "warnings": []
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40229 ms$0.003
6 h agoPassed40230 ms$0.003
9 h agoPassed40229 ms$0.003
13 h agoPassed40230 ms$0.003
17 h agoPassed40230 ms$0.003
20 h agoPassed40231 ms$0.003
23 h agoPassed40231 ms$0.003
27 h agoPassed40229 ms$0.003
31 h agoPassed40233 ms$0.003
35 h agoPassed40230 ms$0.003
38 h agoPassed40230 ms$0.003
42 h agoPassed40229 ms$0.003
45 h agoPassed40231 ms$0.003
2 days agoPassed402277 ms$0.003