Welcome to IP2Location FREE Online Service and Free API
How to Call :
http://www.generalconnection.com/ip2location/api.php?ip=<IPAddress_Goes_Here>
Response Format :
The above api.php returns a comma-separated-string in the following format

IPAddress,Longitude,Latitude,Country_Code,Country_Name
Example Usage:
The following is a PHP example of how to use our Free IP2Location API :
        $contents = file_get_contents("http://www.generalconnection.com/ip2location/api.php?ip=1.2.3.4");
        $contents = str_replace("\"","",$contents);
        $tokens=explode(",",$contents);

        echo "IP Address = ".  $tokens[0];
        echo "Longitude = ".  $tokens[1];
        echo "Latitude = ".   $tokens[2];
        echo "Country Code = ".   $tokens[3];
        echo "Country Name = ".  $tokens[4];


        
Disclaimer: The information contained in this website is for general information purposes only. The information is provided by generalconnection.com and while we endeavour to keep the information up to date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk. In no event will we be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website. Through this website you are able to link to other websites which are not under the control of generalconnection.com. We have no control over the nature, content and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them. Every effort is made to keep the website up and running smoothly. However, generalconnection.com takes no responsibility for, and will not be liable for, the website being temporarily unavailable due to technical issues beyond our control. 'generalconnection.com' refers not only the website, but also its owners and any/all person(s) associated with this web site.
© 2013 www.generalconnection.com. All rights reserved.