本文介绍了什么是YouTube数据API V3调用返回的最大成果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我在做一个HTTP GET使用YouTube数据API V3提供一些咨询服务的过程;为了开发基于Windows的应用程序获取从Youtube结果列表,用于表示一个特定的类别,或者特定的标签。I am in the process of providing some consultancy on doing a HTTP GET using YouTube Data API V3; in order to develop a Windows based application to GET a list of results from Youtube, for say a specific CATEGORY, or a specific TAG.我们是开放给使用任何编程语言(我从C ++的背景是,我希望你管将支持直接HTTP连接,而无需使用谷歌的客户端SDK等)连接到YouTube和(HTTP)获取数据。(一旦一个月左右,因此YouTube的API配额应该不是问题)。We are open to using any programming language(I'm from a C++ background and am hoping You tube will support direct HTTP connections without using Google client SDK and so on) to connect to YouTube and (HTTP) GET data.(Once a month or so, so YouTube API quotas should not be problem).我们正在通过我的一些客户端的web开发人员告诉记者,YouTube的API V3将最多500个记录/结果只返回,为说,只返回总观众,影片的链接,如基本的元数据查询这一点。We are being told by some of my client's web developers that YouTube API v3 will only return a maximum of 500 records/results, for say a query that returns JUST the Total viewers, the Video's link, and basic meta data such as that. S,说我希望能够找到5000结果类别音乐房子或篮球 - 和我有开发重点等都是成立,请问可不可以S, say I wish to find 5,000 results for category "House music" or "basketball" - and I have the Developer Key etc are all set up, would that be possible?如果是这样,什么GET领域将我需要填充(如max_results_per_page)?If so, what GET fields would I need to populate(such as "max_results_per_page")?感谢您。推荐答案该API将不提供比〜500 搜索任意查询结果等等。这是由设计。从技术上讲,这意味着一旦你打〜500的结果 nextPageToken这个字段将不予退还。没有额外的参数可以更改。The API won't provide more than ~500 search results for any arbitrary query. It's by design. Technically, it means that the nextPageToken field won't be returned once you hit ~500 results. No additional parameter can change that.如果你想超过〜500结果查询,你必须把它分割成更具体的子查询。我建议使用 publishedAfter 和 publishedBefore 参数来实现这一点,但随时与其他的人尝试这里。If you want more than ~500 results for a query, you have to split it into more specific sub-queries. I'd suggest using the publishedAfter and publishedBefore parameters to achieve that, but feel free to experiment with the other ones here. 这篇关于什么是YouTube数据API V3调用返回的最大成果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-29 06:57