How to bulk borrow and download those borrowable-only books programmatically from the internet archive?
And how can this be done?
Is there an archive.org API for borrowing books?
Yes the Internet Archive has an API details are here.
There is a command line tool and a Python library. You will however be limited to only borrowing a total of 10 books at any time, for 14 days, and may have to join a queue for a specific title.