---
title: "Get histogram for staking with precomputed stats"
method: GET
path: "/stats/staking/series/{id}/{name}/{timeframe}"
tags: ["stats"]
---

# Get histogram for staking with precomputed stats

`GET /stats/staking/series/{id}/{name}/{timeframe}`

Returns a time-series histogram of staking metrics (rewards, commissions, delegation flows, etc.) for the specified validator and timeframe.

## Path parameters

- `id` integer, required
- `timeframe` 'hour' | 'day' | 'month', required
- `name` 'rewards' | 'commissions' | 'flow' | 'delegations' | 'unbondings' | 'delegations_count' | 'unbondings_count' | 'cumulative_flow', required

## Query parameters

- `from` integer
- `to` integer

## Response `200`

OK

- ResponsesSeriesItem[]
  - `max` string, string
  - `min` string, string
  - `time` string, date-time
  - `value` string, string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

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