IPIDB

What the accuracy radius of an IP location means

Why an IP address has no exact location, what accuracy_radius_km tells you, and how to use it when you show a city, a map or a local price to a visitor.

24 November 2026

An IP address is not a street address. It identifies a connection to a network, and the network decides where that connection ends. Every IP location is therefore an estimate, and a good estimate says how sure it is. In the IPIDB response that is the field location.accuracy_radius_km.

Why an IP address has no exact position

A provider receives blocks of addresses and hands them out to customers in one or more places. A home broadband address usually belongs to a pool that serves one town or one district. A mobile address can be shared by thousands of phones across a whole region, because traffic leaves the mobile network at a few central points. A company VPN or a cloud server shows the location of the exit point, which can be in another country from the person using it.

So the question an IP location answers is not "where is this person" but "where does this network hand out this address". For most fixed connections the two are close; for mobile, satellite and VPN traffic they can be far apart.

What the radius says

accuracy_radius_km is the distance from the given coordinates within which the real location is expected to fall. A value of 5 means the city is very likely right and the coordinates point to the right part of it. A value of 100 means the region is right, but the city may be a neighbouring one. A value of 1,000 or more means only the country should be trusted; the coordinates are then a central point, not a place.

The radius comes with every response, on the free plan too, together with latitude and longitude.

Using the radius in a product

Showing a city

If you greet visitors with their city or preselect it in a form, do it only when the radius is small, for example under 50 km. Above that, show the region or the country. A wrong city feels worse to a visitor than no city at all.

Drawing on a map

Draw a circle with the radius rather than a pin. A pin suggests a precision the data does not have; a circle shows the area the address belongs to. For large radii, zoom out to the country.

Prices, languages and content rules

Local prices, the default language, tax rules and content licensing usually depend on the country, and the country is the most reliable part of an IP location. Base these decisions on location.country_code and let the user change the choice.

Fraud checks

Comparing the IP location with a billing or delivery address is a useful signal, but compare at the level the radius supports. A mismatch of a few dozen kilometres inside a large radius means nothing. A different country, together with flags such as is_hosting or is_proxy, means much more. The tutorial on detecting VPN and proxy logins shows how to combine such signals.

Example

A lookup of 8.8.8.8, a public DNS service run from many places, returns Mountain View with a radius of 1,000 km. That is correct about the network but says little about any single user of the service, and the large radius makes that clear:

Part of the response for 8.8.8.8
{
  "city": "Mountain View",
  "latitude": 37.38605,
  "longitude": -122.08385,
  "accuracy_radius_km": 1000
}

When the location is wrong

Networks move address blocks between cities and countries, and an estimate can lag behind. If you see a record that is clearly wrong, write to [email protected] with the address and the correct place; corrections are applied as they are confirmed. The field reference describes every location field, and the FAQ covers how often the data is updated.