ViewDNS.info - Your one source for DNS related tools!
ViewDNS.info > API > Documentation >

IP Location Finder API



Documentation Home

TOOLS
Abuse Contact Lookup
ASN Lookup
Chinese Firewall Test
DNS Propagation Checker
DNS Record Lookup
DNS Report
DNSSEC Test
Domain/IP Whois
Free Email Lookup
Get HTTP Headers
Google Pagerank Checker
IP History
IP Location Finder
Iran Firewall Test
Is My Site Down
MAC Address Lookup
Ping
Port Scanner
Reverse DNS Lookup
Reverse IP Lookup
Reverse NS Lookup
Reverse Whois Lookup
Spam Database Lookup
Traceroute
URL/String Decode


IP Location Finder

This tool will display geographic information about a supplied IP address including city, country, latitude, longitude and more.

URL

http://pro.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 http://pro.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": ""
    }
}







All content © 2016 ViewDNS.info
Feedback / Suggestions / Contact Us   Become an Affiliate