当我试图通过isbn代码找到一本书时,我遇到了一个奇怪的问题。
当我尝试在Google图书网站上搜索时,我得到了以下结果:
没关系。但是,当我尝试搜索这个相同的isbn代码并请求google books api时如下:
https://www.googleapis.com/books/v1/volumes?q=isbn:8841274573
作为回应,我的搜索结果与google网站和我的目标完全不同:
{
"kind": "books#volumes",
"totalItems": 1,
"items": [
{
"kind": "books#volume",
"id": "F1mCAQAACAAJ",
"etag": "h72WBWNyItw",
"selfLink": "https://www.googleapis.com/books/v1/volumes/F1mCAQAACAAJ",
"volumeInfo": {
"title": "Kitāb al-Thiqāt",
"authors": [
"Muḥammad Ibn Ḥibbān"
],
"publishedDate": "1988",
"industryIdentifiers": [
{
"type": "OTHER",
"identifier": "OCLC:33995748"
}
],
"readingModes": {
"text": false,
"image": false
},
"printType": "BOOK",
"categories": [
"Hadith"
],
"maturityRating": "NOT_MATURE",
"allowAnonLogging": false,
"contentVersion": "preview-1.0.0",
"panelizationSummary": {
"containsEpubBubbles": false,
"containsImageBubbles": false
},
"language": "it",
"previewLink": "http://books.google.it/books?id=F1mCAQAACAAJ&dq=isbn:8841274573&hl=&cd=1&source=gbs_api",
"infoLink": "http://books.google.it/books?id=F1mCAQAACAAJ&dq=isbn:8841274573&hl=&source=gbs_api",
"canonicalVolumeLink": "https://books.google.com/books/about/Kit%C4%81b_al_Thiq%C4%81t.html?hl=&id=F1mCAQAACAAJ"
},
"saleInfo": {
"country": "IT",
"saleability": "NOT_FOR_SALE",
"isEbook": false
},
"accessInfo": {
"country": "IT",
"viewability": "NO_PAGES",
"embeddable": false,
"publicDomain": false,
"textToSpeechPermission": "ALLOWED",
"epub": {
"isAvailable": false
},
"pdf": {
"isAvailable": false
},
"webReaderLink": "http://books.google.it/books/reader?id=F1mCAQAACAAJ&hl=&printsec=frontcover&output=reader&source=gbs_api",
"accessViewStatus": "NONE",
"quoteSharingAllowed": false
}
}
]
}
是否有办法区分(可能在请求参数中)具有不同isbn的不同书?
在documentation中,此特殊参数没有任何引用。 (如果存在)
提前致谢。
答案 0 :(得分:0)
一年多之后,Google似乎已纠正了该问题,如果我尝试调用API,则响应与最初问题中提出的请求现在是一致的。