The complete Geo & Location API toolkit
City-level IP geolocation, Haversine distance calculation, timezone lookup, country data, and bulk operations — powered by GeoLite2.
curl -G "https://geo.toolkitapi.io/v1/geo/ip-lookup" \
-H "X-API-Key: YOUR_KEY" \
--data-urlencode "ip=8.8.8.8"
import httpx
resp = httpx.get(
"https://geo.toolkitapi.io/v1/geo/ip-lookup",
headers={"X-API-Key": "YOUR_KEY"},
params={"ip": "8.8.8.8"},
)
data = resp.json()
print(f"{data['city']}, {data['country']}")
const resp = await fetch(
"https://geo.toolkitapi.io/v1/geo/ip-lookup?ip=8.8.8.8",
{
headers: { "X-API-Key": "YOUR_KEY" },
}
);
const data = await resp.json();
console.log(`${data.city}, ${data.country}`);
Browse by Category
Everything you need for geographic intelligence and location data.
IP Geolocation
3 toolsConvert IP addresses to physical locations with city-level accuracy.
Distance & Routing
2 toolsCalculate distances between coordinates and find nearby points.
Timezone
3 toolsTimezone lookup by coordinates, conversion, and current time.
Country Data
2 toolsCountry info, currency, dialling codes, and border data.
Built for Developers
Designed to simplify your workflow, not complicate it.
City-Level Accuracy
GeoLite2 database with city, region, country, and postal code for any IP.
Sub-10ms Lookups
Local MaxMind database — no external API calls, no rate limits, instant results.
Haversine Distance
Calculate great-circle distance between any two coordinates in km or miles.
Timezone Intelligence
Current time, UTC offset, DST status, and timezone conversion for any location.
Start building with location data in minutes
One API key. 10 endpoints. IP geolocation, distances, timezones, and more.
Get an API Key →