Your IP: 52.14.186.192
Country | United States of America |
Country Code | US |
Region | Ohio |
City | Columbus |
Browser | Safari |
OS | Linux |
Device | Desktop |
Example API call:
https://geo-ip.co.uk/get.php?ip=52.14.186.192&key=e5d630296fa8781ca00cc1b75ff667db
This returns XML with country, region, and city info.
<?php
$ip = '8.8.8.8';
$api_key = 'YOUR_API_KEY';
$url = "https://geo-ip.co.uk/get.php?ip=" . urlencode($ip) . "&key=" . urlencode($api_key);
$xml = simplexml_load_file($url);
echo "IP: $ip
";
echo "Country: " . $xml->country_name . "
";
echo "Region: " . $xml->region_name . "
";
echo "City: " . $xml->city_name . "
";
?>
<response>
<ip>8.8.8.8</ip>
<country_name>United States</country_name>
<country_code>US</country_code>
<region_name>California</region_name>
<city_name>Mountain View</city_name>
</response>