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 | Status | Latency | Fields | Returns |
|---|
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.
| Service | Status | Median latency | CORS header | Fields | Callable from a page |
|---|---|---|---|---|---|
| ipwho.is | 200 | 214 ms | any origin | 21 | Yes |
| api.ip.sb | 200 | 233 ms | any origin | 14 | Yes |
| geojs.io | 200 | 261 ms | any origin | 13 | Yes |
| ip.guide | 200 | 346 ms | any origin | 3 | Yes |
| ipinfo.io | 200 | 364 ms | any origin | 11 | Yes |
| ipapi.co | 200 | 400 ms | echoes origin | 27 | Yes |
| iplocation.net | 200 | 1,337 ms | any origin | 8 | No coordinates |
| ip-api.com | 200 | 1,402 ms | any origin | 14 | HTTP only |
| dbip | 200 | 204 ms | any origin | 2 | Restricted key |
| freeipapi | 307 | 243 ms | any origin | 0 | No, redirect |
| ipapi.is | 502 | 217 ms | none | 0 | No, down |
| ipdata.co | 401 | 215 ms | any origin | 1 | No, 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.
| Service | Fields | Country | City | Coordinates | Timezone |
|---|---|---|---|---|---|
| ipapi.co | 27 | 12 of 12 | 12 of 12 | 12 of 12 | 12 of 12 |
| ipwho.is | 21 | 12 of 12 | 12 of 12 | 12 of 12 | 12 of 12 |
| api.ip.sb | 14 | 12 of 12 | 12 of 12 | 12 of 12 | 12 of 12 |
| ip-api.com | 14 | 11 of 12 | 11 of 12 | 11 of 12 | 11 of 12 |
| geojs.io | 13 | 12 of 12 | 5 of 12 | 12 of 12 | 11 of 12 |
| ipinfo.io | 11 | 12 of 12 | 12 of 12 | 12 of 12 | 12 of 12 |
| ip.guide | 3 | 12 of 12 | 5 of 12 | 12 of 12 | 12 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.
| Service | 8.8.8.8 (Mountain View) | 208.67.222.222 (San Francisco) | Timezone for 8.8.8.8 |
|---|---|---|---|
| ip.guide | 37.751, -97.822 | 37.751, -97.822 | America/Chicago |
| api.ip.sb | 37.751, -97.822 | 37.751, -97.822 | America/Chicago |
| geojs.io | 37.751, -97.822 | 37.751, -97.822 | America/Chicago |
| ipapi.co | Mountain View | San Francisco | America/Los_Angeles |
| ipinfo.io | Mountain View | San Jose | America/Los_Angeles |
| ipwho.is | San Jose | San Jose | America/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.
| Service | How it says nothing | Count of nine |
|---|---|---|
| ipapi.co | error flag in the JSON body | 9 |
| ipwho.is | success flag set to false | 9 |
| ip-api.com | status set to fail | 8 |
| api.ip.sb | HTTP 400 or 403 | 9 |
| ipinfo.io | empty object, HTTP 200 | 9 |
| geojs.io | empty object, HTTP 200 | 9 |
| ip.guide | empty object, HTTP 200 | 7 |
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.