---
title: "query for underlying infrastructure assets"
method: GET
path: "/assets"
---

# query for underlying infrastructure assets

`GET /assets`

Returns the costs of Nodes, Disks, and Load Balancers.

## Query parameters

- `window` string, required

## Response `200`

Success

- AssetsResponse
  - `code` integer
  - `status` string
  - `data` object

## Other responses

- `400` — Bad request — missing or invalid `window` parameter
- `500` — Internal server error — computing or filtering assets 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/assets/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)
