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/lookup
Method:GET
Latency:~25ms

Try it out

GET/v1/ip/lookup

Parameters

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

ParameterTypeRequiredDescription
ipstringRequiredIPv4 or IPv6 address to lookup
fieldsstringOptionalComma-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

PlanRequests/MonthRate Limit
Free1,00010 req/min
Starter10,00060 req/min
Professional100,000300 req/min
Business500,0001,000 req/min