---
title: "Get cluster cost trends by compute type"
method: GET
path: "/api/v1/databricks/clusters/cost-trends"
tags: ["DATABRICKS", "Databricks", "Databricks Clusters"]
---

# Get cluster cost trends by compute type

`GET /api/v1/databricks/clusters/cost-trends`

Get all clusters cost trends over time broken down by compute type.

## Query parameters

- `start_date` string, date, required — Start date
- `end_date` string, date — End date
- `granularity` string — Time granularity (day, week, month)
- `workspace_id` string, nullable — Filter by workspace ID
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- ClustersCostTrendsResponse — Response for all clusters cost trends (aggregated across all clusters).
  - `trends` ClusterCostTrendItem[], required — Cost trends broken down by compute type
    - `period` string, required
    - `compute_type` string, required — Compute type bucket: 'all_purpose', 'jobs', or 'serverless'.
    - `total_dbus` number
    - `estimated_cost` number
  - `compute_types` string[], required — Distinct compute types present, ordered by total cost desc (legend order).
  - `granularity` string, required — Time granularity (day, week, month)
  - `total_dbus` number — Total DBUs in period
  - `total_cost` number — Total estimated cost

## Other responses

- `403` — Not authorized
- `404` — No ClickHouse database configured
- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
