Google Book API中的卷搜索返回相同查询的不同结果计数

发布于 2025-02-02 17:53:50 字数 421 浏览 1 评论 0原文

根据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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文