---
title: "Next/previous navigation"
---

> Documentation Index
> Fetch the complete documentation index at: https://kmworks.date/llms.txt
> Use this file to discover all available pages before exploring further.

# Next/previous navigation

The sibling book endpoints — `GET /api/v1/books/{bookId}/next|previous` and `GET /api/v1/readlists/{id}/books/{bookId}/next|previous` — differ from the Java version in two ways.

## Skip read books

The server setting **Next book skips read books** (Settings → Reading, off by default) changes the `next` endpoints for every client. When it is on, they return the first book after the current one — in series order, or in read-list order — that the requesting user has not read. "Not read" means unread or in progress, matching the `read_status` search filter.

When every later book is already read, the endpoint falls back to the plain next book, so re-reading a finished series or list still moves forward.

The `previous` endpoints are not affected, and a `skipRead` query parameter is ignored: the setting alone decides. The setting is exposed as `skipReadOnNext` on `/api/v1/settings`: every user can read it with `GET`, so clients can follow it offline, and only admins can change it with `PATCH`. It is stored in `SERVER_SETTINGS` as `KMRS_NEXT_SKIP_READ`, a key the Java version ignores. Clients that pick the next book from their own book list rather than calling these endpoints are not affected.

## numberSort ties

Both directions break `numberSort` ties by book id, matching the On Deck selection order; the Java version orders and seeks by `numberSort` alone, so navigation between books with duplicate `numberSort` is unstable and can diverge from On Deck ([gotson/komga#2182](https://github.com/gotson/komga/pull/2182)).

Source: https://kmworks.date/server/enhancements/next-previous/index.mdx
