---
title: "CU consumption"
method: GET
path: "/{apiKey}/cu-consumption"
---

# CU consumption

`GET /{apiKey}/cu-consumption`

## Request

- Base URL: `https://portal-api.nodereal.io/v1`
- URL: `https://portal-api.nodereal.io/v1/{apiKey}/cu-consumption`
- Auth: none declared

CU consumption

## Path parameters

- `apiKey` string, required

## Query parameters

- `startTime` string, required
- `endTime` string, required

## Response `200`

Returns user CU consumption.

- object
  - `code` integer
  - `data` CuConsumptionResp
    - `endTime` integer
    - `records` MethodCost[]
      - `cost` integer
      - `count` integer
      - `method` string
      - `network` string
    - `startTime` integer
    - `totalConsumption` integer
  - `msg` string

## Other responses

- `400`: Invalid request
- `403`: Internal error

---

[API](https://skmtc.dev/nodereal/apis/cu-detail.md) - [All operations](https://skmtc.dev/nodereal/apis/cu-detail/llms.txt) - [OpenAPI document](https://skmtc.dev/nodereal/apis/cu-detail/revisions/b688e880b88c?raw)
