DomainsCheckAvailability

Check if a domain is free and can be registered or moved. There is only a limited use of this command. How often you can use this function:
a = Number of domain into account (active and inactive)
a * 8 + 100 = maximum number of times that this command can be used
Suppose you have 28 domain names (active and inactive) in your account. You can use this command up to 334 times a day.

Input

Parameter Value Example value
domain Domain without extension.
Eg "versio.uk" you enter "versio".
Parameter is required
versio
tld Domain extension.
Eg "versio.uk" you enter "uk".
Parameter is required
uk


Output

Parameter Value Example value
success command executed successfully 0 = fout
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
status Domain status.
Only sent when value parameter success = 1
1 = available 0 = taken
push_required Domain already registered at Versio. Only for taken domains.
Only sent when value parameter success = 1.
0 = Not registered at Versio 1 = Registered at Versio.


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "DomainsCheckAvailability", "domain" => "domain", "tld" => "ext" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { IF($versio['status']==1) { echo("Domain is free. "); } else { echo("Domain is taken.<br/>"); if($versio['push_required'] == '1'){ echo ("Domain is registered at Versio. Sent push via DomainsRequestPush to transfer."); } else{ echo ("Domain not registered at Versio."); } } } ?>