I am not sure about that, but I wouldnt doubt it. as of now, my script grabs it out of the clients account with the clients pw

Click to expand...

Are you using cPanel API or other scripts ?

I modified a PHP script and put it in one of my website, this script will receive queries from other websites then grab XML data from WHM and finally return this data to the websites that request it. For the moment it's my only solution (tested succesfully) because I have several WHM and I don't want to put WHM accesskey manually in every script installed on the websites (imagine if I change the accesskey there will be lot of works).

But the solution only works for the websites hosted by me, if the websites are with other resellers it will not work because I don't have their WHM accesskey, so if it can be done with cPanel's API that's great.

To my knowledge, Bandwidth & Disk usage can only obtain by using WHM "showbw" & "accountsummary" functions, can it be done via cPanel API without using WHM username / password ?

Click to expand...

Yes, use the API call I mentioned above. You can call the XML API for the cPanel account, just use the cPanel user's credentials to authenticate and use port 2083 (port 2082 if using plain-text HTTP) instead of ports 2087, 2086.

Another question : does Mysql databases share the same disk space with the website ? If not how to grab the information about its disk usage ?

Click to expand...

As of writing, database disk space is not always counted as part of the user's disk consumption. This will be resolved fully in cPanel/WHM 11.25. However, there is no built-in way for retrieving the disk space consumed only by databases via our APIs at this time.