APIs Documentation

How To Use IP Whois API

IP Whois API example response, default parameters and description.

IP whois API use case

Now you can get information about IP addresses programmatically! This can come in handy when you are crosschecking domain names with IP addresses, provisioning server or during any cyber threat elimination process.

 

IP whois API

Let’s make an example request:
http://api.whoapi.com/?ip=52.32.117.162&r=ipwhois&apikey=demokey
Output in JSON format (only 3 nodes are shown due to a long list of nodes):
{
  "status": 0,
  "NetRange": "52.32.0.0 - 52.63.255.255",
  "CIDR": "52.32.0.0\/11",
  "NetName": "AT-88-Z",
  "NetHandle": "NET-52-32-0-0-1",
  "Parent": "NET52 (NET-52-0-0-0-0)",
  "NetType": "Direct Allocation",
  "OriginAS": "",
  "Organization": "Amazon Technologies Inc. (AT-88-Z)",
  "RegDate": "2015-09-02,
  2011-12-08",
  "Updated": "2015-09-02,
  2017-01-28",
  "Ref": "https:\/\/whois.arin.net\/rest\/net\/NET-52-32-0-0-1,
  https:\/\/whois.arin.net\/rest\/org\/AT-88-Z",
  "OrgName": "Amazon Technologies Inc.",
  "OrgId": "AT-88-Z",
  "Address": "Disabled due to GDPR",
  "City": "Disabled due to GDPR",
  "StateProv": "WA",
  "PostalCode": "98109",
  "Country": "US",
  "Comment": "All abuse reports MUST include:,
  * src IP,
  * dest IP (your IP),
  * dest port,
  * Accurate date\/timestamp and timezone of activity,
  * Intensity\/frequency (short log extracts),
  * Your contact details (phone and email) Without these we will be unable to identify the correct owner of the IP address at that point in time.",
  "OrgNOCHandle": "AANO1-ARIN",
  "OrgNOCName": "Amazon AWS Network Operations",
  "OrgNOCPhone": "+1-206-266-4064",
  "OrgNOCEmail": "amzn-noc-contact@amazon.com",
  "OrgNOCRef": "https:\/\/whois.arin.net\/rest\/poc\/AANO1-ARIN",
  "OrgTechHandle": "ANO24-ARIN",
  "OrgTechName": "Amazon EC2 Network Operations",
  "OrgTechPhone": "+1-206-266-4064",
  "OrgTechEmail": "amzn-noc-contact@amazon.com",
  "OrgTechRef": "https:\/\/whois.arin.net\/rest\/poc\/ANO24-ARIN",
  "OrgAbuseHandle": "AEA8-ARIN",
  "OrgAbuseName": "Amazon EC2 Abuse",
  "OrgAbusePhone": "+1-206-266-4064",
  "OrgAbuseEmail": "abuse@amazonaws.com",
  "OrgAbuseRef": "https:\/\/whois.arin.net\/rest\/poc\/AEA8-ARIN",
  "cidr_mask": [ {
    "cidr": "52.32.0.0\/11",
    "mask": "255.224.0.0"
 } ],
  "requests_available": 10000
}

 

http://api.whoapi.com/?ip=52.32.117.162&r=ipwhois&apikey=demokey&asxml

Output in XML format (only 3 nodes are shown due to a long list of nodes):
<?xml version="1.0"?>
<response>
  <status>0</status>
  <NetRange>52.32.0.0 - 52.63.255.255</NetRange>
  <CIDR>52.32.0.0/11</CIDR>
  <NetName>AT-88-Z</NetName>
  <NetHandle>NET-52-32-0-0-1</NetHandle>
  <Parent>NET52 (NET-52-0-0-0-0)</Parent>
  <NetType>Direct Allocation</NetType>
  <OriginAS/>
  <Organization>Amazon Technologies Inc. (AT-88-Z)</Organization>
  <RegDate>2015-09-02, 2011-12-08</RegDate>
  <Updated>2015-09-02, 2017-01-28</Updated>
  <Ref>https://whois.arin.net/rest/net/NET-52-32-0-0-1, https://whois.arin.net/rest/org/AT-88-Z</Ref>
  <OrgName>Amazon Technologies Inc.</OrgName>
  <OrgId>AT-88-Z</OrgId>
  <Address>Disabled due to GDPR</Address>
  <City>Disabled due to GDPR</City>
  <StateProv>WA</StateProv>
  <PostalCode>98109</PostalCode>
  <Country>US</Country>
  <Comment>All abuse reports MUST include:, * src IP, * dest IP (your IP), * dest port, * Accurate date/timestamp and timezone of activity, * Intensity/frequency (short log extracts), * Your contact details (phone and email) Without these we will be unable to identify the correct owner of the IP address at that point in time.</Comment>
  <OrgTechHandle>ANO24-ARIN</OrgTechHandle>
  <OrgTechName>Amazon EC2 Network Operations</OrgTechName>
  <OrgTechPhone>+1-206-266-4064</OrgTechPhone>
  <OrgTechEmail>amzn-noc-contact@amazon.com</OrgTechEmail>
  <OrgTechRef>https://whois.arin.net/rest/poc/ANO24-ARIN</OrgTechRef>
  <OrgNOCHandle>AANO1-ARIN</OrgNOCHandle>
  <OrgNOCName>Amazon AWS Network Operations</OrgNOCName>
  <OrgNOCPhone>+1-206-266-4064</OrgNOCPhone>
  <OrgNOCEmail>amzn-noc-contact@amazon.com</OrgNOCEmail>
  <OrgNOCRef>https://whois.arin.net/rest/poc/AANO1-ARIN</OrgNOCRef>
  <OrgAbuseHandle>AEA8-ARIN</OrgAbuseHandle>
  <OrgAbuseName>Amazon EC2 Abuse</OrgAbuseName>
  <OrgAbusePhone>+1-206-266-4064</OrgAbusePhone>
  <OrgAbuseEmail>abuse@amazonaws.com</OrgAbuseEmail>
  <OrgAbuseRef>https://whois.arin.net/rest/poc/AEA8-ARIN</OrgAbuseRef>  
  <cidr_mask> 
    <item0> 
      <cidr>52.32.0.0/11</cidr> 
      <mask>255.224.0.0</mask> 
    </item0> 
  </cidr_mask> 
  <requests_available>10000</requests_available> 
</response>