includeUsage=true gives you a live snapshot, these endpoints give you consumption over time as a zero-filled time series.
Both are served entirely from stored history and make no gateway calls, so they’re fast and safe to call freely.
cURL
Query parameters
Defaults and range caps
Each granularity has a maximum range. Asking for more returns
400 — narrow the range or use a coarser granularity.
Real-time totals
Stored history can be up to 15 minutes behind. Passlive=true to read the gateway counters at request time and fold the delta into the current bucket:
cURL
"live": true and a liveFailedLookups count.
live=true costs one gateway call per account in scope — your retail account plus every sub-user, the same cost as includeUsage. It’s skipped automatically for ranges that don’t reach the present, so historical queries stay cheap.How the data is produced
- A cron snapshots every gateway account’s cumulative counters every 15 minutes.
hourseries build on these, so they lag up to 15 minutes, and snapshots are retained for 90 days. - A daily rollup at 00:20 UTC condenses each UTC day into one document per account, kept forever.
day,week,month, andyearbuild on these. - The current, not-yet-rolled-up day is blended in live from snapshots, so “today” is never an empty bucket.
- Counter resets — for example an account recreated upstream — are clamped. A bucket is never negative.