Updated daily — 4.2B+ IPv4 addresses covered

IP to Geolocation

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

What is IP Geolocation?

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.

  • Works with both IPv4 and IPv6
  • Accuracy radius per lookup for confidence scoring
  • Timezone and UTC offset included
  • Currency, calling code and language data
Sample Response
{
  "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

Key Features

Everything you need to pinpoint any IP on the planet.

City-Level Accuracy

97%+ accuracy for residential IPs, with accuracy_radius field to indicate confidence per lookup.

200+ Countries Covered

Global coverage including country flags, calling codes, currency, and spoken languages per location.

IPv6 Fully Supported

Complete geolocation support for IPv6 addresses, future-proofing your applications as the internet transitions.

Timezone & UTC Offset

IANA timezone name and current UTC offset so you can display local times without separate lookups.

Updated Daily

Our database is refreshed daily from BGP routing tables and authoritative registries to stay current with IP reassignments.

Accuracy Radius

Each response includes an accuracy_radius in meters so your app can adapt behavior based on geolocation confidence.

Reference

Data Fields

Every field available in the IP Geolocation API response.

Field Type Description Free Pro Max
ipstringQueried IP address
citystringCity name
regionstringRegion / state / province name
countrystringISO 3166-1 alpha-2 country code (e.g. "US")
country_namestringFull country name in English
country_flagstringEmoji flag for the country
postalstringPostal / ZIP code for the location
latitudefloatLatitude coordinate
longitudefloatLongitude coordinate
accuracy_radiusintegerAccuracy radius in meters for the coordinate
timezonestringIANA timezone identifier (e.g. "America/Los_Angeles")
utc_offsetstringCurrent UTC offset including DST (e.g. "-0700")
continentstringFull continent name
continent_codestring2-letter continent code (e.g. "NA")
calling_codestringCountry calling code (e.g. "+1")
currencystringISO 4217 currency code (e.g. "USD")
languagesarrayOfficial languages spoken in the country

Try It Now

Live Demo

Enter any IP address and see geolocation data instantly.

Try:
// Click "Lookup" to see results here...

Applications

Use Cases

How teams use IP Geolocation every day.

🎯

Personalize Content by Location

Automatically surface localized pricing, currency, language, and promotions based on the visitor's detected country and region. Reduce friction and increase conversions.

🚧

Block Region-Restricted Content

Enforce licensing restrictions, export controls, and regulatory compliance by gating content or features based on IP-derived country or region data.

🕵️

Fraud Detection by Location

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

API Example

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

Simple, Transparent Pricing

No hidden fees. Cancel any time.

Free

Try it out

$0/mo
Get Started Free
  • 100 lookups/day
  • ip, city, region, country, lat/lon, timezone
  • postal, accuracy_radius, utc_offset
  • continent, currency, languages

Pro

For teams

$29/mo
Start Free Trial
  • 10,000 lookups/day
  • All Free fields + postal, accuracy_radius
  • utc_offset, country_flag
  • continent, currency, languages

Max

Unlimited scale

$99/mo
View Plan
  • Unlimited lookups
  • All fields — continent, currency, languages
  • calling_code, continent_code
  • Bulk API + SLA + webhooks

Start Geolocating IPs Today

Free forever. No credit card required.