To make a request for Discover WHOIS result use this POST API.

HTTP Request

POST https://api.hexomatic.com/tool-api/discover-whois?key={YOUR_API_KEY}

Parameters
Fields
YOUR_API_KEY

string

to get YOUR_API_KEY visit hexomatic settings API/Webhook section and copy your key

Request Body
Fields
source

string

you should provide a domain

Example

{

"source": "example.com"

}

Response Body

if request is successful you will get

JSON representation

{

"taskId": "13f4b463-7e8a-429a-b62b-4afde618a154"

}

if request is not successful you will get

JSON representation

{

"statusCode": 403,

"message": "Forbidden"

}

To get the result for Discover WHOIS use this GET API.

HTTP Request

GET https://api.hexomatic.com/tool-api/result/{TASK_ID}?key={YOUR_API_KEY}

Parameters
Fields
YOUR_API_KEY

string

to get YOUR_API_KEY visit hexomatic settingsand API/Webhook section and copy your key

TASK_ID

string

if you did Discover WHOIS POST request you must have received taskId that is valid one month after making the POST request. You can try to make this GET request with apx 5 minutes frequency after making the POST request for the tool.

Response Body

if request is successful you will get

JSON representation

{

"result": {

"_whois_url": "https://example.com/"

"_whois_domain": "example.com"

"_whois_status": "Registered"

"_whois_exists": true

"_whois_expiresAt": "2023-01-19T06:23:59.000Z"

_whois_expirationDays": 418

_whois_lastModified": "2021-02-07T10:33:30.000Z"

_whois_registeredAt": "2019-01-19T06:23:59.000Z"

_whois_fullText": "DOMAIN_FULL_INFORMATION"

_whois_dnsData": "DNS_DATA"

}

}

if request is not successful you will get

JSON representation

{

"statusCode": 403,

"message": "Forbidden"

}