---
title: "Get warehouse cost trends by SKU"
method: GET
path: "/api/v1/databricks/warehouses/cost-trends"
tags: ["DATABRICKS", "Databricks", "Databricks Warehouses"]
---

# Get warehouse cost trends by SKU

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

Get warehouse (SQL) cost trends over time broken down by SKU.

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

- WarehouseCostTrendsResponse — Response for warehouse cost trends (aggregated across all warehouses).
  - `trends` WarehouseCostTrendItem[], required — Cost trends broken down by warehouse type
    - `period` string, required
    - `warehouse_type` string, required
    - `total_dbus` number
    - `estimated_cost` number
  - `warehouse_types` string[], required — List of warehouse types present in the data
  - `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)
