To make your first request, send a Get request to the domain endpoint.
Check the domain example.com.
{
"status": 200,
"domain": "example.com",
"mx": false,
"disposable": false,
"public_domain": false,
"did_you_mean": null
}
{
"status": 400,
"error": "The domain is invalid."
}
{
"status": 429,
"error": "Too many requests"
}
curl https://api.usercheck.com/domain/example.com
$domain = "example.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.usercheck.com/domain/' . $domain);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
var_dump($response);
$domain = "example.com";
$client = new GuzzleHttp\Client;
$guzzle = $client->get("https://api.usercheck.com/domain/" . $domain);
const domain = 'example.com';
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", "https://api.usercheck.com/domain/" + domain, false );
xmlHttp.send();
console.log(xmlHttp.responseText);