I have a multiserver setup would like to determine number of websites on each server so I can write a script to create a new acct/website on the least busy (least number of websites). Is there a routine in api that can be used to determine that? Thanks!
you can query all records from web_domain table with the api by server id plus type vhost, so the number of records in the resulting array is the number of sites on that server, use the extended query syntax of the sites_domain_get function for that where you pass an array as primary id.