Map any IP address to a location
One REST call returns the country, city, coordinates, and timezone for an IP address. Send an IP, or leave it blank to locate the caller. Built for developers.
What comes back
Location data for the IP, from country all the way down to city and postal code where available.
What you can do with it
Enough location signal to personalize, route, and analyze by geography.
Country down to city
Coordinates and timezone
IPv4 and IPv6
Look up the caller
Common use cases
A single GET request
Send an IP, get its location back. No SDK required.
# IP in, location out curl "https://api.sthan.io/IpGeolocation/72.229.28.185" \ -H "Authorization: Bearer YOUR_API_KEY"
{
"ipAddress": "72.229.28.185",
"country": "United States",
"countryCode": "US",
"region": "New York",
"city": "New York",
"latitude": 40.7263,
"longitude": -73.9818,
"continent": "North America",
"timezone": "America/New_York",
"postalCode": "10009"
}
Start free, scale when you need to
A generous free tier, then plans by request volume. Annual saves up to about 40%.
Higher volumes and annual discounts on the plans page.
Questions developers ask
What data does it return?
Country, region, city and postal code where available, plus latitude, longitude, continent, and timezone for the IP you send.
Does it accept IPv4 and IPv6?
Yes. Send either format. Leave the input blank and it geolocates the caller's own IP.
How precise is the location?
IP geolocation resolves to a city or region, not a street address. Some IPs, such as large infrastructure ranges, resolve only to a country.
What do I need to get started?
An email address. Sign up, grab your API key, and send your first request. The free tier gives you 50,000 lookups a month with no card on file.
Locate your first IP in two minutes
Sign up, copy your key, make the call. 50,000 lookups a month, free.
Get your free API key