Get a library
const url = 'http://localhost:8080/api/v1/libraries/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/libraries/1 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The library, including the state of its last scan.
object
The folder on the server, for folder libraries.
Where a source library reads from. Present only on source libraries.
object
The Komga or Kavita server’s address. Absent for an extension library.
The extension an extension library runs on.
The Komga or Kavita libraries read; absent when every library the account sees is read. Kavita’s numeric ids are returned as strings.
The Chek user whose reading progress is written back to the Komga or Kavita account. Absent when none is.
object
Why the last scan failed.
When the last scan finished, whether or not it succeeded.
Example
{ "kind": "folder", "source": { "type": "komga" }, "scan": { "status": "idle" }}The request has no valid session token.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The resource does not exist.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}The server failed; details are in its log.
object
Explains the problem to a developer.
Example
{ "code": "bad_request"}