A

Ai Rook · IP Lookup

by Ai Rook

GETBaseSolana

$0.001

per call · USD Coin on Base

IP geolocation, ASN, and proxy/VPN detection. Pass ?ip=x.x.x.x or omit for caller IP.

Endpoint

GET https://agents.ai-rook.com/api/ip-lookup

34

Calls / 30d

5

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agents.ai-rook.com/api/ip-lookup", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agents.ai-rook.com/api/ip-lookup?ip=8.8.8.8" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "asn": "AS15169",
  "city": "Mountain View",
  "country": "US",
  "ip": "8.8.8.8",
  "org": "Google LLC",
  "proxy": false,
  "vpn": false
}

Payment details

Pay to0xd5f96558fcb1f127c77c7d95eea067f526d08618
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Ai Rook & similar services