Archive API

Everything dealing with Archives.

get
Get the Archive Index

http://lrr.tvc-16.science/api/archives
Get the Archive Index in JSON form. You can use the IDs of this JSON with the other endpoints.
Request
Response
Request
​
Response
200: OK
Archive List successfully retrieved. You can use the arcid parameters with the other endpoints.
[{
"arcid": "ec9b83b6a835771b0f9862d0326add2f8373989a",
"isnew": "true",
"tags": "",
"title": "Ghost in the Shell 01.5 - Human-Error Processor v01c01"
}, {
"arcid": "28697b96f0ac5858be2614ed10ca47742c9522fd",
"isnew": "false",
"tags": "parody:fate grand order, group:wadamemo, artist:wada rco, artbook, full color",
"title": "Fate GO MEMO"
}, {
"arcid": "2810d5e0a8d027ecefebca6237031a0fa7b91eb3",
"isnew": "false",
"tags": "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",
"title": "Fate GO MEMO 2"
}, {
"arcid": "e69e43e1355267f7d32a4f9b7f2fe108d2401ebf",
"isnew": "false",
"tags": "character:segata sanshiro",
"title": "Saturn Backup Cartridge - Japanese Manual"
}, {
"arcid": "e4c422fd10943dc169e3489a38cdbf57101a5f7e",
"isnew": "false",
"tags": "parody: jojo's bizarre adventure",
"title": "Rohan Kishibe goes to Gucci"
}]

get
Get the Metadata of an Archive

http://lrr.tvc-16.science/api/archives/:id/metadata
Get Metadata (title, tags) for a given Archive.
Request
Response
Request
Path Parameters
id
required
string
ID of the Archive to process.
Response
200: OK
You get metadata for the Archive. The JSON object supplied follows the same format as the objects returned by the /api/archives endpoint.
{
"arcid": "e69e43e1355267f7d32a4f9b7f2fe108d2401ebf",
"isnew": "false",
"tags": "character:segata sanshiro",
"title": "Saturn Backup Cartridge - Japanese Manual"
}
400: Bad Request
You didn't specify the id parameter.
{
"operation": "______"
"error": "No archive ID specified."
"status": 0
}

get
Get the Thumbnail of an Archive

http://lrr.tvc-16.science/api/archives/:id/thumbnail
Get the Thumbnail image for a given Archive.
Request
Response
Request
Path Parameters
id
required
string
ID of the Archive to process.
Response
200: OK
You get the image directly. If the thumbnail hasn't been generated by the server yet, you might receive a placeholder image.
2810d5e0a8d027ecefebca6237031a0fa7b91eb3.jpg
2810d5e0a8d027ecefebca6237031a0fa7b91eb3.jpg
​
400: Bad Request
You didn't specify the id parameter.
{
"operation": "______"
"error": "No archive ID specified."
"status": 0
}

post
Extract an Archive

http://lrr.tvc-16.science/api/archives/:id/extract
Extract an Archive on the server, and get a list of URLs pointing to its images.
Request
Response
Request
Path Parameters
id
required
string
ID of the Archive to process.
Response
200: OK
The Archive is extracted server-side and you can now get its images.
{
"pages": [".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=00.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=01.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=03.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=04.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=05.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=06.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=07.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=08.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=09.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=20.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=21.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=22.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=23.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=24.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=25.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=26.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=27.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=28.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=29.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=30.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=31.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=32.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=33.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=34.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=35.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=36.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=37.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=38.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=39.jpg",
".\/api\/archives\/28697b96f0ac5858be2614ed10ca47742c9522fd\/page&path=40.jpg"
]
}
400: Bad Request
You didn't include the id parameter.
{
"operation": "______"
"error": "No archive ID specified."
"status": 0
}

get
Download an Archive

http://lrr.tvc-16.science/api/archives/:id/download
Download an Archive from the server.
Request
Response
Request
Path Parameters
id
required
string
ID of the Archive to download.
Response
200: OK
You get the Archive.
Archive.zip
Archive.zip
​
400: Bad Request
{
"operation": "______"
"error": "No archive ID specified."
"status": 0
}

get
Get Untagged archives

http://lrr.tvc-16.science/api/archives/untagged
Get archives that don't have any tags recorded. This follows the same rules as the Batch tagging filter and will include archives that have parody:, series: or artist: tags.
Request
Response
Request
​
Response
200: OK
JSON Array of Archive IDs.
[
"d1858d5dc36925aa66be072a97817650d39de166",
"c3458d5dc36925da93be072a97817650d39de166",
"28697b96f0ac5858be2614ed10ca47742c9522fd",
]

delete
Clear New flag on archive

http://lrr.tvc-16.science/api/archives/:id/isnew
Clears the "New!" flag on an archive.
Request
Response
Request
Path Parameters
id
required
string
ID of the Archive to process
Response
200: OK
New flag is successfully removed
{
"id":"f3fc480a97f1afcd81c8e3392a3bcc66fe6c0809",
"operation":"clear_new",
"success":1
}

put
🔑Set the Metadata of an Archive

http://lrr.tvc-16.science/api/archives/:id/metadata
Update tags and title for the given Archive. Data supplied to the server through this method will overwrite the previous data.
Request
Response
Request
Path Parameters
id
required
string
ID of the Archive to process.
Query Parameters
title
optional
string
New Title of the Archive.
tags
optional
string
New Tags of the Archive.
Response
200: OK
Metadata is updated.
{
"operation": "update_metadata"
"status": 1
}
400: Bad Request
You didn't specify the id parameter.
{
"operation": "______"
"error": "No archive ID specified."
"status": 0
}