Making requests | Documentation | IP Netblocks API | WhoisXML 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: JSON

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

from

The IP netblock range is used as an offset for the returned results.

Since every response is limited to limit records (100 by default), you can retrieve the next page by putting the next parameter from the response into this parameter. For example, if the next parameter is "6.0.0.0-13.115.255.255" to retrieve the next page, call https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=YOUR_API_KEY&ip=8.8.8.8&limit=5&from=6.0.0.0-13.115.255.255.

If the parameter is omitted, you'll get a maximum of limit records (default 100).

If the next parameter is null, then there is no next page.

Such pagination is only available for IPv4, IPv6 and ASN API requests. ORG requests don't support it.

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.

This API is also available with a dedicated load balancer and premium endpoint to enable faster querying as part of our Premium API Services and Enterprise API Packages.