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

Q

How to get "files" objects with Library Genesis API, json.php, for a given modification date range?

✍: FYIcenter.com

A

If you want to get all file objects that were modified with a given date range, you can call the Library Genesis API, json.php, with object=f, mode=modified, timefirst={date} and timelast={date} parameters.

For example, the following call returns all "files" objects that were modified from 2021-09-02 to 2021-09-04.

fyicenter$ curl 'https://libgen.lc/json.php?object=f&mode=modified&timefirst=2021-09-02&timelast=2021-09-04' | python -m json.tool

{
    "94068096": {
        "archive_dop_files_flag": "",
        "archive_files_count": "0",
        "archive_files_pic_count": "0",
        "bookmarked": "",
        "broken": "",
        "c2c": "",
        "cleaned": "",
        "color": "",
        "comics_id": "0",
        "commentary": "",
        "cover_exists": "0",
        "cover_info": "",
        "dpi": "",
        "editable": "1",
        "extension": "pdf",
        "fiction_id": "0",
        "fiction_rus_id": "0",
        "file_create_date": "2000-01-01 05:00:00",
        "filesize": "15468989",
        "generic": "",
        "libgen_id": "0",
        "libgen_topic": "a",
        "locator": "",
        "magz_id": "0",
        "md5": "a01c27cbea72974c5d6b6b8874ae6f37",
        "ocr": "",
        "orientation": "",
        "pages": "0",
        "paginated": "",
        "releaser": "",
        "scan_content": "",
        "scan_quality": "",
        "scan_size": "",
        "scan_type": "",
        "scanned": "",
        "scimag_archive_path": "10.1183\\9781849841313.eph01.pdf",
        "scimag_id": "85284891",
        "standarts_id": "0",
        "time_added": "2021-07-17 07:19:59",
        "time_last_modified": "2021-09-02 15:03:21",
        ...
    ...

The result shows that the file object (id=94068096) was added on 2021-07-17 and modified later on 2021-09-02.

You can also retrieve files that were added with a given date range using the mode=last parameter. For example, the following call returns all "files" objects that were added from 2021-09-02 to 2021-09-04.

fyicenter$ curl 'https://libgen.lc/json.php?object=f&mode=last&timefirst=2021-09-02&timelast=2021-09-04' | python -m json.tool | grep md5 | wc

      15      30     765

There were more than 15 files added during that 2-day period.

 

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

json.php API - Get "files" by ID Range

Library Genesis API

⇑⇑ LibGen (Library Genesis) - Frequently Asked Questions

2023-09-03, 297🔥, 0💬