---
title: "Get container statistics"
method: GET
path: "/container/{ocid}/stats/{step}"
tags: ["Container"]
---

# Get container statistics

`GET /container/{ocid}/stats/{step}`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/container/{ocid}/stats/{step}`
- Auth: API key in header `Authorization`

Get CPU and memory usage for a container over a window

## Path parameters

- `ocid` integer, required
- `step` string, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseArrayGithubComAlchemillahqSylveInternalDbModelsContainerStats
  - `data` GithubComAlchemillahqSylveInternalDbModelsContainerStats[]
    - `containerId` integer
    - `cpuUsage` number
    - `createdAt` string
    - `id` integer
    - `memoryUsage` number
  - `error` string
  - `message` string
  - `status` string

## Changes

- **2026-11-03** `9565cdd0abf5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/container/:ocid/stats/:step/get.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
