First, include jQuery in your page:

<script src=""></script>

Here is the API 2 of cPanel:
Find the modules and function names you need, and use them when calling the function below.
Copy the following function to your webpage:

function cpanel_call(module, fct, domain, user, password, secure, port, json, callback, return_as, async)
var protocol = secure ? "https" : "http";
var data_type = json [...]