Results 1 to 4 of 4
  1. #1

    cPanel API Scripting

    I'm currently hosting using WHM/cPanel through and I'm trying to create a simplified control panel for my customers. What I'm looking to do seems simple yet I can find NO examples or ready-made scripts online.

    I need a way to retrieve a users Disk Space Limit and Usage, as well as their Bandwidth Limit and Usage without logging into cPanel directly.

    It would appear that there is an API that would allow this, but I'm not a programmer myself and as stated above cannot find anything that's already written to achieve this. Surely this isn't a difficult task?

    My preference is to use PHP to access and retrieve the stats in real time when the user accesses a page in my control panel.

    Can anyone assist or point me in the right direction?

  2. #2
    Join Date
    Apr 2009
    WHMCS shows that information so I'm sure it's possible, I believe it's pretty easy to program with cPanel's API just there isn't really an examples at all. I think you might have to be the first!

  3. #3
    Join Date
    Apr 2009
    Pittsburgh, Pennsylvania

  4. #4
    Join Date
    Apr 2009
    Adelaide, Australia
    I've just started looking into this for a new project of mine and it's definitely not as straight forward and easy as I'd like (nothing ever is! )
    Nevertheless, I've found that the cPanel website and forums has a bit of information. For starters, check the XMLAPI PHP class:
    and then the wiki (

    It seems like you can perform most functions with the API and it's in continuing development so I assume it will only get better. Retrieving user information should be easy enough.

    Good luck
    AdelaideHost - providing shared and VPS hosting.
    Reliability and professionalism at prices that don't hurt your wallet!

Similar Threads

  1. Replies: 2
    Last Post: 12-28-2006, 01:13 PM
  2. cPanel Multiple Cross Site Scripting
    By Serverplan in forum Hosting Security and Technology
    Replies: 0
    Last Post: 02-03-2006, 01:04 PM
  3. WHM/Cpanel scripting needed in PHP
    By jmb1881 in forum Other Offers & Requests
    Replies: 2
    Last Post: 08-15-2003, 03:45 AM
  4. Disabling Perl Scripting for a virtual site on a cpanel based box
    By neonlexx in forum Hosting Security and Technology
    Replies: 3
    Last Post: 05-13-2003, 02:18 AM
  5. Linux,CPanel,WHM or scripting experts needed!
    By McRox in forum Employment / Job Offers
    Replies: 4
    Last Post: 12-11-2002, 09:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts