Getting bandwidth usage embeded into my site

Is there a way to get my current servers bandwidth usage data placed in my site via using php or another programming language?

I’m going to hav a few servers with a few different IP’s/domains and don’t want to have to login to each one everytime to look at the bandwidth usage, I would prefer it to be on my site in my own customized admin control panel section.

Thanks!

Thanks, will take a look at it.

I found this developer section of the cPanel website: http://www.cpanel.net/developer/
The section Interfacing with cPanel and WHM might be helpful. There may be a hook to get the data you need. You could then setup a cron to run your script and update the information in your backend regularly.

I’m on a dedicated server if that helps using cPanel.

You will have to ask your web host if that information is available.