Making requests | Documentation | IP Netblocks API | WhoisXML API

Making requests

API endpoints

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.

Postman collection

Postman is a desktop and web application that allows you to make requests to an API from a graphical user interface. We recommend using Postman with WhoisXML APIs endpoints when exploring the APIs functionality, as well as when you are troubleshooting issues with your application.

The WhoisXML API Postman collection is available at the following links:

The collection includes a preconfigured environment. You will need to set up the api_key variable to fire each request. Get your personal API KEY on the My products page. If you have questions related to the API, contact us.

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

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.