GeoIP Lookup
GeoIP Lookup
Available for Starter plans and above
The GeoIP API provides IP address geolocation data.
API Endpoints
| Endpoint | Description |
|---|---|
GET /api/geoip/{ipAddress} |
Full lookup for any IP |
GET /api/geoip/me |
Full lookup for your own IP |
GET /api/geoip/simple/{ipAddress} |
Simple lookup (country, city) |
GET /api/geoip/simple/me |
Simple lookup for your own IP |
Data Returned
Full lookup includes:
- Country (name, code, EU flag)
- Continent
- Region/subdivision
- City and postal code
- Latitude/longitude with accuracy radius
- Time zone
- ISP and organisation
- AS number
- Connection type
- Mobile carrier (MCC/MNC)
Caching
Results are cached in the GeoIpCache table to avoid redundant API calls to MaxMind. Subsequent lookups for the same IP are served from the database cache.
Usage in Analytics
GeoIP data is automatically used for link click analytics — every click records the visitor's country, city, continent, region, timezone, ISP, and connection type (on Professional/Unlimited plans).