---
title: "query for cloud provider billing data"
method: GET
path: "/cloudCost"
---

# query for cloud provider billing data

`GET /cloudCost`

Retrieves non-K8s cloud provider costs via cloud integration. Requires `CLOUD_COST_ENABLED=true`; when disabled this route is not registered and requests return 404.

## Query parameters

- `window` string, required

## Response `200`

Success

- CloudCostResponse
  - `code` integer
  - `status` string
  - `data` object
    - `sets` CloudCostSet[]
      - `cloudCosts` object

## Other responses

- `400` — Bad request — missing or invalid parameters
- `500` — Internal server error — the cloud cost query failed

## Changes

- **2026-07-16** `c440ab5efe8e` — 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
- **2026-02-05** `0ce7443accd4` — 1 info
  - endpoint added
- **2023-01-20** `3cbff640f287` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/opencost/apis/opencost-api/changes/cloudCost/get.md)

---

[API](https://skmtc.dev/opencost/apis/opencost-api.md) · [All operations](https://skmtc.dev/opencost/apis/opencost-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opencost/opencost-api/revisions/c4d279a26333/schema)
