Making requests | Documentation | WHOIS API | WhoisXML API

Making requests

Our Hosted Whois Web Service provides registration details, also known as WHOIS Records, of a domain names, an IP addresses or an email address.

WhoisXMLAPI.com provides RESTful APIs. It is designed for server-to-server communication between your system and the WhoisXMLAPI.com network using HTTPs protocol. Query responses are delivered in either XML or JSON format based on your requests which are made via GET/POST methods.

To get started you need a developer's account with WhoisXmlApi.com. Authentication is required each time in order to use the API. The first 500 WHOIS API calls are complimentary when you register for a free developer account.


GET https://www.whoisxmlapi.com/whoisserver/WhoisService?apiKey=API_KEY&domainName=google.com
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.

domainName

The domain/IPv4/IPv6/email address for which WHOIS data is requested.

Input parameters: optional

outputFormat

Response output format.

Acceptable values: JSON | XML

Default: XML

preferFresh

1 results in getting the latest WHOIS record even if it's incomplete.

Acceptable values: 0 | 1

Default: 0

da

1 results in a quick check on domain availability, 2 is slower but more accurate. Results are returned under WhoisRecord → domainAvailability (AVAILABLE | UNAVAILABLE | UNDETERMINED)

Acceptable values: 0 | 1 | 2

Default: 0

ip

1 results in returning IPs for the domain name.

Acceptable values: 0 | 1

Default: 0

ipWhois

1 results in returning the WHOIS record for the hosting IP if the WHOIS record for the tld of the input domain is not supported.

Acceptable values: 0 | 1

Default: 0

checkProxyData

1 results in fetching proxy/WHOIS guard data, if it exists, in the WhoisRecord → privateWhoisProxy schema element.

Acceptable values: 0 | 1

Default: 0

thinWhois

1 results in returning WHOIS data from registry only, without fetching data from registrar. Returned registry data corresponds to the WhoisRecord → registryData schema element.

Acceptable values: 0 | 1

Default: 0

ignoreRawTexts

1 results in stripping all raw text from the output.

Acceptable values: 0 | 1

Default: 0

callback

A javascript function used when outputFormat is JSON; this is an implementation known as JSONP which invokes the callback on the returned response.

_parse

1 provides parsing for input WHOIS raw texts described below.

Acceptable values: 0 | 1

Default: 0

registryRawText

A string representing the registry WHOIS raw text to be parsed; works only when the _parse parameter is equal to 1.

registrarRawText

A string representing the registrar WHOIS raw text to be parsed; works only when the _parse parameter is equal to 1.

Free access

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

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