Skip to main content
These endpoints are deprecated and should be avoided in new integrations. Use the replacements listed below.
Deprecated endpoints may be removed in future Komga releases.

Deprecated endpoints and replacements

DeprecatedReplacementNotes
getAllBooksDeprecatedgetBooksUse POST /api/v1/books/list
getSeriesDeprecatedgetSeriesUse POST /api/v1/series/list
getSeriesAlphabeticalGroupsDeprecatedgetSeriesAlphabeticalGroupsUse POST /api/v1/series/list/alphabetical-groups
getAuthorsDeprecatedgetAuthorsUse GET /api/v2/authors
updateLibraryByIdDeprecatedupdateLibraryByIdUse PATCH instead of PUT

SDK deprecated function imports

These functions are still exported for backward compatibility but should be avoided:
import {
  getAllBooksDeprecated,
  getSeriesDeprecated,
  getSeriesAlphabeticalGroupsDeprecated,
  getAuthorsDeprecated,
} from 'komga-sdk';

// Avoid using these in new integrations.

Example replacements

Replace getAllBooksDeprecated

import { getBooks } from 'komga-sdk';

const result = await getBooks({
  client,
  body: {},
  query: { page: 0, size: 20 },
});

Replace getSeriesDeprecated

import { getSeries } from 'komga-sdk';

const result = await getSeries({
  client,
  body: {},
  query: { page: 0, size: 20 },
});

Replace getAuthorsDeprecated

import { getAuthors } from 'komga-sdk';

const result = await getAuthors({
  client,
  query: { page: 0, size: 50 },
});

Replace updateLibraryByIdDeprecated

import { updateLibraryById } from 'komga-sdk';

await updateLibraryById({
  client,
  path: { libraryId: 'library-123' },
  body: {
    name: 'Updated Library Name',
  },
});

Next steps

Direct API

Explore low-level API functions.

Library Maintenance

Update libraries with the modern API.