---
title: "Get Databricks cost trends over time"
method: GET
path: "/api/v1/databricks/cost/trends"
tags: ["DATABRICKS", "Databricks", "Databricks Cost"]
---

# Get Databricks cost trends over time

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

Get cost trends over time.

Returns time series data with DBU consumption and estimated cost per period.

## Query parameters

- `start_date` string, date, required — Start date for the period
- `end_date` string, date — End date for the period
- `granularity` string — Time granularity: 'day', 'week', or 'month'
- `workspace_id` string, nullable — Filter by workspace ID
- `navigationSource` string, nullable

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- CostTrendsResponse — Response model for cost trends endpoint.
  - `trends` CostTrendItem[], required — List of trend data points
    - `period` string, required — Period label (date or week/month)
    - `total_dbus` number, required — Total DBUs for the period
    - `estimated_cost` number, required — Estimated cost for the period
  - `granularity` string, required — Time granularity (day/week/month)

## 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)
