Comparison of some different mostly free GeoIP APIs I found around the internet.
Go to https://geoip.emrik.org to do your own benchmark or lookup an IP address using multiple APIs.
Accuracy is harder to test. But the only service that seems to achieve intercity tracking is ipgeolocation.io in my limited tests. Test on https://geoip.emrik.org to see for yourself :)
Feel free to add any APIs you find to the list by creating a pull request or an issue.
Url | Https | Limit | Clientside | Client lookup delay | Serverside delay |
---|---|---|---|---|---|
http://ip-api.com/ | 45/min | 177 ms | 29 ms | ||
https://ipapi.co/ | 1000/day | 398 ms | 292 ms | ||
https://ipbase.com/ | 150/month | 114 ms | 63 ms | ||
https://ipgeolocation.io/ | 1000/day | n/a | 107 ms | ||
https://ipstack.com/ | 1000/month | 323 ms | 205 ms | ||
https://ipwhois.io/ | 10000/month | 193 ms | 30 ms | ||
https://getgeoapi.com/ | 300/day | 111 ms | 24 ms | ||
https://geo.ipify.org/ | 333/account | n/a | 359 ms | ||
https://www.ip2location.io/ | 30000/month | 183 ms | 121 ms | ||
https://ipinfo.io/ | 50000/month | n/a | 184 ms | ||
https://dev.maxmind.com/geoip/geoip2/geolite2/ | Unlimited | n/a | 263 ms | ||
https://www.maxmind.com/en/geoip2-city-database | 16667/account | n/a | 117 ms | ||
https://www.geojs.io/ | Unlimited | 188 ms | 30 ms | ||
https://reallyfreegeoip.org/ | Unlimited | 229 ms | 31 ms | ||
https://freeipapi.com | 60/min | 100 ms | 50 ms |
API | Serverside Lookup |
---|---|
ip-api.com | { |
ipapi.co | { |
ipbase.com | { |
ipgeolocation.io | { |
ipstack.com | { |
ipwhois.io | { |
getgeoapi.com | { |
geo.ipify.org | { |
ip2location.io | { |
ipinfo.io | { |
geolite2 | { |
geoip2 | { |
GeoJS | { |
ReallyFreeGeoIP | { |
FreeIPAPI | { |