LabStack Docs
Login Signup

Domain Search

Search for a valid domain name

Request

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

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

Response

{
  "results": [
    {
      "domain": "twilio.com",
      "zone": "com"
    }
  ]
}