IP to location APIs

country.is

by country.is

IP to location APIs Added on October 31st, 2026
Visit country.is →

What it does

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
  • HTTP-GET
  • JSON
  • REST

More information: https://country.is/

country.is
country.is