---
title: "Get organization usage costs"
method: GET
path: "/v1/organizations/{organizationId}/usageCost"
tags: ["Billing"]
---

# Get organization usage costs

`GET /v1/organizations/{organizationId}/usageCost`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/usageCost`
- Auth: HTTP basic

Returns a grand total and a list of daily, per-entity organization usage cost records for the organization in the queried time period (maximum 31 days). All days in both the request and the response are evaluated based on the UTC timezone.

## Path parameters

- `organizationId` string, uuid, required

## Query parameters

- `from_date` string, date, required
- `to_date` string, date, required
- `filter` string[]

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` UsageCost
    - `grandTotalCHC` number: Grand total cost of usage in ClickHouse Credits (CHCs).
    - `costs` UsageCostRecord[]: List of daily, per-entity usage cost records.
      - `dataWarehouseId` string, uuid: ID of the dataWarehouse this entity belongs to (or is).
      - `serviceId` string, uuid, nullable: ID of the service this entity belongs to (or is). Set to null for dataWarehouse entities.
      - `date` string, date: Date of the usage. ISO-8601 date, based on the UTC timezone.
      - `entityType` 'datawarehouse' | 'service' | 'clickpipe': Type of the entity.
      - `entityId` string, uuid: Unique ID of the entity.
      - `entityName` string: Name of the entity.
      - `metrics` UsageCostMetrics
        - `storageCHC` number: Cost of storage in ClickHouse Credits (CHCs). Applies to dataWarehouse entities.
        - `backupCHC` number: Cost of backup in ClickHouse Credits (CHCs). Applies to dataWarehouse entities and Postgres service entities.
        - `computeCHC` number: Cost of compute in ClickHouse Credits (CHCs). Applies to service and clickpipe entities.
        - `dataTransferCHC` number: Cost of data transfer in ClickHouse Credits (CHCs). Applies to clickpipe entities.
        - `initialLoadCHC` number: Cost of initial load and resyncs in ClickHouse Credits (CHCs). Applies to clickpipe entities.
        - `publicDataTransferCHC` number: Cost of data transfer in ClickHouse Credits (CHCs). Applies to service entities.
        - `interRegionTier1DataTransferCHC` number: Cost of tier1 inter-region data transfer in ClickHouse Credits (CHCs). Applies to service entities.
        - `interRegionTier2DataTransferCHC` number: Cost of tier2 inter-region data transfer in ClickHouse Credits (CHCs). Applies to service entities.
        - `interRegionTier3DataTransferCHC` number: Cost of tier3 inter-region data transfer in ClickHouse Credits (CHCs). Applies to service entities.
        - `interRegionTier4DataTransferCHC` number: Cost of tier4 inter-region data transfer in ClickHouse Credits (CHCs). Applies to service entities.
      - `totalCHC` number: Total cost of usage in ClickHouse Credits (CHCs) for this entity.
      - `locked` boolean: When true, the record is immutable. Unlocked records are subject to change until locked.

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
