# country.is

Category: [IP to location APIs](https://free-web-services.com/web-services/geo/ip-to-location/)  
Page: https://free-web-services.com/web-services/geo/ip-to-location/country-is.html  
Documentation: https://country.is/

country.is does one thing: it tells you the country of an IP address, as a two-letter country code in a tiny JSON response. Call it without an address to get the country of the visitor, for example to preselect a country in a form. Free and open source, no key needed.

- API key: Not needed
- Pricing: Free and open source, no key needed.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: country.is
- Last checked: Working on November 15th, 2026

Example request:

```sh
curl 'https://api.country.is/8.8.8.8'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

