Map any IP address to its physical location with city-level precision. Get city, region, country, coordinates, timezone, and more in a single API call.
97%+
City accuracy
4.2B
IPs covered
200+
Countries
<100ms
Response time
Overview
IP Geolocation translates an IP address into physical location data — city, region, country, latitude, longitude, and more. It's the backbone of personalization, fraud detection, content localization, and compliance enforcement.
HostInfo's geolocation database is built from multiple authoritative sources and validated against real-world BGP routing data, achieving industry-leading accuracy at the city level for residential and commercial IPs alike.
{ "ip": "8.8.8.8", "city": "Mountain View", "region": "California", "country": "US", "country_name": "United States", "postal": "94043", "latitude": 37.3861, "longitude": -122.0839, "accuracy_radius": 1000, "timezone": "America/Los_Angeles", "utc_offset": "-0700" }
Capabilities
Everything you need to pinpoint any IP on the planet.
97%+ accuracy for residential IPs, with accuracy_radius field to indicate confidence per lookup.
Global coverage including country flags, calling codes, currency, and spoken languages per location.
Complete geolocation support for IPv6 addresses, future-proofing your applications as the internet transitions.
IANA timezone name and current UTC offset so you can display local times without separate lookups.
Our database is refreshed daily from BGP routing tables and authoritative registries to stay current with IP reassignments.
Each response includes an accuracy_radius in meters so your app can adapt behavior based on geolocation confidence.
Reference
Every field available in the IP Geolocation API response.
| Field | Type | Description | Free | Pro | Max |
|---|---|---|---|---|---|
| ip | string | Queried IP address | ✓ | ✓ | ✓ |
| city | string | City name | ✓ | ✓ | ✓ |
| region | string | Region / state / province name | ✓ | ✓ | ✓ |
| country | string | ISO 3166-1 alpha-2 country code (e.g. "US") | ✓ | ✓ | ✓ |
| country_name | string | Full country name in English | ✓ | ✓ | ✓ |
| country_flag | string | Emoji flag for the country | — | ✓ | ✓ |
| postal | string | Postal / ZIP code for the location | — | ✓ | ✓ |
| latitude | float | Latitude coordinate | ✓ | ✓ | ✓ |
| longitude | float | Longitude coordinate | ✓ | ✓ | ✓ |
| accuracy_radius | integer | Accuracy radius in meters for the coordinate | — | ✓ | ✓ |
| timezone | string | IANA timezone identifier (e.g. "America/Los_Angeles") | ✓ | ✓ | ✓ |
| utc_offset | string | Current UTC offset including DST (e.g. "-0700") | — | ✓ | ✓ |
| continent | string | Full continent name | — | — | ✓ |
| continent_code | string | 2-letter continent code (e.g. "NA") | — | — | ✓ |
| calling_code | string | Country calling code (e.g. "+1") | — | — | ✓ |
| currency | string | ISO 4217 currency code (e.g. "USD") | — | — | ✓ |
| languages | array | Official languages spoken in the country | — | — | ✓ |
Try It Now
Enter any IP address and see geolocation data instantly.
// Click "Lookup" to see results here...
Applications
How teams use IP Geolocation every day.
Automatically surface localized pricing, currency, language, and promotions based on the visitor's detected country and region. Reduce friction and increase conversions.
Enforce licensing restrictions, export controls, and regulatory compliance by gating content or features based on IP-derived country or region data.
Flag transactions where the IP location doesn't match billing address, shipping country, or usual login location — a key signal in multi-layered fraud prevention.
Developer
Integrate IP Geolocation in minutes with any stack.
curl -X GET \ "https://api.hostinfo.com/v1/ip/8.8.8.8/geo" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Accept: application/json" # Response: { "ip": "8.8.8.8", "city": "Mountain View", "region": "California", "country": "US", "latitude": 37.3861, "longitude": -122.0839, "timezone": "America/Los_Angeles" }
Pricing
No hidden fees. Cancel any time.
Try it out
For teams
Unlimited scale