Country is a browser-friendly, privacy-conscious geolocation API that gets a user's country (and nothing else) from their IP.


Country has a minimal :fire: interface.

Query yourself.

Query any IP.

See the age of the underlying data file.

Country automatically checks for a newer version every 24 hours.


If you prefer not to use the hosted service, run a private instance with Docker.


Country uses GeoLite2 data created by MaxMind. Since 30 December 2019, you need to register for a license key to download their data.

The hosted service does not log requests.