---
title: "Sandbox metrics"
method: GET
path: "/sandboxes/{sandboxID}/metrics"
tags: ["sandboxes"]
---

# Sandbox metrics

`GET /sandboxes/{sandboxID}/metrics`

Get sandbox metrics

## Path parameters

- `sandboxID` string, required

## Query parameters

- `start` integer
- `end` integer — Unix timestamp for the end of the interval, in seconds, for which the metrics

## Response `200`

Successfully returned the sandbox metrics

- SandboxMetric[]
  - `timestamp` string, date-time, required — Timestamp of the metric entry
  - `timestampUnix` integer, required — Timestamp of the metric entry in Unix time (seconds since epoch)
  - `cpuCount` integer, required — Number of CPU cores
  - `cpuUsedPct` number, float, required — CPU usage percentage
  - `memUsed` integer, required — Memory used in bytes
  - `memTotal` integer, required — Total memory in bytes
  - `memCache` integer, required — Cached memory (page cache) in bytes
  - `diskUsed` integer, required — Disk used in bytes
  - `diskTotal` integer, required — Total disk space in bytes

## Other responses

- `400` — Bad request
- `401` — Authentication error
- `404` — Not found
- `500` — Server error

## Changes

> 53 revisions in range; 5 could not be searched.

- **2026-07-24** `93ed246a4c10` — 2 info
  - the endpoint scheme security `AdminApiKeyAuth AND AdminTeamAuth` was added to the API
  - the endpoint scheme security `Supabase1TokenAuth AND Supabase2TeamAuth` was removed from the API
- **2026-05-27** `e13ef89d456c` — 2 info
  - the endpoint scheme security `AuthProviderBearerAuth AND AuthProviderTeamAuth` was added to the API
  - added the required property `items/memCache` to the response with the `200` status
- **2025-10-31** `8ee0d0d1e95e` — 2 info
  - response property `items/timestamp` deprecated
  - added the required property `items/timestampUnix` to the response with the `200` status
- **2025-07-28** `b29b6d5a3f08` — 2 info
  - added the required property `items/diskTotal` to the response with the `200` status
  - added the required property `items/diskUsed` to the response with the `200` status
- **2025-07-18** `c1fe6498cb2f` — 2 breaking, 5 info
  - removed the required property `items/memTotalMiB` from the response with the `200` status
  - removed the required property `items/memUsedMiB` from the response with the `200` status
  - added the new optional `query` request parameter `end`
  - added the new optional `query` request parameter `start`
  - …3 more

[Full history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/sandboxes/:sandboxID/metrics/get.md)

---

[API](https://skmtc.dev/e2b-dev/apis/e2b-api.md) · [All operations](https://skmtc.dev/e2b-dev/apis/e2b-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/e2b-dev/e2b-api/revisions/e01b3f5506fe/schema)
