Making requests | Documentation | IP Netblocks API | Whois XML API

Making requests

GET https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=YOUR_API_KEY&ip=8.8.8.8
GET https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=YOUR_API_KEY&ip=2001:0000:4136:e378::
GET https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=YOUR_API_KEY&ip=8.8.8.8&mask=16
GET https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=YOUR_API_KEY&org[]=apple&org[]=germany
GET https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=YOUR_API_KEY&asn=2544
It takes up to a minute to activate your account after the registration.

Input parameters: required

apiKey

Get your personal API KEY on My products page.

ip

Required one of the following input fields: ip, org, asn. Get ranges by IPv4/IPv6 address or by CIDR depending on input. Also, the search by CIDR could be done with the optional mask parameter, if it's more convenient.

org

Required one of the following input fields: ip, org, asn. Find IP Netblocks which have the specified search terms in their Netblock (netname, description, remarks), or Organisation (org.org, org.name, org.email, org.address) fields. To provide multiple terms: ?org[]=term1&org[]=term2&org[]=term3

asn

Required one of the following input fields: ip, org, asn. Get ranges by ASN (Autonomous System Number).

Input parameters: optional

outputFormat

Response output format.

Acceptable values: JSON | XML

Default: XML

mask

Optional for ip parameter only. Get ranges by CIDR.

Acceptable values: 0 - 128 (0 - 32 for IPv4)

Default: 128

limit

Max count of returned records.

Acceptable values: 1 - 1000

Default: 100

Free access

After Sign Up you automatically get a free subscription plan limited to 1,000 queries per month.

Usage limits and requests throttling

The maximum number of requests per second is 100. In case that the limit is breached, your subsequent requests will be rejected until the next second.

Have questions?

We work hard to improve our services for you. As part of that process, we welcome your feedback, questions, and suggestions. Please let us know about your thoughts and feelings, and any way in which you think we can improve our product.

For a quick response, please select the request type that best suits your needs. For more info regarding the request types, see Contact us page.

By submitting, you agree to the Terms of Service and Privacy Policy.

Or shoot us an email to