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 | 360 ms | 166 ms | ||
https://ipapi.co/ | 1000/day | 317 ms | 221 ms | ||
https://ipbase.com/ | 150/month | 138 ms | 53 ms | ||
https://ipgeolocation.io/ | 1000/day | n/a | 156 ms | ||
https://ipstack.com/ | 1000/month | 308 ms | 137 ms | ||
https://ipwhois.io/ | 10000/month | 120 ms | 24 ms | ||
https://getgeoapi.com/ | 300/day | 170 ms | 90 ms | ||
https://geo.ipify.org/ | 333/account | n/a | 268 ms | ||
https://www.ip2location.io/ | 30000/month | 123 ms | 53 ms | ||
https://ipinfo.io/ | 50000/month | n/a | 185 ms | ||
https://dev.maxmind.com/geoip/geoip2/geolite2/ | Unlimited | n/a | 350 ms | ||
https://www.maxmind.com/en/geoip2-city-database | 16667/account | n/a | 155 ms | ||
https://www.geojs.io/ | Unlimited | 184 ms | 301 ms | ||
https://reallyfreegeoip.org/ | Unlimited | 273 ms | 236 ms | ||
https://freeipapi.com | 60/min | 89 ms | 40 ms | ||
https://ipquery.io/ | Unlimited | 409 ms | 149 ms | ||
https://bgpview.io | Unlimited | n/a | 224 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.io | { |
reallyfreegeoip.org | { |
freeipapi.com | { |
ipquery.io | { |
bgpview.io | { |