Check Domain Availability - check domains availability

Up to 20 domains can be checked at once. The following TLDs are supported: .cz, .eu, .com, .net, .org, .biz, .info, .name, .cloud, and .sk.

<?php
$result = $client->sendCommand("check domains availability",array(
  "domains" => array(
    "example.cz",
    "example2.cz",
    "surely-free-domain.cz",
    "domains.com",
    "surely-free-domain.com",
    "surely-free-domain.eu",
    "surely-free-domain-sk-tld.sk"
  )
));
?>

You can also specify which contact will be used for domain registration. This is important for .cz domains where the registration right has been won through an auction.

<?php
$result = $client->sendCommand("check domains availability",array(
  "domains" => array(
    "example.cz",
    "example2.cz",
    "surely-free-domain.cz",
    "domains.com",
    "surely-free-domain.com",
    "surely-free-domain.eu",
    "surely-free-domain-sk-tld.sk",
    "auction-won-by-your-contact.cz",
    "auction-won-by-someone-else.cz"
  ),
  "registrant" => "YOUR-CONTACT"
));
?>

The following associative array will be returned.

<?php
print_r($result->getData());
 
//  Array
//  (
//    [example.cz] => no
//    [example2.cz] => no
//    [surely-free-domain.cz] => yes
//    [domains.com] => no
//    [surely-free-domain.com] => yes
//    [surely-free-domain.eu] => yes
//    [surely-free-domain-sk-tld.sk] => yes
//    [auction-won-by-your-contact.cz] => yes
//    [auction-won-by-someone-else.cz] => auction winner only
//  )
?>

Possible values for individual domains:

  • yes - the domain is available for registration
  • no - the domain is not available for registration
  • auction winner only - the domain is available for registration only to a specific auction winner other than the one specified
  • ? - availability cannot currently be determined or the domain name is invalid