---
title: "Get Kubernetes cost per pod"
method: GET
path: "/api/v1/kubernetes/cost-and-usage/pod"
tags: ["Kubernetes"]
---

# Get Kubernetes cost per pod

`GET /api/v1/kubernetes/cost-and-usage/pod`

## Request

- Base URL: `https://api.umbrellacost.io`
- URL: `https://api.umbrellacost.io/api/v1/kubernetes/cost-and-usage/pod`
- Auth: none declared. Required headers: `Authorization`, `apikey`

The call is used to retrieve kubernetes Pod cost and usage data grouped

## Query parameters

- `startDate` string, date, required
- `endDate` string
- `clusterName` string
- `nodeName` string
- `podName` string

## Headers

- `Authorization` string, required
- `apikey` string, required

## Response `200`

- object
  - `data` object: As described below:
  - `groupBy` string
  - `usageDate` string
  - `accountId` string
  - `clusterName` string
  - `totalCost` integer
  - `totalUsage` integer

---

[API](https://skmtc.dev/umbrellacost/apis/cost-usage.md) - [All operations](https://skmtc.dev/umbrellacost/apis/cost-usage/llms.txt) - [OpenAPI document](https://skmtc.dev/umbrellacost/apis/cost-usage/revisions/c5ae311d18ae?raw)
