Whoi.io

Whois and IP address GeoIP information. Free GeoIP cross domain JSON API.

whoi.io/

You ip: 3.136.19.124
try: 3.136.19.124, 8.8.8.8, 1.1.1.1, facebook.com

json

You ip 3.136.19.124

ip3.136.19.124
countryUnited States
country_isoUS
citySeattle
city_lat47.60621
city_lon-122.33207
regionWashington
region_isoUS-WA

API Demo

<script>
var getJSON = function(url, callback) {
	var xhr = new XMLHttpRequest();
	xhr.open('GET', url, true);
	xhr.responseType = 'json';
	xhr.onload = function() {
	  var status = xhr.status;
	  if (status === 200) {
		callback(null, xhr.response);
	  } else {
		callback(status, xhr.response);
	  }
	};
	xhr.send();
};

getJSON('https://whoi.io/json',
function(err, data) {
	console.log (data);
  if (err !== null) {
	document.getElementById("demo").innerHTML = 'Something went wrong: ' + err;
  } else {
	document.getElementById("demo").innerHTML = 'Country: ' + data.country
	+ '. Detected by whoi.io.';
  }
});	
</script>
<div id="demo"></div>