APIs Documentation

How To Use Geolocation API

IP Geolocation API in JSON or XML. RESTful API for detecting location of a website traffic or server location.

Geolocation API use case

In today’s insecure world, not all countries are created equal. The fact of the matter remains, some countries have different laws, and some hosting companies in those countries abide by those laws. If you understand that the Internet doesn’t have borders or boundaries, it quickly becomes obvious that our Geo API might be the most underestimated API out there!

Finding out quickly and automatically where a certain domain name is hosted (and by where, we mean geographically on our planet), and which laws it does or doesn’t abide by, can have a significant impact in fighting crime online!

 

Geolocation API

Let’s make an example request:
http://api.whoapi.com/?domain=whoapi.com&r=geo&apikey=demokey
Output in JSON format:
{
  "status": "0",
  "ip": "78.47.103.206",
  "geo_cc": "de",
  "geo_country": "Germany",
  "geo_city": null,
  "geo_latitude": null,
  "geo_longitude": null,
  "requests_available": 100
}

 

http://api.whoapi.com/?domain=whoapi.com&r=geo&apikey=demokey&asxml

Output in XML format:
<?xml version="1.0"?>
<response>
  <status>0</status>
  <ip>52.32.117.162</ip>
  <geo_cc>US</geo_cc>
  <geo_country>United States</geo_country>
  <geo_city/>
  <geo_latitude/>
  <geo_longitude/>
  <requests_available>100</requests_available>
</response>