API docs

Making requests

GEThttps://ip-netblocks-api.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&ip=8.8.8.8
GEThttps://ip-netblocks-api.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&ip=8.8.8.8&mask=16
GEThttps://ip-netblocks-api.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&org=facebook,project

It takes up to 2 minutes to activate your account after Sign Up.

Input parameters: required

apiKey
Get your personal API KEY on My products page.
ip
Required ip or org. Get ranges by IP. IPv4 address.
org
Required ip or org. Find IP Netblocks which have all the specified search terms in their Netblock Name or Organisation Name. The search string could be one search term or a list of comma-separated search terms. If a search term is shorter than 3 symbols or consists of digits only, it is ignored. If there are more than 10 terms, they will be stripped.

Input parameters: optional

mask
Optional for ip parameter only. Get ranges by CIDR.

Acceptable values: 16 - 32

Default: 32
limit
Max count of returned records.

Acceptable values: 100 - 10000

Default: 100
outputFormat
Response output format.

Acceptable values: JSON | XML

Default: JSON

Free access

After Sign Up you automatically get a free subscription plan limited to 1000 queries.

Sample output

JSON
XML
                            [
  {
    "inetnum": "110.170.64.0 - 110.170.127.255",
    "inetnumFirst": 1856651264,
    "inetnumLast": 1856667647,
    "as": {
      "asn": 7470,
      "name": "TRUE INTERNET Co.,Ltd.",
      "route": "110.170.64.0/18",
      "domain": "trueinternet.co.th"
    },
    "netname": "TrueCorporate",
    "modified": "2013-08-15T07:05:35Z",
    "country": "TH",
    "city": "",
    "abuseContact": [],
    "adminContact": [
      {
        "id": "TIA6-AP",
        "role": "TRUE IP ADMINISTRATION",
        "email": "ipadmin@trueinternet.co.th",
        "phone": "+662 6200400",
        "country": "TH",
        "city": ""
      }
    ],
    "techContact": [
      {
        "id": "TIA6-AP",
        "role": "TRUE IP ADMINISTRATION",
        "email": "ipadmin@trueinternet.co.th",
        "phone": "+662 6200400",
        "country": "TH",
        "city": ""
      }
    ],
    "org": null,
    "mntBy": [
      {
        "mntner": "MAINT-AP-TRUEINTERNET",
        "email": "atchariya_cha@trueinternet.co.th\nipadmin@trueinternet.co.th"
      }
    ],
    "mntDomains": [],
    "mntLower": [],
    "mntRoutes": [],
    "source": "APNIC"
  },
  {},
  {}
]
                        
                            <xml>
  <item>
    <inetnum>110.170.64.0 - 110.170.127.255</inetnum>
    <inetnumFirst>1856651264</inetnumFirst>
    <inetnumLast>1856667647</inetnumLast>
    <as>
      <asn>7470</asn>
      <name>TRUE INTERNET Co.,Ltd.</name>
      <route>110.170.64.0/18</route>
      <domain>trueinternet.co.th</domain>
    </as>
    <netname>TrueCorporate</netname>
    <modified>2013-08-15T07:05:35Z</modified>
    <country>TH</country>
    <city/>
    <abuseContact/>
    <adminContact>
      <item>
        <id>TIA6-AP</id>
        <role>TRUE IP ADMINISTRATION</role>
        <email>ipadmin@trueinternet.co.th</email>
        <phone>+662 6200400</phone>
        <country>TH</country>
        <city/>
      </item>
    </adminContact>
    <techContact>
      <item>
        <id>TIA6-AP</id>
        <role>TRUE IP ADMINISTRATION</role>
        <email>ipadmin@trueinternet.co.th</email>
        <phone>+662 6200400</phone>
        <country>TH</country>
        <city/>
      </item>
    </techContact>
    <org/>
    <mntBy>
      <item>
        <mntner>MAINT-AP-TRUEINTERNET</mntner>
        <email>atchariya_cha@trueinternet.co.th
ipadmin@trueinternet.co.th</email>
      </item>
    </mntBy>
    <mntDomains/>
    <mntLower/>
    <mntRoutes/>
    <source>APNIC</source>
  </item>
  <item>...</item>
  <item>...</item>
</xml>
                        
inetnum
e.g. "0.0.0.0 - 255.255.255.255"
inetnumFirst
first IP as integer value, e.g. "134744072" (which is "8.8.8.8: in IP notation)
inetnumLast
last IP as integer value
as {}
Autonomous System – is null when the data is missing
as.asn
Autonomous System Number
as.name
-
as.route
-
as.country
-
as.domain
-
netname
name of the IPs range
modified
date of the last change (e.g. 2018-05-25T10:20:58Z)
country
2 chars' country code
city
name of city
abuseContact [ {} ]
list of administrative contacts
adminContact [ {} ]
list of administrative contacts
techContact [ {} ]
list of technical contacts
abuseContact[k].id
-
abuseContact[k].person
name of the contact person
abuseContact[k].role
role of the contact person
abuseContact[k].phone
-
abuseContact[k].email
-
abuseContact[k].country
-
abuseContact[k].city
-
org {}
organisation registered the range
org.id
-
org.name
-
org.phone
-
org.email
-
org.country
-
org.city
-
mntBy [ {} ]
list of maintainers who are able to update the IPs range
mntBy[k].id
-
mntBy[k].email
-
mntDomains []
list of domains' maintainers
mntLower []
list of maintainers who are able to change sub ranges
mntRoutes []
list of maintainers of routing info

Try our handy IP Netblocks API free of charge

Have questions?
support@whoisxmlapi.com
We will get back to you within a day.
WHOIS API, Inc.

California
USA

Contact us