Saturday, June 4, 2011

IP Address Geolocation XML API

The API returns the location of an IP address (country, region, city, zipcode, latitude, longitude) and the associated timezone in XML format. You can find below code samples with PHP, Javascript, Ruby, Python and ASP.
Usage
For city precision, do a query with the following API (if you omit the IP parameter it will check with your own IP) :
http://api.ipinfodb.com/v3/ip-city/?key=&ip=74.125.45.100
For country precision (faster), do a query with the following API :
http://api.ipinfodb.com/v3/ip-country/?key=&ip=74.125.45.100
If you don’t have an API key yet, just go to here and register for your free API key. You will need this API key to be able to use our newer APIs. 
 

No comments:

Post a Comment