IP address lookup
ip_lookupFind where an IP address is: country, region, city, continent and approximate coordinates, for IPv4 or IPv6. City-level accuracy, not a street address. Data: IP Geolocation by DB-IP (db-ip.com), CC BY 4.0.
$0.002 USDC per call over x402. Failed calls cost nothing. Call without payment to get a quote.
When to use: You need roughly where an IP address is. Parameters: ip: one IPv4 or IPv6 address. Private and reserved addresses are refused free. Returns: country, region, city, continent and approximate latitude/longitude (city level, not a street address).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ip": "<ip>"
},
"name": "ip_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IPv4 or IPv6 address. | |
| payment | No | Base64 x402 payment payload. Omit it to receive a quote; sign that and call again. |