Geolocation
IP Geolocation API
Get accurate location data from any IP address. Returns country, city, timezone, currency, ISP information, and security threat detection.
Endpoint:
/v1/ip/lookupMethod:GET
Latency:~25ms
Try it out
GET
/v1/ip/lookupParameters
Code
curl
curl -X GET "https://khaleejiapi.dev/api/v1/ip/lookup?ip=8.8.8.8" \ -H "X-API-Key: your_api_key"Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ip | string | Required | IPv4 or IPv6 address to lookup |
| fields | string | Optional | Comma-separated list of fields to return |
Response Fields
country, country_code
ISO 3166-1 country name and alpha-2 code
city, region, postal_code
City-level location data with postal/ZIP code
latitude, longitude
Geographic coordinates of the IP location
connection
ISP, organization, ASN, and connection type (residential, datacenter, mobile)
security
Threat detection flags for proxy, VPN, Tor, and datacenter IPs
Rate Limits
| Plan | Requests/Month | Rate Limit |
|---|---|---|
| Free | 1,000 | 10 req/min |
| Starter | 10,000 | 60 req/min |
| Professional | 100,000 | 300 req/min |
| Business | 500,000 | 1,000 req/min |