IP Location Finder
This tool will display geographic information about a supplied IP address including city, country, latitude, longitude and more.
URL
https://api.viewdns.info/iplocation/
Parameters
ip - the ip address to find the location of
output - the output format required ('xml' or 'json')
apikey - your api key
Sample Query
ip: 11.11.11.11
GET https://api.viewdns.info/iplocation/?ip=11.11.11.11&apikey=yourapikey&output=output_type
XML Response (output=xml)
<?xml version='1.0' encoding='ISO-8859-1'?>
<viewdns>
<query>
<tool>iplocation_PRO</tool>
<ip>11.11.11.11</ip>
</query>
<response>
<city>Columbus</city>
<zipcode>43218</zipcode>
<region_code>OH</region_code>
<region_name>Ohio</region_name>
<country_code>US</country_code>
<country_name>United States</country_name>
<latitude>39.9968</latitude>
<longitude>-82.9882</longitude>
<gmt_offset></gmt_offset>
<dst_offset></dst_offset>
</response>
</viewdns>
JSON Response (output=json)
{
"query": {
"tool": "iplocation_PRO",
"ip": "11.11.11.11"
},
"response": {
"city": "Columbus",
"zipcode": "43218",
"region_code": "OH",
"region_name": "Ohio",
"country_code": "US",
"country_name": "United States",
"latitude": "39.9968",
"longitude": "-82.9882",
"gmt_offset": "",
"dst_offset": ""
}
}