youtube api 与常规搜索查询的区别? [英] youtube api vs regular search query differences?

查看:26
本文介绍了youtube api 与常规搜索查询的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白通过常规 youtube 搜索返回的与由 api 执行的搜索返回的差异.

I don't understance the difference returned via regular youtube searches versus ones performed by the api.

这是我的示例查询:http://gdata.youtube.com/feeds/api/videos?q=Alien 满月宇宙&max-results=25&v=2&duration=long

Here's my example query: http://gdata.youtube.com/feeds/api/videos?q=Alien Moons the universe&max-results=25&v=2&duration=long

youtube 常规搜索上的第一个结果就是我要找的(Alien Moons Documentary,长度为 44:28).相同的视频出现在 API 查询的结果中,但顺序不同 - 就像结果列表的一半.

The first result on youtube's regular search is what I'm looking for (Alien Moons Documentary, 44:28 in length). The same video is in the results of the API query, but it's not in the same order-- it's like half way down the list of results.

API 应该允许轻松访问常规搜索,这不是重点吗?我什至尝试添加 &orderby=relevance 标记,但没有帮助.

Isn't the whole point that the API is supposed to allow easy access to regular searches? I even tried adding the &orderby=relevance tag, but it doesn't help.

推荐答案

我们不保证网站和 API 总是以相同的顺序返回结果,不会.

We don't guarantee that the website and the API will always return results in the same order, no.

话虽如此,我看到视频 ID 8Jucta-ZwxY 作为 Web 和 API 搜索的第一个结果返回.您可能会遇到某些特定于区域的自定义或其他问题 - 同样,结果不一定匹配.

That being said, I'm seeing video id 8Jucta-ZwxY returned as the first result for both the web and API searches. You might be running into some region-specific customization, or something else—again, the results will not necessarily match.

这篇关于youtube api 与常规搜索查询的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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