# IP Geolocation โ€” Zapi reference > IP geolocation lookup โ€” country, region, city, ISP, ASN, koordinat untuk IPv4 dan IPv6. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/dev-tools/ip-geo - Endpoint catalog: https://zpi.web.id/category/dev-tools - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## IP Geolocation **Category:** dev-tools ยท **Slug:** `ip-geo` **Detail page:** https://zpi.web.id/api/dev-tools/ip-geo IP geolocation lookup โ€” country, region, city, ISP, ASN, koordinat untuk IPv4 dan IPv6. **Tags:** ip, geolocation, asn, isp ### Lookup Perform lookup dengan input yang diberikan. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/dev-tools:ip-geo/lookup` - **Cache TTL:** 300s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `ip` | string | query | yes | IP address (IPv4 atau IPv6) | **cURL:** ```bash curl "https://api.zpi.web.id/v1/dev-tools:ip-geo/lookup?ip=8.8.8.8" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/dev-tools:ip-geo/lookup?ip=8.8.8.8", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/dev-tools:ip-geo/lookup?ip=8.8.8.8", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "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" } ``` --- _Generated: 2026-08-02T14:21:41.469Z_