Geolocation
ipinfo.io
- Free API (rate limited), databases for sale
Free usage of our API is limited to 50,000 API requests per month. If you exceed that limit, we'll return a 429 HTTP status code to you.
curl -s https://ipinfo.io
curl -s https://ipinfo.io/ip
curl -s ipinfo.io/84.158.175.2
Maxmind
- Sign-up needed
- GeoLite2 databases available for free after signup
- More accurate then the one from
db-ip
(Maxmind resolved my IP to Hamburg, while dp-ip resolved to Frankfurt) - Can get updated with
geoipupdate
debian package:
- More accurate then the one from
sudo apt install geoipupdate
sudo /home/varac/bin/nvim /etc/GeoIP.conf # Add User/License-ID
sudo systemctl start geoipupdate.service
systemctl status geoipupdate.service
ls -al /var/lib/GeoIP
db-ip.com
API:
curl http://api.db-ip.com/v2/free/84.158.175.229
Database:
cd /tmp
wget https://download.db-ip.com/free/dbip-city-lite-2022-03.mmdb.gz
gunzip dbip-city-lite-2022-03.mmdb.gz