---
title: "Get app costs"
method: POST
path: "/account/v1alpha1/costs/app"
tags: ["AppCosts"]
---

# Get app costs

`POST /account/v1alpha1/costs/app`

## Request

- Base URL: `https://localhost:2333`
- URL: `https://localhost:2333/account/v1alpha1/costs/app`
- Auth: none declared

Get app costs within a specified time range

## Request body

- HelperAppCostsReq
  - `appName` string: @Summary App Name @Description App Name
  - `appType` string: @Summary App type @Description App type
  - `endTime` string
  - `kubeConfig` string
  - `namespace` string: @Summary Namespace @Description Namespace
  - `orderID` string: @Summary Order ID @Description Order ID @JSONSchema
  - `owner` string
  - `page` integer: @Summary Page @Description Page
  - `pageSize` integer: @Summary Page Size @Description Page Size
  - `startTime` string
  - `token` string
  - `userID` string
  - `userUID` string

## Response `200`

successfully retrieved app costs

- object

## Other responses

- `400`: failed to parse get app cost request
- `401`: authenticate error
- `500`: failed to get app cost

## Changes

- **2024-07-04** `33f760d7a958`: 1 info
  - endpoint added
- **2023-12-13** `ac0fa9d94489`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/labring/apis/sealos-account-service/changes/account/v1alpha1/costs/app/post.md)

---

[API](https://skmtc.dev/labring/apis/sealos-account-service.md) - [All operations](https://skmtc.dev/labring/apis/sealos-account-service/llms.txt) - [OpenAPI document](https://skmtc.dev/labring/apis/sealos-account-service/revisions/acd38d9540d3?raw)
