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

WhenResultHTTPTimePrice
2 h agoPassed402320 ms$0.0025
6 h agoPassed402184 ms$0.0025
9 h agoPassed402216 ms$0.0025
13 h agoPassed402250 ms$0.0025
17 h agoPassed402193 ms$0.0025
20 h agoPassed402196 ms$0.0025
23 h agoPassed402293 ms$0.0025
27 h agoPassed402224 ms$0.0025
31 h agoPassed402280 ms$0.0025
35 h agoPassed402257 ms$0.0025
38 h agoPassed402310 ms$0.0025
42 h agoPassed402243 ms$0.0025
45 h agoPassed402322 ms$0.0025
2 days agoPassed402306 ms$0.0025