Cloud Cost API
Cloud Cost API (Querying)
GET
http://app.kubecost.com/query/cloudcost/query
The Cloud Cost API is the preferred way to query for costs and resources related to cloud provider services.
Path Parameters
Name | Type | Description |
---|---|---|
window* | string | Duration of time over which to query. Accepts multiple formats including units of time, relative time units, and unix timestamps. See this section on using the |
format | string | File type when exporting query. Currently only supports |
aggregate | string | Used to consolidate cost model data. Supported values are |
accumulate | boolean | If |
costMetric | String | Determines which cloud cost metric type will be returned. Acceptable values are |
limit | int | Refers to the number of line items per page. Currently, only supported together with |
filter | string | Filter your results by any category which you can aggregate by, can support multiple filterable items in the same category in a comma-separated list. For example, to filter results by categories A and B, use |
Cloud Costs API (Total)
GET
http://app.kubecost.com/query/cloudcost/totals
The /totals
endpoint does not aggregate, and accepts only a window and an optional filter, returning a single total cost.
Path Parameters
Name | Type | Description |
---|---|---|
window* | string | Duration of time over which to query. Accepts multiple formats including units of time, relative time units, and unix timestamps. See this section on using the |
format | string | File type when exporting query. Currently only supports |
filter | string | Filter your results by any category which you can aggregate by, can support multiple filterable items in the same category in a comma-separated list. For example, to filter results by categories A and B, use |
Last updated