---
title: "Return a user's reading session history"
method: GET
path: "/api/Stats/reading-history"
tags: ["Stats"]
---

# Return a user's reading session history

`GET /api/Stats/reading-history`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Stats/reading-history`
- Auth: API key in header `x-api-key`

## Query parameters

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

## Response `200`

OK

- ReadingHistoryItemDto[]
  - `sessionDataIds` integer[], nullable
  - `sessionId` integer
  - `isGeneratedSession` boolean
  - `startTimeUtc` string, date-time
  - `endTimeUtc` string, date-time
  - `localDate` string, date-time
  - `seriesId` integer
  - `seriesName` string, nullable
  - `seriesFormat` 0 | 1 | 2 | 3 | 4: Members: - `0` — Image - `1` — Archive - `2` — Unknown - `3` — EPUB (Epub) - `4` — PDF (Pdf)
  - `chapters` ReadingHistoryChapterItemDto[], nullable
    - `chapterId` integer
    - `label` string, nullable
    - `startTimeUtc` string, date-time
    - `endTimeUtc` string, date-time
    - `pagesRead` integer
    - `wordsRead` integer
    - `durationSeconds` integer
    - `startPage` integer
    - `endPage` integer
    - `totalPages` integer
    - `completed` boolean
  - `libraryId` integer
  - `libraryName` string, nullable
  - `pagesRead` integer
  - `wordsRead` integer
  - `durationSeconds` integer
  - `totalPages` integer

## Changes

- **2026-03-19** `1acacd51149a`: 3 info
  - added the optional property `items/isGeneratedSession` to the response with the `200` status (media type: text/plain)
  - added the optional property `items/isGeneratedSession` to the response with the `200` status (media type: application/json)
  - added the optional property `items/isGeneratedSession` to the response with the `200` status (media type: text/json)
- **2026-01-10** `13d135cff824`: 1 warning
  - deleted the `query` request parameter `userId`
- **2026-01-09** `cc298937f548`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Stats/reading-history/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)
