Youtube API 查询:starts-before、starts-after、ends-before、ends-after

发布于 2024-11-28 22:31:16 字数 308 浏览 4 评论 0 原文

我正在构建一个与 YouTube 不同的视频搜索引擎。

我正在努力使上述任何查询产生结果。我的语法通常如下:

https:// gdata.youtube.com/feeds/api/videos?&author=user&ends-before=2009

有人知道我哪里出了问题吗?

谢谢你的时间。

I am building a video search-engine of a different variety to youtube.

I am struggling to make any of the above queries yield results. My syntax is typically as follows:

https://gdata.youtube.com/feeds/api/videos?&author=user&ends-before=2009

Does anyone have any ideas as to where I am going wrong?

Thanks for you time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雪落纷纷 2024-12-05 22:31:16

starts-before、starts-after、ends-before 和ends-after 参数只能在检索实时事件时使用:

http://code.google.com/apis/youtube/2.0/developers_guide_protocol_retriving_live_events.html

此外,它们的值必须以 ISO8601 格式指定,例如 2009-01-01。
排除这一点,您的查询看起来是正确的。
尝试以下示例:

https://gdata.youtube.com/feeds/api/videos ?author=GoogleDevelopers

The starts-before, starts-after, ends-before and ends-after parameters can only be used when retrieving live events:

http://code.google.com/apis/youtube/2.0/developers_guide_protocol_retrieving_live_events.html

Also, their values must be specified in ISO8601 format, e.g. 2009-01-01.
Excluding that, your query looks correct.
Try this sample:

https://gdata.youtube.com/feeds/api/videos?author=GoogleDevelopers

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文