Look up a public IP (RDAP + reverse DNS)
ip_lookup[PAID $0.005 USDC per call via x402 on Base; errors are free] Given a public IPv4 or IPv6 address (default 1.1.1.1), returns the RDAP registration record from rdap.org (network name, handle, type, country, start/end, CIDRs, org when present) and the reverse DNS PTR via Cloudflare DNS-over-HTTPS. Private, reserved and documentation ranges are rejected (400, not charged). This is not a city-level geolocation product and does not use a paid IP-intel vendor. Two outbound requests, 5 s RDAP / 4 s DNS timeouts. Missing RDAP with no PTR = 404; both sources down = 502; never charged on errors.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ip_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Public IPv4 or IPv6 address to look up (default 1.1.1.1). Private/reserved addresses are rejected. |