Miscellaneous other API

Other APIs that don't fit a dedicated theme.

get
Get information about the server

http://lrr.tvc-16.science/api/info
Returns some basic information about the LRR instance this server is running.
Request
Response
Request
Response
200: OK
You get server info. The cache_last_cleared value is a UNIX timestamp matching the last time the search cache was reset, due to new archives for instance. As a client, you should use this value to know when to refresh your internal archive list if you're keeping one.
{
"name":"LANraragi",
"motd":"Welcome to this Library running LANraragi !",
"version":"0.7.0",
"version_name":"Cat People (Putting Out Fire)",
"has_password": "1",
"debug_mode":"1",
"nofun_mode":"0",
"archives_per_page":"100",
"server_resizes_images":"0",
"cache_last_cleared":"1601474241"
}

get
Get the OPDS Catalog

http://lrr.tvc-16.science/api/opds
Get the Archive Index as an OPDS 1.2 Catalog.
Request
Response
Request
Query Parameters
id
optional
string
ID of an archive. Passing this will show only one <entry\> for the given ID in the result, instead of all the archives.
Response
200: OK
The OPDS Catalog is generated. This API is mostly meant to be used as-is by external software implementing the spec.
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:opds="http://opds-spec.org/2010/catalog">
<id>urn:lrr:0</id>
<link rel="self"
href="/api/opds"
type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
<link rel="start"
href="/api/opds"
type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
<title>LANraragi Demo</title>
<updated>2010-01-10T10:03:10Z</updated>
<subtitle>LANraragi Demo, running in Docker @ TVC-16</subtitle>
<icon>/favicon.ico</icon>
<author>
<name>0.6.6</name>
<uri>http://github.org/Difegue/LANraragi</uri>
</author>
<entry>
<title>Ghost in the Shell 1.5 - Human-Error Processor vol01ch01</title>
<id>urn:lrr:4857fd2e7c00db8b0af0337b94055d8445118630</id>
<updated>2010-01-10T10:01:11Z</updated>
<published>2010-01-10T10:01:11Z</published>
<author>
<name>shirow masamune</name>
</author>
<rights></rights>
<dcterms:language></dcterms:language>
<dcterms:publisher></dcterms:publisher>
<dcterms:issued></dcterms:issued>
<category term="Archive"/>
<summary>artist:shirow masamune</summary>
<link rel="alternate"
href="/api/opds?id=4857fd2e7c00db8b0af0337b94055d8445118630"
type="application/atom+xml;type=entry;profile=opds-catalog" />
<link rel="http://opds-spec.org/image" href="/api/archives/4857fd2e7c00db8b0af0337b94055d8445118630/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/image/thumbnail" href="/api/archives/4857fd2e7c00db8b0af0337b94055d8445118630/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/4857fd2e7c00db8b0af0337b94055d8445118630/download" type="application/x-cbz"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/4857fd2e7c00db8b0af0337b94055d8445118630/download" title="Read" type="application/cbz"/>
<link type="text/html" rel="alternate" title="Open in LANraragi" href="/reader?id=4857fd2e7c00db8b0af0337b94055d8445118630"/>
</entry>
<entry>
<title>Fate GO MEMO 2</title>
<id>urn:lrr:2810d5e0a8d027ecefebca6237031a0fa7b91eb3</id>
<updated>2010-01-10T10:01:11Z</updated>
<published>2010-01-10T10:01:11Z</published>
<author>
<name>wada rco</name>
</author>
<rights></rights>
<dcterms:language></dcterms:language>
<dcterms:publisher>wadamemo</dcterms:publisher>
<dcterms:issued></dcterms:issued>
<category term="Archive"/>
<summary>parody:fate grand order, character:abigail williams, character:artoria pendragon alter, character:asterios, character:ereshkigal, character:gilgamesh, character:hans christian andersen, character:hassan of serenity, character:hector, character:helena blavatsky, character:irisviel von einzbern, character:jeanne alter, character:jeanne darc, character:kiara sessyoin, character:kiyohime, character:lancer, character:martha, character:minamoto no raikou, character:mochizuki chiyome, character:mordred pendragon, character:nitocris, character:oda nobunaga, character:osakabehime, character:penthesilea, character:queen of sheba, character:rin tosaka, character:saber, character:sakata kintoki, character:scheherazade, character:sherlock holmes, character:suzuka gozen, character:tamamo no mae, character:ushiwakamaru, character:waver velvet, character:xuanzang, character:zhuge liang, group:wadamemo, artist:wada rco, artbook, full color</summary>
<link rel="alternate"
href="/api/opds?id=2810d5e0a8d027ecefebca6237031a0fa7b91eb3"
type="application/atom+xml;type=entry;profile=opds-catalog" />
<link rel="http://opds-spec.org/image" href="/api/archives/2810d5e0a8d027ecefebca6237031a0fa7b91eb3/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/image/thumbnail" href="/api/archives/2810d5e0a8d027ecefebca6237031a0fa7b91eb3/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/2810d5e0a8d027ecefebca6237031a0fa7b91eb3/download" type="application/x-cbz"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/2810d5e0a8d027ecefebca6237031a0fa7b91eb3/download" title="Read" type="application/cbz"/>
<link type="text/html" rel="alternate" title="Open in LANraragi" href="/reader?id=2810d5e0a8d027ecefebca6237031a0fa7b91eb3"/>
</entry>
<entry>
<title>Saturn Backup Cartridge - Japanese Manual</title>
<id>urn:lrr:e69e43e1355267f7d32a4f9b7f2fe108d2401ebf</id>
<updated>2010-01-10T10:01:11Z</updated>
<published>2010-01-10T10:01:11Z</published>
<author>
<name></name>
</author>
<rights></rights>
<dcterms:language></dcterms:language>
<dcterms:publisher></dcterms:publisher>
<dcterms:issued></dcterms:issued>
<category term="Archive"/>
<summary>character:segata sanshiro</summary>
<link rel="alternate"
href="/api/opds?id=e69e43e1355267f7d32a4f9b7f2fe108d2401ebf"
type="application/atom+xml;type=entry;profile=opds-catalog" />
<link rel="http://opds-spec.org/image" href="/api/archives/e69e43e1355267f7d32a4f9b7f2fe108d2401ebf/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/image/thumbnail" href="/api/archives/e69e43e1355267f7d32a4f9b7f2fe108d2401ebf/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/e69e43e1355267f7d32a4f9b7f2fe108d2401ebf/download" type="application/x-cbr"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/e69e43e1355267f7d32a4f9b7f2fe108d2401ebf/download" title="Read" type="application/cbr"/>
<link type="text/html" rel="alternate" title="Open in LANraragi" href="/reader?id=e69e43e1355267f7d32a4f9b7f2fe108d2401ebf"/>
</entry>
<entry>
<title>Rohan Kishibe goes to Gucci</title>
<id>urn:lrr:e4c422fd10943dc169e3489a38cdbf57101a5f7e</id>
<updated>2010-01-10T10:01:11Z</updated>
<published>2010-01-10T10:01:11Z</published>
<author>
<name></name>
</author>
<rights></rights>
<dcterms:language></dcterms:language>
<dcterms:publisher></dcterms:publisher>
<dcterms:issued></dcterms:issued>
<category term="Archive"/>
<summary>parody: jojo's bizarre adventure</summary>
<link rel="alternate"
href="/api/opds?id=e4c422fd10943dc169e3489a38cdbf57101a5f7e"
type="application/atom+xml;type=entry;profile=opds-catalog" />
<link rel="http://opds-spec.org/image" href="/api/archives/e4c422fd10943dc169e3489a38cdbf57101a5f7e/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/image/thumbnail" href="/api/archives/e4c422fd10943dc169e3489a38cdbf57101a5f7e/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/e4c422fd10943dc169e3489a38cdbf57101a5f7e/download" type="application/x-cbz"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/e4c422fd10943dc169e3489a38cdbf57101a5f7e/download" title="Read" type="application/cbz"/>
<link type="text/html" rel="alternate" title="Open in LANraragi" href="/reader?id=e4c422fd10943dc169e3489a38cdbf57101a5f7e"/>
</entry>
<entry>
<title>Fate GO MEMO</title>
<id>urn:lrr:28697b96f0ac5858be2614ed10ca47742c9522fd</id>
<updated>2010-01-10T10:01:11Z</updated>
<published>2010-01-10T10:01:11Z</published>
<author>
<name>wada rco</name>
</author>
<rights></rights>
<dcterms:language></dcterms:language>
<dcterms:publisher>wadamemo</dcterms:publisher>
<dcterms:issued></dcterms:issued>
<category term="Archive"/>
<summary>parody:fate grand order, group:wadamemo, artist:wada rco, artbook, full color</summary>
<link rel="alternate"
href="/api/opds?id=28697b96f0ac5858be2614ed10ca47742c9522fd"
type="application/atom+xml;type=entry;profile=opds-catalog" />
<link rel="http://opds-spec.org/image" href="/api/archives/28697b96f0ac5858be2614ed10ca47742c9522fd/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/image/thumbnail" href="/api/archives/28697b96f0ac5858be2614ed10ca47742c9522fd/thumbnail" type="image/jpeg"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/28697b96f0ac5858be2614ed10ca47742c9522fd/download" type="application/x-cbz"/>
<link rel="http://opds-spec.org/acquisition" href="/api/archives/28697b96f0ac5858be2614ed10ca47742c9522fd/download" title="Read" type="application/cbz"/>
<link type="text/html" rel="alternate" title="Open in LANraragi" href="/reader?id=28697b96f0ac5858be2614ed10ca47742c9522fd"/>
</entry>
</feed>

