IP to Geolocation API is a free and open source API that helps you look up the location of an IP address. It uses GeoLite2 data created by MaxMind.


The interface is minimal.

The root route queries the IP of your browsing app.

      GET HTTP/1.1

Or specify an IP explicitly.

      GET HTTP/1.1


Use the hosted service or set up a private instance with Docker.

      docker run -d -p 3000:3000 hakanensari/country