Country.is

Country.is is an open-source geolocation API that finds a user's country (and nothing else) from their IP address.

The public intance hosted here is free to use. No API keys or usage quotas.

Usage

Country has a minimal 🔥 interface.

Have your browser or app query its own IP address.

https://api.country.is

Query any IP.

https://api.country.is/9.9.9.9

Introspect the underlying data sources.

https://api.country.is/info

Country.is automatically checks for new MaxMind data every 24 hours.

Deployment

If you prefer not to use the hosted service, run your own private server with Docker.

Notes

Country.is uses geolocation data provided by Cloudfare and MaxMind.

Since 30 December 2019, you need to register for a license key to download the MaxMind data if you're running a private instance.