IP Geolocation Service: What the Free Tiers Actually Return

Choosing a geolocation service is not about accuracy charts. The first question is whether it answers from where you intend to call it: a browser page can only reach HTTPS endpoints that send an access-control-allow-origin header, and half the free tiers fail that.

Twelve free endpoints were called three times each, then seven of them against twelve addresses on five continents and nine reserved addresses that have no location. Six are usable from a page: three of those return the same fallback coordinate, and three answer 200 with nothing inside.

Run the scoreboard on any address, then read the grade column before you trust the city.

Twelve endpoints, six callable from a page. Median latency 214 to 400 ms. Three share one fallback coordinate; three answer 200 with an empty body.

probed

Service scoreboard

One address, six services, six grades. Leave it empty to look up this browser.

Not run yet.

Service scoreboard
ServiceStatusLatencyFieldsReturns
Waiting for the first answer.
Run the scoreboard to produce a copyable result.

Each run sends the address to six free services and grades what comes back: ipwho.is, api.ip.sb, geojs.io, ip.guide, ipinfo.io and ipapi.co. answered means a country, a city and a coordinate away from the fallback point. thin means no city or no pin. placeholder means 37.751, -97.822 or 0, 0. silent means 200 with no country. rejected means a non-200 status or a timeout. Nothing you type is stored or sent anywhere else.

1. Three tests before accuracy matters

A geolocation service is a network dependency, and a browser imposes rules a server does not. Transport comes first: a page served over HTTPS cannot call an HTTP endpoint, so the free tier of ip-api.com is out whatever its data. Then CORS: without an access-control-allow-origin header the response is blocked before your code sees it. Then content: the answer must hold something usable, which is not the same as status 200.

Twelve free endpoints went through the first two gates from a page origin, three requests each.

Three tests before accuracy matters
ServiceStatusMedian latencyCORS headerFieldsCallable from a page
ipwho.is200214 msany origin21Yes
api.ip.sb200233 msany origin14Yes
geojs.io200261 msany origin13Yes
ip.guide200346 msany origin3Yes
ipinfo.io200364 msany origin11Yes
ipapi.co200400 msechoes origin27Yes
iplocation.net2001,337 msany origin8No coordinates
ip-api.com2001,402 msany origin14HTTP only
dbip200204 msany origin2Restricted key
freeipapi307243 msany origin0No, redirect
ipapi.is502217 msnone0No, down
ipdata.co401215 msany origin1No, needs a key

Two details outrank the ranking. First requests took 700 to 1,500 ms and later ones 200 to 400 ms, so a single measurement reorders the list; the column above is a median of three. And ipapi.co is the only service that sends no wildcard: it echoes any origin, even the literal string null, so its responses carry Vary: origin and cannot be reused from a shared cache.

2. Field count is not information

The obvious way to compare services is to count what they return, and that number predicts almost nothing. Seven services were asked for twelve addresses across five continents; each answer was checked for the four fields a location feature needs.

Field count is not information
ServiceFieldsCountryCityCoordinatesTimezone
ipapi.co2712 of 1212 of 1212 of 1212 of 12
ipwho.is2112 of 1212 of 1212 of 1212 of 12
api.ip.sb1412 of 1212 of 1212 of 1212 of 12
ip-api.com1411 of 1211 of 1211 of 1211 of 12
geojs.io1312 of 125 of 1212 of 1211 of 12
ipinfo.io1112 of 1212 of 1212 of 1212 of 12
ip.guide312 of 125 of 1212 of 1212 of 12

ipapi.co returns 27 top-level keys and fills all four fields on every address. ip.guide returns three keys: an ip, a network object and a location object. What changes code is not the count but that ip.guide and geojs.io leave the city empty on seven of twelve addresses. They do not omit the field; they send it as null, which if (data.city) reads as absent and a template prints as the word null.

A missing key fails at parse time. A present key holding null fails quietly, three functions later. For a service you call from a page, that is the distinction worth measuring.

3. Three services, one coordinate

Coordinates look like the trustworthy part of an answer, because two decimals read as precision. They are not. ip.guide, api.ip.sb and geojs.io returned exactly 37.751, -97.822 for 8.8.8.8, a Google resolver in Mountain View, California, and the same pair for 208.67.222.222 in San Francisco. That point is the centre of the United States: what a database returns when it knows the country but cannot place the city.

