API for Data Usage?

Is their a API i can use to pull an AP’s data Usage over a period, not throughput at a given time, but how much data passed over the last hour? I saw the metric that shows how many bytes/s at a given timestamp, but what about that their were 100gb in passed in the last hour.

The data exists because the cnMaestro UI shows how much data was passed, the performance api has data rates bits/s but that’s a guage not a counter so theirs no way to calculate how much data passed between the 2 periods from what i can tell.