IP geolocation lookup — country, region, city, ISP, ASN, koordinat untuk IPv4 dan IPv6.
lookuppassing, 0.1s/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);curl -X GET "https://api.zpi.web.id/v1/dev-tools:ip-geo/lookup?ip=8.8.8.8" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/dev-tools:ip-geo/lookupPerform lookup dengan input yang diberikan.ipstringrequiredcurl -X GET "https://api.zpi.web.id/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"
}