LabStack Docs
Login Signup

Domain Status

Find registration status of a domain name

Request

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

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

Response

{
  "domain": "twilio.com",
  "zone": "com",
  "result": "unavailable",
  "flags": []
}