Products
IP Geolocation Anonymity Detection Blocklists IP Reputation Scores ASN & Company Network Classification Mobile Carriers Extended ASN API ipdata.free
Resources
Documentation API Reference SDKs & Libraries Research Tool Datacenter networks Mobile carriers
Pricing Log in
Sign up
[ IP Geolocation ]

Pin any IP
to the map

Resolve IP addresses to country, region, city, and postal code with sub-40ms latency. Multiple independent data sources converge into a single high-confidence location.

the response, live — city level, no key needed

Geofeeds Per operator
Latency Multilat.
BGP Routing
rDNS Hostnames
Ground Truth User reports
Sources
▸ 51.5074 N, 0.1278 W — London, GB
[ 01 — SOURCES ]

Multiple inputs, one location

01 — Operator geofeeds

Operator geofeeds

Location published by the networks that run the addresses

Nobody knows where an address is used better than the network that assigned it. Operators publish a geofeed and point to it from the WHOIS record for their address block, as RFC 9092 lays out.

+ Found through the registry: the geofeed: attribute on the operator's inetnum or NetRange object (RFC 9092)
+ One line per prefix with country, region, city and postal code, in the RFC 8805 format
+ Thousands more come to us directly: operators submit geofeeds for blocks whose registry objects carry no geofeed: line, and they count the same way
+ Re-read as operators update them, so a renumbered network moves on the map when its operator says it has
02 — Multilateration

Multilateration

Measuring the speed of light to locate IPs

By measuring round-trip times from multiple known locations to a target IP, we triangulate its physical position. The speed of light through fiber constrains the maximum distance per millisecond of latency.

+ Multilateration: 3+ measurements define an intersection region
+ Speed-of-light constraint: 1ms of RTT = max ~100km fiber distance
+ Calibrated against ground-truth landmarks to account for routing inefficiency
03 — BGP Routing Topology

BGP Routing Topology

Network paths encode geographic proximity

BGP routing tables reveal which networks peer with each other and where. An IP address announcing through a London IX and peering with BT, Virgin Media, and Vodafone UK is overwhelmingly likely to be in the UK. We map AS-path geography to build location constraints.

+ AS-path to geography mapping from peering databases
+ Transit provider geography narrows location to regional level
+ BGP community strings encode provider-specific location tags
04 — Infrastructure Mapping

Infrastructure Mapping

ISP network topology reveals subscriber location

Large ISPs structure their networks geographically. DSLAM names, BRAS identifiers, and rDNS hostnames contain encoded city and region information. We parse infrastructure naming patterns across thousands of ISPs worldwide to extract sub-city geolocation.

+ rDNS parsing: host-12-34.lon2.bt.net reveals London presence
+ ISP-specific naming conventions decoded for 9,000+ providers
+ CLLI codes and IATA codes embedded in infrastructure hostnames
+ Those codes and place names resolved across many languages and spellings, so koeln, praha and wien land in Cologne, Prague and Vienna
+ City-level resolution for major ISP subscribers globally
05 — Anycast detection

Anycast detection

One address, served from many places at once

Some addresses are announced from dozens of cities at the same time: public DNS resolvers, CDN edges, DDoS scrubbing networks.

+ Latency that cannot be: a few milliseconds from Frankfurt, Singapore and San Francisco at once means many copies, not one place
+ Routing that shows one prefix with many origins, or paths too short for a single site, across our BGP vantage points
+ Known anycast operators catalogued, with their site lists: public resolvers, CDNs, scrubbing centres and the root DNS servers
[ 02 — ACCURACY ]

Accuracy at every resolution

Benchmarked monthly against GPS-validated datasets.

Resolution
Description
Accuracy
Country
ISO 3166-1 alpha-2 country code. The foundation of all geolocation queries. Critical for compliance and content licensing.
99.8% Correct country
Region
State, province, or administrative region. ISO 3166-2 subdivision code. Used for tax calculation and regulatory compliance.
80.4–99.36% Varies by country
City
City or metropolitan area name. The most commonly used resolution for content personalization and analytics dashboards.
59.41–92.67% Varies by country
Postal
ZIP or postal code. Best-effort resolution. Used for localized pricing and shipping estimates.
72.49–94.21% Varies by country
Coordinates
Latitude and longitude of the place the address resolves to. The pair is a representative point for that place, usually its centre, not the position of the address itself.
As city Right when the city is
[ 03 — COVERAGE ]

Global coverage, continuously updated

Every routable IPv4 address and active IPv6 prefix is classified and geolocated. The database updates every 24 hours with fresh observations from all six data sources.

254
Countries
4M
Places mapped
~3B+
IPv4 addresses
24hr
Update cycle
[ 04 — Attributes ]

Every field in a single call

Location, time zone, currency, language, and ISP data returned in one response. No field-level pricing or upsells.

Location13 fields · top level

stringip

The IP address that was looked up, echoed back.

stringcity

The name of the city the address is located in.

stringregion

The name of the region the address is located in.

stringregion_code

The ISO 3166-2 code for the region.

stringregion_type

What kind of subdivision the region is, a first- or second-level administrative area.

stringpostal

The postal code for the location.

numberlatitude

An approximate latitude for the address, often near the centre of the local population.

numberlongitude

An approximate longitude for the address, often near the centre of the local population.

stringcountry_name

The name of the country the address is located in.

stringcountry_code

The two-letter ISO 3166-1 alpha-2 code for the country.

stringcontinent_name

The continent: Africa, Antarctica, Asia, Europe, North America, Oceania or South America.

stringcontinent_code

The two-letter code for the continent: AF, AN, AS, EU, NA, OC or SA.

booleanis_eu

Whether the country is a member state of the European Union.

