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

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 are here to listen. For a quick response, please select your request type or check our Contact us page for more information. By submitting a request, you agree to our Terms of Service and Privacy Policy.

Or shoot us an email to