billing

Get Billing Costs

Return month-to-date spend for the configured project, against its budget.

Figures come from the Cloud Billing export and typically lag by several hours — see data_as_of. Responses are cached for BILLING_CACHE_TTL_SECONDS, which is well under that lag.

get/api/billing/costs

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Response

Successful Response

budget_amountnumber nullable required
budget_currencystring nullable required
budget_display_namestring nullable required
budget_scopestring nullable required
creditsnumber required
currencystring required
data_as_ofstring date-time nullable required
gross_costnumber required
invoice_monthstring required
month_to_date_costnumber required
project_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.