---
title: "Get Load Balancer statistics"
method: GET
path: "/loadbalancer/{loadBalancerId}/statistics"
tags: ["Load Balancer"]
---

# Get Load Balancer statistics

`GET /loadbalancer/{loadBalancerId}/statistics`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/loadbalancer/{loadBalancerId}/statistics`
- Auth: one of:
  - API key in header `AccessKey`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/loadbalancer/:loadBalancerId/statistics/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `loadBalancerId` integer, required

## Query parameters

- `from` string, date-time, nullable
- `to` string, date-time, nullable
- `hourly` boolean
- `exactRange` boolean

## Response `200`

The Load Balancer statistics

- LoadBalancerStatisticsModel
  - `Summary` LoadBalancerStatisticsSummaryModel
    - `TotalRequests` number, double
    - `TotalTraffic` number, double
    - `AverageOriginRttMs` number, double
    - `AllOriginsExhausted` number, double
    - `OriginErrorsServed` number, double
    - `HealthyResponsesServed` number, double
    - `FailoverCapped` number, double
    - `AverageRetryDepth` number, double
    - `StickySessionHits` number, double
    - `RequestsByMethod` object, nullable
  - `RequestsByOrigin` LoadBalancerOriginRequestsSeriesModel[], nullable
    - `OriginId` integer
    - `OriginName` string, nullable
    - `Values` object, nullable
  - `RequestsByOriginGroup` LoadBalancerOriginGroupRequestsSeriesModel[], nullable
    - `OriginGroupId` integer
    - `OriginGroupName` string, nullable
    - `Values` object, nullable
  - `TrafficByOrigin` LoadBalancerOriginRequestsSeriesModel[], nullable
    - `OriginId` integer
    - `OriginName` string, nullable
    - `Values` object, nullable
  - `OriginLatency` LoadBalancerOriginLatencySeriesModel[], nullable
    - `OriginId` integer
    - `OriginName` string, nullable
    - `Percentile` integer
    - `Values` object, nullable
  - `OriginFailures` LoadBalancerOriginFailuresSeriesModel[], nullable
    - `OriginId` integer
    - `OriginName` string, nullable
    - `StatusCode` string, nullable
    - `Values` object, nullable

## Other responses

- `400`: The request was invalid
- `401`: The request authorization failed
- `404`: The Load Balancer profile was not found
- `429`: Too many statistics requests, try again later
- `500`: Internal Server Error

## Changes

- **2026-11-12** `2b06f94dbfbf`: 2 info
  - the security scope `ScopedApiKey` was added to the endpoint's security scheme `AccessKey`
  - the security scope `ScopedApiKey` was added to the endpoint's security scheme `bearer`
- **2026-10-27** `2096a6606d8d`: 6 info
  - added the new optional `query` request parameter `exactRange`
  - added the non-success response with the status `400`
  - added the non-success response with the status `429`
  - added the optional property `Summary/oneOf[#/components/schemas/LoadBalancerStatisticsSummaryModel]/FailoverCapped` to the response with the `200` status
  - …2 more
- **2026-08-07** `205129a7ebd5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bunny/apis/bunny-net-api/changes/loadbalancer/:loadBalancerId/statistics/get.md)

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
