---
title: "Get current performance metrics"
method: GET
path: "/v1/browser/metrics"
tags: ["Browser"]
---

# Get current performance metrics

`GET /v1/browser/metrics`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/browser/metrics`
- Auth: HTTP bearer

Returns a one-shot snapshot of Performance.getMetrics from the attached page.

## Response `200`

Performance metrics snapshot

- PerformanceMetrics
  - `jsHeapUsedSize` number, nullable
  - `jsHeapTotalSize` number, nullable
  - `documents` integer, nullable
  - `frames` integer, nullable
  - `jsEventListeners` integer, nullable
  - `layoutCount` integer, nullable
  - `recalcStyleCount` integer, nullable
  - `layoutDuration` number, nullable
  - `recalcStyleDuration` number, nullable
  - `scriptDuration` number, nullable
  - `taskDuration` number, nullable
  - `timestamp` number, required

## Other responses

- `409`: Not connected to a browser
- `502`: CDP error
- `503`: Browser service not initialized

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
