Making requests | Documentation old | IP Netblocks API | WhoisXML API

Making requests

GET https://ip-netblocks.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&ip=8.8.8.8
GET https://ip-netblocks.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&ip=8.8.8.8&mask=16
GET https://ip-netblocks.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&org=apple,germany
GET https://ip-netblocks.whoisxmlapi.com/api/v1?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 the My products page.

ip

Required one of the following input fields: ip, org, asn. Get ranges by IP. IPv4 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. The search string could be one search term or a list of comma-separated search terms. Maximum 10 terms are allowed. Search terms are the full words only. Terms shorter than 3 symbols or consists of digits only are ignored.

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 - 32

Default: 32

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.

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.