The interface is minimal. Check it out by clicking on the examples below.
The root route queries the IP making the request.
GET https://api.country.is/ HTTP/1.1
Or query an IP explicitly.
GET https://api.country.is/220.127.116.11 HTTP/1.1
If you prefer not to use the hosted service, run Country privately with Docker.
docker run -d -p 3000:3000 hakanensari/country
Country uses GeoLite2 data created by MaxMind. The hosted service does not log requests.