Open Library
图书、书封面及相关数据
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- No
- 分类
- 书籍
简介
Open Library(Internet Archive 的项目)把 4,000 万+ 册图书的目录以免费、免密钥的 REST API 开放出来:全文搜索、书籍/作者/作品记录、封面和版本数据。是图书类应用的首选免费数据源。
快速开始
搜索书籍:
curl "https://openlibrary.org/search.json?q=harry+potter&limit=3"
获取作品详情(注意:部分 key 是重定向——跟随即可):
curl "https://openlibrary.org/works/OL45883W.json"
获取封面图片(无需密钥):
https://covers.openlibrary.org/b/isbn/0451526538-S.jpg # 小
https://covers.openlibrary.org/b/isbn/0451526538-M.jpg # 中
https://covers.openlibrary.org/b/isbn/0451526538-L.jpg # 大
按 ISBN 获取版本:
curl "https://openlibrary.org/isbn/0451526538.json"
数据内容
- 搜索结果:书名、作者、首版年份、ISBN、封面 ID、版本数
- 作品/版本记录:完整元数据、简介、主题、链接
- 作者记录:简介、生卒年、作品列表
- 封面 API:按 ISBN、OCLC、LCCN 或 Open Library ID
认证方式
无需认证——免密钥开放。
速率限制与注意事项
- 免费,有合理的请求预算(官方文档要求保持保守速率,不做激进的大规模抓取)。
search.json支持q、title、author、subject、limit/offset、fields(只选你需要的字段,响应更小)。- 部分作品 key 返回重定向(
{"type": "/type/redirect"})——跟随location字段即可。 - 封面 CDN 速度快且支持热链,适合生产使用。
常见问题
Open Library 免费吗? 是的——免费、免密钥、开放(Internet Archive 项目)。
可以在应用里用封面图吗? 可以——封面 API 就是为热链设计的,支持小/中/大三档尺寸。
可以在浏览器直接调用吗? CORS 不保证——前端应用遇到问题请走自己的服务端代理。
书籍 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| A Bíblia Digital Do not worry about managing the multiple versions of the Bible | API Key | Yes | No | ↗ |
| Amanah Sunnah Semantic search across Quran, Hadith, Tafsir & 18K+ Rijal narrators | API Key | Yes | Yes | ↗ |
| Bhagavad Gita Bhagavad Gita text | OAuth | Yes | Yes | ↗ |
| Bhagavad Gita Open Source Shrimad Bhagavad Gita API including 21+ authors translation in Sanskrit/English/Hindi | API Key | Yes | Yes | ↗ |
| Bhagavad Gita telugu Bhagavad Gita API in telugu and odia languages | No auth | Yes | Yes | ↗ |