LabStack Docs
Login Signup

Domain Search

Search for a valid domain name

Request

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

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

Response

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