---
title: "Returns the annotations for the given chapter"
method: GET
path: "/api/Annotation/all"
tags: ["Annotation"]
---

# Returns the annotations for the given chapter

`GET /api/Annotation/all`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Annotation/all`
- Auth: API key in header `x-api-key`

## Query parameters

- `chapterId` integer

## Response `200`

OK

- AnnotationDto[]
  - `id` integer
  - `xPath` string, nullable, required
  - `endingXPath` string, nullable
  - `selectedText` string, nullable
  - `comment` string, nullable
  - `commentHtml` string, nullable
  - `commentPlainText` string, nullable
  - `chapterTitle` string, nullable
  - `context` string, nullable
  - `highlightCount` integer
  - `containsSpoiler` boolean
  - `pageNumber` integer
  - `selectedSlotIndex` integer
  - `likes` integer[], nullable
  - `seriesName` string, nullable
  - `libraryName` string, nullable
  - `chapterId` integer, required
  - `volumeId` integer, required
  - `seriesId` integer, required
  - `libraryId` integer, required
  - `ownerUserId` integer, required
  - `ownerUsername` string, nullable
  - `ageRating` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -1: Members: - `0` — Unknown - `1` — Rating Pending (RatingPending) - `2` — Early Childhood (EarlyChildhood) - `3` — Everyone - `4` — G - `5` — Everyone 10+ (Everyone10Plus) - `6` — PG - `7` — Kids to Adults (KidsToAdults) - `8` — Teen - `9` — MA15+ (Mature15Plus) - `10` — Mature 17+ (Mature17Plus) - `11` — M (Mature) - `12` — R18+ (R18Plus) - `13` — Adults Only 18+ (AdultsOnly) - `14` — X18+ (X18Plus) - `-1` — Not Applicable (NotApplicable)
  - `createdUtc` string, date-time
  - `lastModifiedUtc` string, date-time

## Changes

- **2025-10-14** `f732940e1279`: 3 info
  - added the optional property `items/ageRating` to the response with the `200` status (media type: text/plain)
  - added the optional property `items/ageRating` to the response with the `200` status (media type: application/json)
  - added the optional property `items/ageRating` to the response with the `200` status (media type: text/json)
- **2025-10-04** `89037f9576e8`: 9 info
  - added the optional property `items/libraryName` to the response with the `200` status (media type: text/plain)
  - added the optional property `items/libraryName` to the response with the `200` status (media type: application/json)
  - added the optional property `items/libraryName` to the response with the `200` status (media type: text/json)
  - added the optional property `items/likes` to the response with the `200` status (media type: text/plain)
  - …5 more
- **2025-09-28** `4e8350222ca6`: 6 info
  - added the optional property `items/commentHtml` to the response with the `200` status (media type: text/plain)
  - added the optional property `items/commentHtml` to the response with the `200` status (media type: application/json)
  - added the optional property `items/commentHtml` to the response with the `200` status (media type: text/json)
  - added the optional property `items/commentPlainText` to the response with the `200` status (media type: text/plain)
  - …2 more
- **2025-08-30** `e28764d251f1`: 1 info
  - endpoint added

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