LabStack Docs
Login Signup

Domain Whois

Lookup whois record of a domain name

Request

GET https://domain.labstack.com/api/v1/:type/:domain

Parameter Description Type Required Default
domain Domain name String Yes
curl \
  -X GET https://email.labstack.com/api/v1/whois/twilio.com \
  -H 'Authorization: Bearer <API_KEY>'
c := labstack.NewClient("<API_KEY>")
s := c.Domain()
res, err := s.Whois(&domain.WhoisRequest{
  Domain: "twilio.com",
})
if err != nil {
  fmt.Println(err)
}
Client client = new Client("<API_KEY>");
DomainService service = client.domain();
try {
  WhoisRequest request = WhoisRequest.builder().domain("twilio.com").build();
  WhoisResponse response = service.whois(request);
} catch (LabStackException e) {
  e.printStackTrace();
}
const client = new Client("<API_KEY>")
const service = client.domain();
try {
  const response = await service.whois({
    domain: "twilio.com"
  });
} catch (error) {
  console.error(error);
}
client = Client("<API_KEY>")
service = client.domain()
try:
  response = service.whois({
    "domain": "twilio.com"
  })
except LabStackError as e:
  print(e)

Response

{
  "domain": "twilio.com",
  "id": "1300443507_DOMAIN_COM-VRSN",
  "status": "clientupdateprohibited,clienttransferprohibited,clientdeleteprohibited,serverupdateprohibited,servertransferprohibited,serverdeleteprohibited",
  "created_date": "2007-10-26T15:26:18-0700",
  "updated_date": "2017-03-28T08:07:14-0700",
  "expiry_date": "2022-10-26T15:26:18-0700",
  "name_servers": [
    "ns0.dnsmadeeasy.com",
    "a11-64.akam.net",
    "ns2.dnsmadeeasy.com",
    "a1-83.akam.net",
    "a24-65.akam.net",
    "ns1.dnsmadeeasy.com"
  ],
  "dnssec": "unsigned",
  "registrar": {
    "id": "292",
    "name": "MarkMonitor, Inc.",
    "url": "http://www.markmonitor.com",
    "whois_server": "whois.markmonitor.com"
  },
  "registrant": {
    "id": "",
    "name": "",
    "organization": "Twilio Inc.",
    "street": "",
    "city": "",
    "state": "CA",
    "zip": "",
    "country": "US",
    "phone": "",
    "fax": "",
    "email": ""
  },
  "admin": {
    "id": "",
    "name": "",
    "organization": "Twilio Inc.",
    "street": "",
    "city": "",
    "state": "CA",
    "zip": "",
    "country": "US",
    "phone": "",
    "fax": "",
    "email": ""
  },
  "technical": {
    "id": "",
    "name": "",
    "organization": "Twilio Inc.",
    "street": "",
    "city": "",
    "state": "CA",
    "zip": "",
    "country": "US",
    "phone": "",
    "fax": "",
    "email": ""
  },
  "billing": {
    "id": "",
    "name": "",
    "organization": "",
    "street": "",
    "city": "",
    "state": "",
    "zip": "",
    "country": "",
    "phone": "",
    "fax": "",
    "email": ""
  },
  "raw": "Domain Name: twilio.com\nRegistry Domain ID: 1300443507_DOMAIN_COM-VRSN\nRegistrar WHOIS Server: whois.markmonitor.com\nRegistrar URL: http://www.markmonitor.com\nUpdated Date: 2017-03-28T08:07:14-0700\nCreation Date: 2007-10-26T15:26:18-0700\nRegistrar Registration Expiration Date: 2022-10-26T15:26:18-0700\nRegistrar: MarkMonitor, Inc.\nRegistrar IANA ID: 292\nRegistrar Abuse Contact Email: [email protected]\nRegistrar Abuse Contact Phone: +1.2083895740\nDomain Status: clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited)\nDomain Status: clientTransferProhibited (https://www.icann.org/epp#clientTransferProhibited)\nDomain Status: clientDeleteProhibited (https://www.icann.org/epp#clientDeleteProhibited)\nDomain Status: serverUpdateProhibited (https://www.icann.org/epp#serverUpdateProhibited)\nDomain Status: serverTransferProhibited (https://www.icann.org/epp#serverTransferProhibited)\nDomain Status: serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited)\nRegistrant Organization: Twilio Inc.\nRegistrant State/Province: CA\nRegistrant Country: US\nAdmin Organization: Twilio Inc.\nAdmin State/Province: CA\nAdmin Country: US\nTech Organization: Twilio Inc.\nTech State/Province: CA\nTech Country: US\nName Server: ns0.dnsmadeeasy.com\nName Server: a11-64.akam.net\nName Server: ns2.dnsmadeeasy.com\nName Server: a1-83.akam.net\nName Server: a24-65.akam.net\nName Server: ns1.dnsmadeeasy.com\nDNSSEC: unsigned\nURL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/\n>>> Last update of WHOIS database: 2019-07-01T20:00:28-0700 <<<\n\nFor more information on WHOIS status codes, please visit:\n  https://www.icann.org/resources/pages/epp-status-codes\n\nIf you wish to contact this domain’s Registrant, Administrative, or Technical\ncontact, and such email address is not visible above, you may do so via our web\nform, pursuant to ICANN’s Temporary Specification. To verify that you are not a\nrobot, please enter your email address to receive a link to a page that\nfacilitates email communication with the relevant contact(s).\n\nWeb-based WHOIS:\n  https://domains.markmonitor.com/whois\n\nIf you have a legitimate interest in viewing the non-public WHOIS details, send\nyour request and the reasons for your request to [email protected]\nand specify the domain name in the subject line. We will review that request and\nmay ask for supporting documentation and explanation.\n\nThe data in MarkMonitor’s WHOIS database is provided for information purposes,\nand to assist persons in obtaining information about or related to a domain\nname’s registration record. While MarkMonitor believes the data to be accurate,\nthe data is provided \"as is\" with no guarantee or warranties regarding its\naccuracy.\n\nBy submitting a WHOIS query, you agree that you will use this data only for\nlawful purposes and that, under no circumstances will you use this data to:\n  (1) allow, enable, or otherwise support the transmission by email, telephone,\nor facsimile of mass, unsolicited, commercial advertising, or spam; or\n  (2) enable high volume, automated, or electronic processes that send queries,\ndata, or email to MarkMonitor (or its systems) or the domain name contacts (or\nits systems).\n\nMarkMonitor.com reserves the right to modify these terms at any time.\n\nBy submitting this query, you agree to abide by this policy.\n\nMarkMonitor is the Global Leader in Online Brand Protection.\n\nMarkMonitor Domain Management(TM)\nMarkMonitor Brand Protection(TM)\nMarkMonitor AntiCounterfeiting(TM)\nMarkMonitor AntiPiracy(TM)\nMarkMonitor AntiFraud(TM)\nProfessional and Managed Services\n\nVisit MarkMonitor at https://www.markmonitor.com\nContact us at +1.8007459229\nIn Europe, at +44.02032062220\n\n"
}
Parameter Description Type
domain String
id String
status String
created_date Date
updated_date Date
expiry_date Date
name_servers []String
dnssec String
registrar Registrar (Registrar)
registrant Registrant (Registrant)
admin Registrant (Registrant)
technical Registrant (Registrant)
billing Registrant (Registrant)
raw String

Registrar

Parameter Description Type
id String
name String
url String
whois_server String

Registrant

Parameter Description Type
id String
name String
organization String
street String
city String
state String
zip String
country String
phone String
fax String
email String