IP Geolocation API

Map any IP address to a location

One REST call returns where an IP address is, from country to city and postal code with local time and flag, and what it is: the network, ISP, and whether it is a proxy or a data centre. Send an IP, or leave it blank to locate the caller. Built for developers.

✓ 50,000 lookups/month free ✓ No credit card ✓ Cancel anytime
Try it · live
Enter an IP address

Returns country, city, postalCode, coordinates, timezone with local time, the flag, currency and calling code, the network (asn, isp), proxy and hosting flags and a confidence score. Showing your own IP first; type any IP to look it up.

- ms 0 used today 500 left today
One call, every field

What comes back

Location data for the IP, from country down to city and postal code where available, plus country facts derived from it at no extra cost: flag, currency, calling code, capital, languages, borders, EU membership, and the current local time. The network behind the address comes too: ASN, ISP and organisation, whether it is a mobile carrier, a known proxy or VPN exit, or a data centre, its reverse DNS name, and a confidence score for the city.

ipAddress
country
countryCode
region
city
postalCode
latitude
longitude
continent
timezone
flag
currency
callingCode
capital
languages
borders
isEu
timezoneDetail
type
precision
asn
asName
isp
organization
isMobile
isProxy
isHosting
reverseDns
confidence
Built for real-world input

What you can do with it

Enough location signal to personalize, route, and analyze by geography.

Country down to city

country, region, city, and postal code where the IP resolves that far.

Coordinates and timezone

latitude, longitude, continent, and timezone on every lookup.

IPv4 and IPv6

8.8.8.8 or 2001:4860:4860::8888 → both address formats accepted

Look up the caller

send no IP and it geolocates the request's own address.
Where teams use it

Common use cases

Localize contentSet the default currency, language, or region from the visitor's IP.
Risk and fraud signalsFlag mismatches between the IP location and the account.
Analytics by regionGroup traffic and events by country, region, or city.
Route to the nearest regionSend users to the closest server or data center.
Copy, paste, ship

A single GET request

Send an IP, get its location back. No SDK required.

Request
# IP in, location out
curl "https://api.sthan.io/IpGeolocation/8.8.8.8" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "ipAddress": "8.8.8.8",
  "country": "United States",
  "countryCode": "US",
  "region": "California",
  "city": "Mountain View",
  "latitude": 37.422,
  "longitude": -122.085,
  "continent": "North America",
  "timezone": "America/Los_Angeles",
  "postalCode": "94043",
  "type": "IPv4",
  "precision": "city",
  "continentCode": "NA",
  "regionCode": "CA",
  "countryNativeName": "United States",
  "isEu": false,
  "callingCode": "+1",
  "capital": "Washington, D.C.",
  "borders": ["CA", "MX"],
  "currency": { "code": "USD", "name": "United States dollar", "symbol": "$" },
  "languages": ["English"],
  "tld": ".us",
  "flag": { "emoji": "πŸ‡ΊπŸ‡Έ", "svg": "https://sthan.io/flags/us.svg" },
  "timezoneDetail": { "id": "America/Los_Angeles", "utcOffset": "-07:00", "offsetSeconds": -25200, "isDst": true, "currentLocalTime": "2026-10-19T20:08:42-07:00" },
  "asn": 15169,
  "asName": "GOOGLE",
  "isp": "Google LLC",
  "organization": "Google Public DNS",
  "isMobile": false,
  "isProxy": true,
  "isHosting": true,
  "reverseDns": "dns.google",
  "confidence": 0.78
}
Simple pricing

Start free, scale when you need to

A generous free tier, then plans by request volume. Annual saves up to 50%.

Start here
Free
$0
50,000 lookups / month
No credit card
Basic
$4.50 /mo
100,000 lookups
Starter
$32 /mo
1,000,000 lookups
Business
$120 /mo
5,000,000 lookups

Higher volumes and annual discounts on the plans page.

Good to know

Questions developers ask

What data does it return?

Country, region, city and postal code where available, plus latitude, longitude, continent, timezone with the current local time, and country facts such as the flag, currency and calling code. It also returns the network behind it (ASN, ISP, organisation), mobile, proxy and hosting flags, reverse DNS and a confidence score. The confidence score says how strongly independent checks agreed on the city; it is absent for an address we have not seen before (ask again in a few seconds) or when they did not agree.

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