---
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`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/api/v1/databricks/clusters/cost-trends`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

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.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
