Geoip API

Locate your user's IP Address, simply enter the IP Address in the URL, check the Sandbox for a common query

Very simple PHP example:
<?php
//Copyright 2013 mshd.net
function geoip($ip){
    
$url="http://www.mshd.net/api/geoip?".
            
http_build_query(array("ip"=>$ip,"output"=>"php"));
    return 
unserialize(file_get_contents($url));
}

$ip "92.23.12.44";
$result geoip($ip);
if(
$result["error"]){echo $result["error_message"];die;}

echo 
"<pre>";
foreach(
$result as $key => $value){
    echo 
$key.": ".$value."\n";
}
echo 
"</pre>"
?>