get
🔑Get available plugins

http://lrr.tvc-16.science/api/plugins/:type
Get a list of the available plugins on the server, filtered by type.
Request
Response
Request
Path Parameters
type
required
string
Type of plugins you want to list. You can either use login, metadata, script, or all to get all previous types at once.
Response
200: OK
You get plugin info. Said information is a 1:1 match to the plugin metadata.
[
{
"author": "Difegue",
"description": "Searches chaika.moe for tags matching your archive.",
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA\nB3RJTUUH4wYCFQocjU4r+QAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUH\nAAAEZElEQVQ4y42T3WtTdxzGn/M7J+fk5SRpTk7TxMZkXU84tTbVNrUT3YxO7HA4pdtQZDe7cgx2\ns8vBRvEPsOwFYTDYGJUpbDI2wV04cGXCGFLonIu1L2ptmtrmxeb1JDkvv121ZKVze66f74eH7/f5\nMmjRwMCAwrt4/9KDpflMJpPHvyiR2DPcJklJ3TRDDa0xk36cvrm8vDwHAAwAqKrqjjwXecPG205w\nHBuqa9rk77/d/qJYLD7cCht5deQIIczbgiAEKLVAKXWUiqVV06Tf35q8dYVJ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nhWJtMCCNrjeb0UP34Z6e/PW22zjPP\n+vwXBwfPvbw38XnXjk7GsiwKAIQQhjAMMrlsam45d+zLH6/8o6vkWcBcrXbVKQhf6bpucCwLjmUB\nSmmhXC419eblrbD/TAgAkUjE987xE0c7ZDmk66ajUCnq+cL63fErl25s5/8baQPaWLhx6goAAAAA\nSUVORK5CYII=",
"name": "Chaika.moe",
"namespace": "trabant",
"oneshot_arg": "Chaika Gallery or Archive URL (Will attach matching tags to your archive)",
"parameters": [
{
"desc": "Save archive title",
"type": "bool"
}
],
"type": "metadata",
"version": "2.1"
},
{
"author": "Difegue",
"description": "Apply custom tag modifications.",
"name": "Tag Copier",
"namespace": "copytags",
"parameters": [
{
"desc": "Tags to copy, separated by commas.",
"type": "string"
}
],
"type": "metadata",
"version": "2.1"
},
{
"author": "Utazukin",
"description": "Adds the unix time stamp of the date the archive was added as a tag under the \"date_added\" namespace.",
"name": "Date Added",
"namespace": "DateAddedPlugin",
"oneshot_arg": "Use file modified time (yes/true), or use current time (no/false). <br/>Leaving blank uses the global setting (default: current time)",
"parameters": [
{
"desc": "Use file modified time instead of current time.",
"type": "bool"
}
],
"type": "metadata",
"version": "0.3"
}
{
"author": "Difegue",
"description": "Collects metadata embedded into your archives by the eze userscript. (info.json files)",
"name": "eze",
"namespace": "ezeplugin",
"parameters": [
{
"desc": "Save archive title",
"type": "bool"
}
],
"type": "metadata",
"version": "2.2"
},
{
"author": "Pao",
"description": "Collects metadata embedded into your archives by HDoujin Downloader's json or txt files.",
"name": "Hdoujin",
"namespace": "Hdoujinplugin",
"parameters": [],
"type": "metadata",
"version": "0.5"
},
{
"author": "CirnoT",
"description": "Collects metadata embedded into your archives by the Koromo Copy downloader. (Info.json files)",
"name": "koromo",
"namespace": "koromoplugin",
"parameters": [],
"type": "metadata",
"version": "1.1"
},
{
"author": "Difegue",
"description": "Searches nHentai for tags matching your archive."
"name": "nHentai",
"namespace": "nhplugin",
"oneshot_arg": "nHentai Gallery URL (Will attach tags matching this exact gallery to your archive)",
"parameters": [
{
"desc": "Save archive title",
"type": "bool"
}
],
"type": "metadata",
"version": "1.6"
}
]

