IP Address Lookup API

With the domainAPI IP Location service, find out the geographic location of a specific IP address. Whether searching for a domain or an IP, domainAPI IP Location will provide you with the related geographic location and Network allocation in no time.

Knowing the geo-location of specific user may be key in addressing geographically sensitive markets by providing you with a valuable advantage in competitive situations. Indeed knowledge of geographic location can be fundamental for certain businesses, allowing the tailoring of information to suit specific geography based needs.

The information can also provide great data on where your customer base is located, leveraging resources where they are most needed.

Parameters of the IP Address Lookup API

The IpLocation service doesn't take parameters.

Response groups of the IP Address Lookup API

Name Description
region Returns location's region.
country_short Returns location's country code.
isp Returns the Internet service provider.
img Returns flag of the country.
city Returns location's city.
country Returns location's country.
ip Returns ip.

Example of the IP Address Lookup API

JSON

Request

Show/Hidden apache code

View source
 
 
  GET /encrypted-area HTTP/1.1
  Host: api.domainapi.com/v1/ip_location/216.15.236.226
  Authorization: Basic YWtpcmF0ZXN0OmR0d3N0ZXN0
 

Response

Show/Hidden javascript code

View source
 
 
  {
    "service":"ip_location",
    "domain":"216.15.236.226",
    "timestamp":1247494482,
    "content":{
      "ipLocation":{
        "region":"South Dakota",
        "country_short":"us",
        "isp":"Cybercon Inc",
        "img":"http:\/\/img.nameintel.com\/flags\/us.gif",
        "city":"Sioux Falls",
        "country":"United States",
        "ip":"216.15.236.226"
      }
    }
  }
 

XML

Request

Show/Hidden apache code

View source
 
 
  GET /encrypted-area HTTP/1.1
  Host: api.domainapi.com/v1/ip_location/xml/216.15.236.226
  Authorization: Basic YWtpcmF0ZXN0OmR0d3N0ZXN0
 

Response

Show/Hidden xml code

View source
 
 
  <?xml version="1.0" encoding="UTF-8"?></span>
  <span class="ta"><response>
    <service>ip_location</service>
    <domain>216.15.236.226</domain>
    <timestamp>1234567890</timestamp>
    <content>
      <ipLocation>
        <region>South Dakota</region>
        <country_short>us</country_short>
        <isp>Cybercon Inc</isp>
        <img>http://img.nameintel.com/flags/us.gif</img>
        <city>Sioux Falls</city>
        <country>United States</country>
        <ip>216.15.236.226</ip>
      </ipLocation>
    </content>
  </response>
 
 

Additional information