IP geolocation lookup — country, region, city, ISP, ASN, koordinat untuk IPv4 dan IPv6.
Perform lookup dengan input yang diberikan.
/v1/dev-tools:ip-geo/lookup5m cache1 paramchecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("dev-tools:ip-geo", "lookup", {
"ip": "8.8.8.8"
});
console.log(data);/v1/dev-tools:ip-geo/lookupipstringrequiredcurl -X GET "https://api.zapi.ink/v1/dev-tools:ip-geo/lookup?ip=8.8.8.8" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ip": "8.8.8.8",
"asn": "AS15169 Google LLC",
"isp": "Google LLC",
"org": "Google Public DNS",
"zip": "20149",
"city": "Ashburn",
"region": "VA",
"source": "geo",
"country": "United States",
"latitude": 39.03,
"timezone": "America/New_York",
"longitude": -77.5,
"regionName": "Virginia",
"countryCode": "US"
}