post
🔑Use a Plugin

http://lrr.tvc-16.science/api/plugins/use
Uses a Plugin and returns the result. If using a metadata plugin, the matching archive will not be modified in the database. See more info on Plugins in the matching section of the Docs.
Request
Response
Request
Query Parameters
key
required
string
API Key, mandatory for this method.
plugin
required
string
Namespace of the plugin to use.
id
optional
string
ID of the archive to use the Plugin on. This is only mandatory for metadata plugins.
arg
optional
string
Optional One-Shot argument to use when executing this Plugin.
Response
200: OK
Executes the Plugin and returns the result.
{
"data":{
"new_tags":" zawarudo"
},
"operation":"use_plugin",
"success":1,
"type":"metadata"
}

delete
🔑Clean the Temporary Folder

http://lrr.tvc-16.science/api/tempfolder
Cleans the server's temporary folder.
Request
Response
Request
Response
200: OK
Temporary folder is deleted.
{
"error": "",
"newsize": 0.0,
"operation": "cleantemp",
"success": 1
}

post
🔑Queue a URL download

http://lrr.tvc-16.science/api/download_url
Add a URL to be downloaded by the server and added to its library.
Request
Response
Request
Query Parameters
url
required
string
URL to download
Response
200: OK
You get the Minion Job ID for the ongoing download. Status for the job can be verified using the /api/minion/:jobid endpoint.
{
"job": 86,
"operation": "download_url",
"success": 1,
"url": "https:\/\/example.com"
}

get
🔑Get the status of a Minion Job

http://lrr.tvc-16.science/api/minion/:jobid
Get the status of a Minion Job. Minions jobs are ran for various occasions like thumbnails, cache warmup and handling incoming files. Usually stuff you don't need to care about as a client, but the API is there for internal usage mostly.
Request
Response
Request
Path Parameters
id
required
string
ID of the Job.
Response
200: OK
You get the job status. This is essentially "raw" output from Minion and looks a bit different from usual API calls.
{
"args": ["\/tmp\/QF3UCnKdMr\/myfile.zip"],
"attempts": 1,
"children": [],
"created": "1601145004",
"delayed": "1601145004",
"expires": null,
"finished": "1601145004",
"id": 7,
"lax": 0,
"notes": {},
"parents": [],
"priority": 0,
"queue": "default",
"result": {
"id": "75d18ce470dc99f83dc355bdad66319d1f33c82b",
"message": "This file already exists in the Library.",
"success": 0
},
"retried": null,
"retries": 0,
"started": "1601145004",
"state": "finished",
"task": "handle_upload",
"time": "1601145005",
"worker": 1
}