{
"data": {
"count": 2,
"query": "pride and prejudice",
"results": [
{
"authorIds": [
"OL21594A"
],
"authors": [
"Jane Austen"
],
"coverId": 14348537,
"coverUrl": "https://covers.openlibrary.org/b/id/14348537-M.jpg",
"editionCount": 4042,
"firstPublishYear": 1813,
"isbn": "1402798563",
"subjects": [
"Fiction, Romance, Historical, Regency",
"British and Irish fiction (fictional works by one author)",
"Brothers and sisters",
"Courtship",
"Drama",
"English fiction",
"English literature",
"Families",
"Family",
"Family life"
],
"title": "Pride and Prejudice",
"workId": "OL66554W"
},
{
"authorIds": [
"OL21594A"
],
"authors": [
"Jane Austen"
],
"coverId": 13148521,
"coverUrl": "https://covers.openlibrary.org/b/id/13148521-M.jpg",
"editionCount": 132,
"firstPublishYear": 1813,
"isbn": "9798583924769",
"subjects": [
"British and irish fiction (fictional works by one author)",
"Brothers and sisters",
"Children's fiction",
"Courtship",
"Drama",
"English fiction",
"English literature",
"Families",
"Family",
"Family life"
],
"title": "Pride and Prejudice",
"workId": "OL15165350W"
}
]
},
"error": null,
"message": "Found 2 book(s) for \"pride and prejudice\". Call GET /books/:id (or /isbn/:isbn) for full metadata."
}
curl --location --request GET 'https://zylalabs.com/api/14977/book+data+api/39355/search+books?q=pride and prejudice&limit=5&offset=Optional' --header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"authors": [
{
"id": "OL21594A",
"name": "Jane Austen"
}
],
"coverId": 14348537,
"coverUrl": {
"large": "https://covers.openlibrary.org/b/id/14348537-L.jpg",
"medium": "https://covers.openlibrary.org/b/id/14348537-M.jpg",
"small": "https://covers.openlibrary.org/b/id/14348537-S.jpg"
},
"description": "Pride and Prejudice is an 1813 novel of manners written by Jane Austen. The novel follows the character development of Elizabeth Bennet, the dynamic protagonist of the book who learns about the repercussions of hasty judgments and comes to appreciate the difference between superficial goodness and actual goodness.",
"firstPublishYear": 1853,
"id": "OL66554W",
"isbn10": null,
"isbn13": "9781009432580",
"language": "eng",
"links": {
"openLibrary": "https://openlibrary.org/works/OL66554W"
},
"pageCount": 446,
"physicalFormat": null,
"publishDate": "2024",
"publisher": "Cambridge University Press",
"sources": {
"description": "open_library",
"pageCount": "open_library",
"title": "open_library"
},
"subjects": [
"Fiction, Romance, Historical, Regency",
"British and Irish fiction (fictional works by one author)",
"Brothers and sisters",
"Courtship",
"Drama",
"English fiction",
"English literature",
"Families",
"Family",
"Family life"
],
"title": "Pride and Prejudice"
},
"error": null,
"message": "Fetched book metadata."
}
curl --location --request GET 'https://zylalabs.com/api/14977/book+data+api/39356/get+book+by+work+id&workId=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"authors": [
{
"id": "OL21594A",
"name": "Jane Austen"
}
],
"coverId": 14348537,
"coverUrl": {
"large": "https://covers.openlibrary.org/b/id/14348537-L.jpg",
"medium": "https://covers.openlibrary.org/b/id/14348537-M.jpg",
"small": "https://covers.openlibrary.org/b/id/14348537-S.jpg"
},
"description": "Pride and Prejudice is an 1813 novel of manners written by Jane Austen. The novel follows the character development of Elizabeth Bennet, the dynamic protagonist of the book who learns about the repercussions of hasty judgments and comes to appreciate the difference between superficial goodness and actual goodness.",
"firstPublishYear": 1853,
"id": "OL66554W",
"isbn10": "0141439513",
"isbn13": "9780141439518",
"language": "eng",
"links": {
"openLibrary": "https://openlibrary.org/works/OL66554W"
},
"pageCount": 435,
"physicalFormat": "Paperback",
"publishDate": "2003",
"publisher": "Penguin Books",
"sources": {
"description": "open_library",
"pageCount": "open_library",
"title": "open_library"
},
"subjects": [
"Fiction, Romance, Historical, Regency",
"British and Irish fiction (fictional works by one author)",
"Brothers and sisters",
"Courtship",
"Drama",
"English fiction",
"English literature",
"Families",
"Family",
"Family life"
],
"title": "Pride and Prejudice"
},
"error": null,
"message": "Fetched book metadata."
}
curl --location --request GET 'https://zylalabs.com/api/14977/book+data+api/39357/get+book+by+isbn&isbn=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"authorId": "OL21594A",
"bio": "Jane Austen was an English writer. Although Austen was widely read in her lifetime, she published her works anonymously. The most urgent preoccupations of her bright, young heroines are courtship and marriage. Austen herself never married.",
"birthDate": "December 16, 1775",
"deathDate": "July 18, 1817",
"name": "Jane Austen",
"photoUrl": "https://covers.openlibrary.org/a/id/15214274-M.jpg",
"totalWorks": 2239,
"works": [
{
"coverId": null,
"subtitle": null,
"title": "Tavat ja tunteet",
"workId": "OL46238208W"
},
{
"coverId": null,
"subtitle": null,
"title": "Leikkiä ja totta",
"workId": "OL46238140W"
}
]
},
"error": null,
"message": "Fetched author metadata and 2 work(s). Call GET /books/:id for full metadata on any of them."
}
curl --location --request GET 'https://zylalabs.com/api/14977/book+data+api/39358/get+author?limit=20&offset=Optional&authorId=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"status": "up"
},
"error": null,
"message": "Service is healthy"
}
curl --location --request GET 'https://zylalabs.com/api/14977/book+data+api/39359/health+check' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 书籍数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
通过标题、作者或ISBN搜索数百万本书。获取干净的元数据:作者、描述、出版日期、页数、出版社、主题、ISBN-10/13、三种尺寸的封面和作者简介
您可以通过书名、作者名或ISBN进行搜索 ISBN-10和ISBN-13会自动检测并允许使用连字符
作者 描述 主题 ISBN-10 和 ISBN-13 出版社 出版日期 页数 语言以及小 中 大封面图片
并不是每本书在每个目录中都有每个字段。没有值的字段以空值或空列表返回,从不省略
请通过Telegram联系我们 @pintoflow 寻求帮助、功能请求或定制计划
每个端点返回详细的书籍信息 搜索图书端点提供与查询匹配的书籍列表 而通过作品ID获取图书和通过ISBN获取图书的端点返回特定书籍的完整信息 包括作者 描述和封面图片 获取作者端点提供带有传记和作品列表的作者资料
关键信息包括作者 描述 ISBN 出版社 出版日期 页数 主题以及各种尺寸的封面图片 对于作者 字段包括传记 出生/死亡日期和他们作品的列表
响应数据采用JSON格式结构化 每个端点返回一个包含相关字段的“data”对象 例如搜索图书端点包括“count”和“results”而获取作者端点包括“bio”和“works”
搜索图书端点根据标题、作者或ISBN提供书籍元数据 根据工作ID获取书籍和根据ISBN获取书籍的端点返回详细的书籍信息 获取作者端点提供作者传记及其作品,而健康检查端点确认API状态
用户可以通过在搜索书籍端点中指定搜索参数,如标题、作者名或ISBN,来自定义请求。还可以应用分页来管理返回的结果数量
数据来自各种文学数据库和图书馆,确保了书籍和作者的广泛覆盖。该API旨在为数百万个标题提供准确和全面的元数据
典型的用例包括构建书籍推荐应用程序 创建阅读清单 将书籍信息集成到教育平台以及为文学网站开发作者档案
如果搜索没有结果"count"字段将为零"results"数组将为空用户应实现对这些条件的检查以有效处理没有返回数据的情况