---
title: "Returns the avg time read by hour in the given filter"
method: GET
path: "/api/Stats/avg-time-by-hour"
tags: ["Stats"]
---

# Returns the avg time read by hour in the given filter

`GET /api/Stats/avg-time-by-hour`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Stats/avg-time-by-hour`
- Auth: API key in header `x-api-key`

## Query parameters

- `StartDate` string, date-time
- `TimeZoneId` string
- `EndDate` string, date-time
- `Libraries` integer[]
- `userId` integer

## Response `200`

OK

- ReadTimeByHourDto
  - `dataSince` string, date-time
  - `stats` Int32StatCount[], nullable
    - `value` integer
    - `count` integer

## Changes

- **2026-01-09** `cc298937f548`: 1 info
  - added the new optional `query` request parameter `TimeZoneId`
- **2025-12-13** `ba8553c39654`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Stats/avg-time-by-hour/get.md)

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
