json.php API - Get "files" by MD5 Hash

Q

How to get "files" objects with Library Genesis API, json.php, for a given file MD5 hash?

✍: FYIcenter.com

A

If you want to know the MD5 hash value of a file, you can call the Library Genesis API, json.php, with object=f and md5={hash} parameters.

For example, the following call returns the "files" object that has a MD5 hash value of "bcc52ea84b5e02ea80e84c15cae167e0".

fyicenter$ curl 'https://libgen.lc/json.php?object=f&md5=bcc52ea84b5e02ea80e84c15cae167e0' | python -m json.tool

{
    "93258654": {
        "archive_dop_files_flag": "",
        "archive_files_count": "0",
        "archive_files_pic_count": "0",
        "bookmarked": "Y",
        "broken": "",
        "c2c": "",
        "cleaned": "",
        "color": "",
        "comics_id": "0",
        "commentary": "",
        "cover_exists": "0",
        "cover_info": "",
        "dpi": "",
        "editable": "1",
        "editions": {
            "92715375": {
                "e_id": "138038117",
                "time_added": "2021-08-30 20:05:39",
                "time_last_modified": "2021-08-30 20:05:39"
            }
        },
        "extension": "pdf",
        "fiction_id": "0",
        "fiction_rus_id": "0",
        "file_create_date": "2000-01-01 05:00:00",
        "filesize": "2816857",
        "generic": "",
        "libgen_id": "2260850",
        "libgen_topic": "l",
        "locator": "In Search of Prosperity.pdf",
        "magz_id": "0",
        "md5": "bcc52ea84b5e02ea80e84c15cae167e0",
        ...

 

Wrong Output with object=f, topic=s and Date Range

json.php API - Get "files" by Modification Date Range

Library Genesis API

⇑⇑ LibGen (Library Genesis) - Frequently Asked Questions

2023-09-03, 349🔥, 0💬