githubEdit

Miscellaneous other API

Other APIs that don't fit a dedicated theme.

Get server info

get

Returns some basic information about the LRR instance this server is running.

Responses
chevron-right
200

Server info

application/json

Server info payload emitted by /api/info. Older server versions used integers instead of booleans here.

namestringOptional

Name of the instance

motdstringOptional

MOTD of the instance

versionstringOptional

Version of the server

version_namestringOptional

Version name

version_descstringOptional

Version description

has_passwordbooleanOptional

Whether the instance is password-protected

debug_modebooleanOptional

Whether the instance has debug mode enabled

nofun_modebooleanOptional

Whether the instance has no-fun mode enabled

archives_per_pageintegerOptional

How many archives per page the server lists

server_resizes_imagesbooleanOptional

Whether the instance auto-downsizes images before serving them

server_tracks_progressbooleanOptional

Whether the instance tracks reading progression server-side

authenticated_progressbooleanOptional

Whether the instance requires authentication for server-side progress updates

total_pages_readintegerOptional

Total amount of pages read

total_archivesintegerOptional

Total amount of archives stored on instance

cache_last_clearedintegerOptional

Timestamp for last time the search cache was wiped

excluded_namespacesstring[]Optional

List of tag namespaces excluded from search suggestions and tag statistics

get
/info
200

Server info

Clean the Temporary Folder

delete

Cleans the server's temporary folder.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Responses
chevron-right
200

Cleanup result

application/json
operationstring Β· enumOptionalPossible values:
successinteger Β· enumOptionalPossible values:
errorstring Β· nullableOptional

Error message if something went wrong during cleanup. (The call will still return 200)

newsizeintegerOptional

Current size of the temporary folder post-cleanup.

delete
/tempfolder
200

Cleanup result

Queue a URL download

post

Add a URL to be downloaded by the server and added to its library.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Query parameters
urlstring Β· uriRequired

URL to download

catidstring Β· min: 14 Β· max: 14Optional

Category ID to add the downloaded URL to.

Responses
chevron-right
200

Enqueued job

application/json
operationstring Β· enumOptionalPossible values:
urlstringOptional

URL queued for download

categorystring Β· nullableOptional
successinteger Β· enumOptionalPossible values:
jobintegerOptional
post
/download_url

Regenerate Thumbnails

post

Queue a Minion job to regenerate missing/all thumbnails on the server.

Authorizations
AuthorizationstringRequired

Use Authorization: Bearer <base64(api_key)>

Query parameters
forcebooleanOptional

Whether to generate all thumbnails, or only the missing ones.

Responses
chevron-right
200

Enqueued job

application/json
operationstring Β· enumOptionalPossible values:
successinteger Β· enumOptionalPossible values:
jobintegerOptional
post
/regen_thumbs
200

Enqueued job

Metrics

The /api/info/metrics endpoint returns metrics in the Prometheus exposition formatarrow-up-right.

Last updated