Open Library 由互联网档案馆运营,收录 4000 万以上版本、2000 万以上作品,API 提供图书检索、ISBN/OCLC 查询、封面图片,并支持 200 万以上可借阅电子书的阅读访问。免费且无需认证,适合专著发现、版本追踪与书目核验。
主要检索方式:全文检索 https://openlibrary.org/search.json?q=machine+learning&limit=20,也可用 title、author、subject、isbn、first_publish_year 等参数过滤;sort 支持 new、editions、old;limit 最大 100,offset 用于分页,fields 可指定返回字段。
详情查询:作品 https://openlibrary.org/works/OL45804W.json,版本 https://openlibrary.org/books/OL7353617M.json,按 ISBN https://openlibrary.org/isbn/9780262035613.json,书目数据 https://openlibrary.org/api/books?bibkeys=ISBN:9780262035613&format=json&jscmd=data。作者接口包括 authors/OL34184A.json、search/authors.json 与 authors/OL34184A/works.json。封面通过 covers.openlibrary.org/b/isbn/{isbn}-M.jpg(S/M/L 尺寸)或按 OLID 获取。
检索响应包含 numFound、docs 及 key、title、author_name、first_publish_year、isbn、publisher、subject、edition_count、cover_i、ebook_access 等字段,可用 Python 的 requests 库封装调用。限制:资料未提供速率限制、使用条款细节及数据准确性的进一步说明。