dir -ld /home/*/domains/*
no, this is not api.
Overview CMD_API_DNS_ADMIN check to see if a domain exists
CMD_API_DNS_ADMIN
method: GET or POST
domain=domain.com
action=exists
result: exists=1 or exists=0
else error=1&details=some text
include 'httpsocket.php';
$sock = new HTTPSocket;
$sock->connect('mysite.lt',2222);
$sock->set_login('admin','mypass');
$sock->query('/CMD_API_DNS_ADMIN',
array('domain' => 'domainitocheck.lt', 'action' => 'exists'));
$result = $sock->fetch_body();