如果您使用 pagetokens,youtube 数据 api 分页是否一致?(v3 数据 API) [英] Is youtube data api paging consistent if you use pagetokens? (v3 data api)

查看:7
本文介绍了如果您使用 pagetokens,youtube 数据 api 分页是否一致?(v3 数据 API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

YouTube V3 数据 API 为来自搜索端点的分页结果集提供页面令牌".

The YouTube V3 Data API provides "page tokens" for paging result sets from search endpoints.

如果使用页面标记,查看的数据集是否一致?

Is the dataset being viewed consistent if you make use of the page tokens?

例如如果对视图计数有一个排序,这可能会随着时间而变化,那么在多个查询中保证对整个结果集的排序,因此保证第一页上的最低结果的排序大于最高结果的排序下一页?

e.g. if there is an ordering on view count, which is likely to change with time, then is the ordering over the total result set guaranteed across multiple queries, so the lowest result on the first page is guaranteed to be ordered greater than the highest result on the following page?

推荐答案

使用页面令牌时不保证排序.(在 v1/v2 中使用 start-index 时也不能保证.)如果在获取一页和下一页之间后端数据源的顺序发生了变化,那么检索下一页将反映更新后的顺序.

The ordering is not guaranteed when using page tokens. (Nor was it guaranteed when using start-index in v1/v2.) If something changes with the backend data source's ordering in between fetching one page and the next page, then retrieving the next page would reflect the updated ordering.

这篇关于如果您使用 pagetokens,youtube 数据 api 分页是否一致?(v3 数据 API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