WHOIS
Here is everything you need to start using the Google WHOIS API.
Parameters
The various parameters listed below are elaborated upon in detail:
| Parameter | Description |
|---|---|
|
domain
|
The domain name to look up (e.g., example.com). |
|
format
|
The output format of the response (e.g., JSON, XML). |
Request
Integrating is just seamless. Select your preferred language to view code examples for domain requests.
import requests
# HTTP request to API WHOIS
api_result = requests.get(
'https://v1.api-whois.com/api/whois',
headers={'API-KEY': ''},
params={
'domain': 'google.com'
}
)
# Dump results
print(api_result.json()['data'])
Response
A successful response will return a 200 HTTP status code along with a JSON object containing the WHOIS information for the specified domain. Below is an example of a typical response :
{
"server": "gamma",
"name": "google.com",
"idnName": "google.com",
"status": [
"clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited)",
"clientTransferProhibited (https://www.icann.org/epp#clientTransferProhibited)",
"clientDeleteProhibited (https://www.icann.org/epp#clientDeleteProhibited)",
"serverUpdateProhibited (https://www.icann.org/epp#serverUpdateProhibited)",
"serverTransferProhibited (https://www.icann.org/epp#serverTransferProhibited)",
"serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited)"
],
"nameserver": [
"ns3.google.com",
"ns2.google.com",
"ns1.google.com",
"ns4.google.com"
],
"ips": "142.250.181.238",
"created": "1997-09-15 07:00:00",
"changed": "2024-08-02 02:17:33",
"expires": "2028-09-14 04:00:00",
"registered": true,
"dnssec": "unsigned",
"whoisserver": "whois.markmonitor.com",
"contacts": {
"owner": [
{
"organization": "Google LLC",
"email": "Select Request Email Form at https://domains.markmonitor.com/whois/google.com",
"country": "US"
}
],
"tech": [
{
"email": "Select Request Email Form at https://domains.markmonitor.com/whois/google.com"
}
]
},
"registrar": {
"id": "292",
"name": "MarkMonitor, Inc.",
"email": "abusecomplaints@markmonitor.com",
"url": "http://www.markmonitor.com",
"phone": "+1.2086851750"
},
"network": null,
"exception": null,
"parsedContacts": true,
"template": {
"whois.verisign-grs.com": "verisign",
"whois.markmonitor.com": "standard"
},
"source": "whois",
"ask_whois": "whois.markmonitor.com"
}