Google Book API中的卷搜索返回相同查询的不同结果计数
根据Google Book API文档,可以在收集的开始索引(卷)中指定 StartIndex 。但是,每当我使用不同的 startIndex 执行相同的查询时,从返回的对象defers中 TotalItems 。不仅如此,即使 StartIndex 已经超过 Math.ceil(data.totalitems/40),返回对象中总有多达40个结果( resucty_per_page )。
https://www.googleapis.com/books/v1/volumes?q=love+intitle:love&startIndex=0&maxResults=40
According to the google book API documentation, the startIndex can be specified in URL for the start index of the collection(volumes). However, every time I perform the same query with different startIndex, the totalItems from the returned object defers. Not only that, there are always as many as 40 results in the returned object even though the startIndex has already exceeded Math.ceil(data.totalItems / 40(RESULTS_PER_PAGE). Is there anything I am missing for volumes search?
https://www.googleapis.com/books/v1/volumes?q=love+intitle:love&startIndex=0&maxResults=40
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论