Country.is

IP to Geolocation API

Country.is 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.

Usage

The interface is minimal.

The root route queries the IP of your browsing app.

      GET https://api.country.is/ HTTP/1.1
    

Or specify an IP explicitly.

      GET https://api.country.is/4.4.4.4 HTTP/1.1
    

Deployment

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

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