Three services, one coordinate
Service8.8.8.8 (Mountain View)208.67.222.222 (San Francisco)Timezone for 8.8.8.8
ip.guide37.751, -97.82237.751, -97.822America/Chicago
api.ip.sb37.751, -97.82237.751, -97.822America/Chicago
geojs.io37.751, -97.82237.751, -97.822America/Chicago
ipapi.coMountain ViewSan FranciscoAmerica/Los_Angeles
ipinfo.ioMountain ViewSan JoseAmerica/Los_Angeles
ipwho.isSan JoseSan JoseAmerica/Los_Angeles

Three services sending the identical pair to two decimals is not three confirmations; it is one fallback copied. The giveaway is the timezone: all three report America/Chicago for a California address, because the timezone is derived from the centroid rather than from the address. That is why the scoreboard treats a coordinate as evidence only when it sits away from 37.751, -97.822 and from 0, 0.

4. When the answer is missing, wrong or withheld

Reserved addresses are the cleanest way to see how a service behaves with no answer to give. Nine were tested: loopback, two private ranges, carrier-grade NAT, link-local, multicast, broadcast, unspecified and benchmarking.

When the answer is missing, wrong or withheld
ServiceHow it says nothingCount of nine
ipapi.coerror flag in the JSON body9
ipwho.issuccess flag set to false9
ip-api.comstatus set to fail8
api.ip.sbHTTP 400 or 4039
ipinfo.ioempty object, HTTP 2009
geojs.ioempty object, HTTP 2009
ip.guideempty object, HTTP 2007

Twenty-five of sixty-three attempts came back as 200 with an empty object. A fifth style sits on top: dbip answered 200 with errorCode: RESTRICTED, a free key that only works on the caller's own address. So four services fail in the body, one in the status line, three in silence. Test a candidate with 127.0.0.1 before you ship: one request shows whether its failure will be loud or quiet.

Two further checks separate less than they promise. IPv6: all seven accepted both public addresses and returned a country, so the feature discriminates nothing, while accuracy does. ip-api.com put Google's 2001:4860:4860::8888 in Canada, and ip.guide put a German Google address in the United States, because its IPv6 path falls back to the ASN registry.

Quotas: eight consecutive requests to ip-api.com returned a countdown in the headers, X-Rl falling from 44 to 37 inside a 60-second window, a 45-per-minute ceiling stated up front. None of the other eleven sent a RateLimit or Retry-After header in 36 requests.

Questions this test answers

Which free IP geolocation service can I call from a web page?

Six of the twelve tested here answer over HTTPS with a permissive access-control-allow-origin header and return coordinates: ipwho.is, api.ip.sb, geojs.io, ip.guide, ipinfo.io and ipapi.co, with median latencies of 214 to 400 ms. ip-api.com works but serves plain HTTP on the free tier, which an HTTPS page cannot call without a mixed-content block. The other five failed for four different reasons: a redirect, a 502, a key requirement and a restricted key.

Why does a geolocation service return HTTP 200 with no data?

Because empty is not an error to the service. Asked for nine reserved addresses, ipinfo.io, geojs.io and ip.guide answered 200 with an empty object in 25 of 27 attempts, while ipapi.co and ipwho.is put a false flag in the body and api.ip.sb used 400 or 403. A fetch call sees res.ok true and parses an empty object, so the failure surfaces later as an undefined field rather than at the request.

Why do several services return the same coordinates for different addresses?

Because the coordinate is a fallback, not a measurement. ip.guide, api.ip.sb and geojs.io all returned exactly 37.751, -97.822 for 8.8.8.8 in California and for 208.67.222.222 in San Francisco: the United States centroid, the point a database uses when it knows the country but not the city. ip.guide also reported America/Chicago for the California address, because the timezone follows the centroid.

Does a free geolocation service support IPv6 lookups?

All seven tested services accepted both IPv6 addresses and returned a country, so the feature has no discriminating power when you compare vendors. Accuracy does: ip-api.com placed Google's 2001:4860:4860::8888 in Canada while six services placed it in the United States, and ip.guide placed a German Google address in the United States while six placed it in Germany.