Usage
What the resources of an account cost: current spend, predictions and history.
Get the usage
Calculate the current spend of the account and the predicted spend for today, this month and next month, in USD. Optionally only for a project or some resource types.
path Parameters
accountquery Parameters
projectOnly count the usage of this DigitalOcean project UUID. Needs a plan with the project filter.
resource_types[]Get the usage › Responses
account_idproject_idThe project the usage is limited to, null for the whole account.
resource_typesThe resource types the usage is limited to, null for all types.
hourlyCurrent spend per hour of the resources that exist.
day_to_dateSpend so far today.
day_predictedPredicted spend for the whole of today.
month_to_dateSpend so far this month.
month_predictedPredicted spend for the whole of this month.
next_month_predictedPredicted spend for next month when the current resources keep running.
calculated_atGet the usage history
Get the recorded spend of the account in USD per period of the range, per hour for a day, per day for up to 90 days and per month for longer ranges, split by resource type. Optionally only for a project or some resource types.
path Parameters
accountquery Parameters
projectOnly count the usage of this DigitalOcean project UUID. Needs a plan with the project filter.
resource_types[]rangeThe time range: today and yesterday per hour; past_7_days, past_30_days, past_90_days, month and past_month per day; year, past_year and all per month.
Get the usage history › Responses
rangeintervalThe size of each period: hour, day or month.
fromtoThe periods from old to new, periods without recorded usage have zero spend.