Network

Query Domain WHOIS Registration Information

0calls
2 credits / call

Want to know when a domain was registered, who the registrar is, and when it expires? WHOIS information can tell you all of this.

Overview

This is an online WHOIS query tool. You can obtain WHOIS information in two ways:

  • Default behavior (without parameters): GET /api/v1/network/whois?domain=google.com
    • Returns a JSON object, with the whois field as the raw, unprocessed WHOIS text string.
  • JSON formatted: GET /api/v1/network/whois?domain=google.com&format=json
    • Returns a JSON object, with the whois field as a parsed JSON object containing key-value pairs from the WHOIS information.

This way you can get both the most complete raw information and easily process structured data.

Query parameters

domain
stringrequired

The domain name for which you need to query WHOIS information.

format
stringoptional

Return format. Leave blank or set to 'text' to return raw WHOIS text, set to 'json' to return structured JSON.

Response

200 / OK

Query successful! Returns raw WHOIS text or structured JSON based on the format parameter.

Format 1

Text Format Response

When format=text or not specified, the whois field contains the raw WHOIS query text. This preserves the most complete information, suitable for scenarios where you need to parse or display raw data yourself.

JSON
Format 2

JSON Format Response

When format=json, the whois field returns a structured JSON object.

Note

Note: The specific fields returned may vary depending on domain registry and privacy protection settings. Some sensitive information may be partially hidden or marked as REDACTED FOR PRIVACY.

JSON

400 / Bad Request

Invalid request parameters. Please check if the domain parameter is provided and formatted correctly.

JSON

404 / Not Found

Query failed or domain does not exist.

JSON