Country & language7 fields · languages is an array

stringcalling_code

The international calling code for the country.

stringflag

A link to the country's flag as a PNG. Change the extension to .svg for a vector.

stringemoji_flag

The country's flag as an emoji.

stringemoji_unicode

The Unicode code points of the emoji flag.

stringlanguages[].name

The name of a language spoken in the country, in English. There is one entry per language.

stringlanguages[].native

The language's name in the language itself.

stringlanguages[].code

The language's ISO 639-1 code.

Currency5 fields · the currency object

stringcurrency.name

The singular name of the country's currency.

stringcurrency.code

The ISO 4217 currency code.

stringcurrency.symbol

The currency's symbol.

stringcurrency.native

The symbol as it is written locally.

stringcurrency.plural

The plural name of the currency, as in US dollars or Euros.

Time zone5 fields · the time_zone object

stringtime_zone.name

The IANA name of the time zone.

stringtime_zone.abbr

The time zone's abbreviation for the current period.

stringtime_zone.offset

The current offset from UTC, as ±HHMM.

booleantime_zone.is_dst

Whether daylight saving time is in effect.

stringtime_zone.current_time

The current time in the zone, an ISO 8601 timestamp with its offset.

[ 05 — USE CASES ]

What you can build with geolocation

01

Content localization

Serve the right language, currency, and regional content automatically. Show prices in local currency without asking users to set preferences manually.

02

Regulatory compliance

Enforce GDPR cookie consent for EU visitors, CCPA disclosures for California users, and geographic content restrictions required by licensing agreements.

03

Fraud detection

Compare the billing address country with the IP country. Flag transactions where the IP location is inconsistent with the payment origin as a risk signal.

04

Ad targeting

Serve geo-targeted ad campaigns down to the city level. Use region and postal code for hyper-local targeting of retail, real estate, and event promotions.

05

Analytics & dashboards

Enrich your analytics pipeline with geographic dimensions. Map user sessions to countries, regions, and cities for geographic performance breakdowns.

06

CDN & edge routing

Route users to the nearest edge server or data center based on their IP location. Reduce latency by serving content from geographically proximate infrastructure.

07

Market research

Understand where your users are geographically. Identify markets with high traffic but no localized experience, and prioritize international expansion.

08

Tax calculation

Determine the correct tax jurisdiction for digital goods. Use country, region, and postal code to apply the right VAT, GST, or sales tax rate automatically.

[ 06 — DEMOS ]

Demos, running on your address

Every IP address mapped to a physical location. Use it to personalize content, localize currency, or fetch contextual data like weather — all without asking the user anything.

LIVE WEATHER — YOUR LOCATION —
— Detecting location…
WIND—
HUMIDITY—
UV INDEX—
FEELS LIKE—

Contextual weather from an IP address

ipdata resolves the visitor's IP to coordinates. Pass those coordinates to any weather API and display hyper-local conditions — no geolocation prompt required.

01 ipdata detects lat/lng from visitor's IP
02 Coordinates passed to weather API
03 UI renders local weather data
latitudelongitudecitytime_zone
STOREFRONT — DETECTING… —
API Pro Plan —
Enterprise —
Data Export —
Detecting your region…

Localized ecommerce from day one

Display prices in the visitor's local currency and adapt your store language — automatically. No user selection required, no cookie banners for language preference.

01 ipdata returns currency + language
02 Prices converted to local currency
03 UI labels adapt to detected language
currency.codecurrency.symbollanguages[0]country_name
COMPLIANCE ENGINE — DETECTING… —
RECOMMENDED ACTION Analyzing jurisdiction…

Automatic regulatory compliance

Different jurisdictions require different consent flows. Use IP geolocation to detect the visitor's country and apply the right compliance rules before rendering a single pixel.

01 ipdata returns visitor's country
02 Country matched against regulation DB
03 Consent flow rendered per jurisdiction
country_codeis_eucontinent_coderegion
ROUTING ENGINE —

Route users to the right storefront

Automatically redirect visitors to region-specific storefronts, CDN edges, or localized landing pages based on their detected country — before the page even finishes loading.

01 ipdata returns country + continent
02 Matched against routing rules
03 User redirected to nearest storefront
country_codecontinent_codetime_zoneregion
ENRICHED ACCESS LOG nginx → ipdata pipeline
  1. 185.220.101.34 POST /api/auth 401
    → Frankfurt, DE · AS205100 · is_tor true · threat 0.94
  2. 41.90.137.197 GET /dashboard 200
    → Nairobi, KE · AS33771 Safaricom · threat 0.02
  3. 103.152.34.98 POST /api/login 401
    → Jakarta, ID · AS138997 · is_vpn true · threat 0.78
  4. 198.51.100.77 GET /checkout 200
    → Toronto, CA · AS174 Cogent · threat 0.03
  5. 171.25.193.78 POST /xmlrpc 403
    → Stockholm, SE · AS47881 · is_tor true · threat 0.96
847 enriched · 12 flagged · 23 ms avg

Turn raw logs into actionable intelligence

Pipe every IP in your access logs through ipdata to append geolocation, threat scores, VPN/proxy status, and ASN data. Analysts see the full picture without manual lookups.

01 Extract source IPs from access logs
02 Bulk-enrich via ipdata batch API
03 Forward enriched logs to SIEM / Splunk / ELK
citycountryasnthreat.scoreis_vpnis_tor
[ 07 — PLANS ]

On every plan

Location comes with every plan, from the free tier to Enterprise: country, region, city, postal code, coordinates and the time zone.

Free$0Included
Startup$50 / moIncluded
Business$120 / moIncluded
EnterpriseCustomIncluded

Monthly prices; yearly billing is 20% less. Compare every plan