Your IP: 216.73.216.116
Country | United States of America |
Country Code | US |
Region | Washington |
City | Seattle |
Browser | Safari |
OS | Linux |
Device | Desktop |
IPv6 | Not Detected |
Screen Size | Detecting... |
JavaScript Enabled? | No |
Cookies Enabled? |
Example API call:
https://geo-ip.co.uk/get.php?ip=216.73.216.116&key=c5febdcaaef81778191a20449988bf90
<?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\n";
echo "Country: " . $xml->country_name . "\n";
echo "Region: " . $xml->region_name . "\n";
echo "City: " . $xml->city_name . "\n";
?>
<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>