78trust / 100
Geo Ip
by 2s in Weather & location
x402 APIPassing, checked 2 h ago
Geolocate a single IPv4 or IPv6 address. Returns country (name + ISO code), region (name + code), city, ZIP, lat/lon, timezone, ISP, organization, and AS number + name. For bulk lookups (up to 100 IPs in one call) use /api/ipinfo/bulk instead. Lat/lon precision is city-level, not GPS.
GET https://2s.io/api/geo/ip
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 250 ms typical, 320 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 GET "https://2s.io/api/geo/ip?ip=xx"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%2F2s.io%2Fapi%2Fgeo%2Fip
const res = await pay("https://2s.io/api/geo/ip?ip=xx");
console.log(await res.json());Example input
{
"ip": "xx"
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 320 ms | $0.0025 |
| 6 h ago | Passed | 402 | 184 ms | $0.0025 |
| 9 h ago | Passed | 402 | 216 ms | $0.0025 |
| 13 h ago | Passed | 402 | 250 ms | $0.0025 |
| 17 h ago | Passed | 402 | 193 ms | $0.0025 |
| 20 h ago | Passed | 402 | 196 ms | $0.0025 |
| 23 h ago | Passed | 402 | 293 ms | $0.0025 |
| 27 h ago | Passed | 402 | 224 ms | $0.0025 |
| 31 h ago | Passed | 402 | 280 ms | $0.0025 |
| 35 h ago | Passed | 402 | 257 ms | $0.0025 |
| 38 h ago | Passed | 402 | 310 ms | $0.0025 |
| 42 h ago | Passed | 402 | 243 ms | $0.0025 |
| 45 h ago | Passed | 402 | 322 ms | $0.0025 |
| 2 days ago | Passed | 402 | 306 ms | $0.0025 |