82trust / 100
Ip
by IP Geolocation in Weather & location
x402 APIPassing, checked 31 min ago
IP geolocation: give an IPv4 or IPv6 address, get its country, region, city, continent and approximate coordinates.
POST https://data.tollkit.dev/ip
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 127 ms typical, 127 ms slowest 5%
- Last check
- 31 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://data.tollkit.dev/ip" \
-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%2Fdata.tollkit.dev%2Fip
const res = await pay("https://data.tollkit.dev/ip", {
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
{
"attribution": "IP Geolocation by DB-IP (https://db-ip.com), licensed CC BY 4.0",
"city": "Mountain View",
"continent": {
"code": "NA",
"name": "North America"
},
"country": {
"code": "US",
"in_eu": false,
"name": "United States"
},
"database": "DB-IP City Lite 2026-10",
"ip": "8.8.8.8",
"latitude": 37.422,
"longitude": -122.085,
"precision": "City-level and approximate. Not a street address.",
"region": "California"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 31 min ago | Passed | 402 | 325 ms | $0.002 |
| 6 h ago | Passed | 402 | 127 ms | $0.002 |