80trust / 100
Lookup Ip
by ip-geo-api-production.up.railway.app in Weather & location
x402 APIPassing, checked 7 min ago
Geolocate an IPv4/IPv6 address: country, region, city, postcode, lat/lng, timezone, ISP, org, ASN, and a datacenter heuristic.
POST https://ip-geo-api-production.up.railway.app/lookup/ip
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 368 ms typical, 368 ms slowest 5%
- Last check
- 7 min ago
- Next check
- in 24 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://ip-geo-api-production.up.railway.app/lookup/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%2Fip-geo-api-production.up.railway.app%2Flookup%2Fip
const res = await pay("https://ip-geo-api-production.up.railway.app/lookup/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
{
"asn": "AS15169",
"city": "Ashburn",
"country": "United States",
"country_code": "US",
"found": true,
"ip": "8.8.8.8",
"is_datacenter": true,
"is_proxy": null,
"is_vpn": null,
"isp": "Google LLC",
"latitude": 39.03,
"longitude": -77.5,
"org": "Google Public DNS",
"postal_code": "20149",
"region": "Virginia",
"region_code": "VA",
"source": "ip-api.com",
"timezone": "America/New_York"
}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 |
|---|---|---|---|---|
| 7 min ago | Passed | 402 | 368 ms | $0.001 |
| 3 h ago | Passed | 402 | 470 ms | $0.001 |
| 9 h ago | Passed | 402 | 343 ms | $0.001 |