Youtube Data API v3:按日期排序不起作用 [英] Youtube Data API v3: Sort by date not working
问题描述
排序在几个小时后没有按预期工作.
The sorting is not working as expected since a few hours.
也可以在 API 资源管理器中尝试(不使用 OAuth 执行).
Can be tried in the API explorer (Execute without OAuth) as well.
日期:资源按创建日期倒序排列.
date: Resources are sorted in reverse chronological order based on the date they were created.
https://developers.google.com/youtube/v3/docs/搜索/列表
出了什么问题?
推荐答案
如果您想获取某个频道的最新视频:
In case you are looking to get the latest videos of a channel:
- 从频道 获取频道上传播放列表
- 从PlaylistItems获取频道上传播放列表中的最新视频/li>
- Get the channels upload playlist from Channels
- Get the latest videos in the channels upload playlist from PlaylistItems
或者,您可以使用频道 RSS 提要:
Alternatively, you can use the channels RSS feed:
https://www.youtube.com/feeds/videos.xml?channel_id={ChannelId}
https://www.youtube.com/feeds/videos.xml?user={User}
然而,这并不能取代按日期功能排序的完整搜索.
This does not replace the full search sorted by date function however.
感谢 YouTube 让我在周日工作,我只想看我最喜欢的频道的最新视频.至少我不用再等待修复了,祝那些不太幸运的人好运!
Thanks YouTube for making me work on a Sunday, all I wanted was to watch the latest videos from my favorite channels. At least I don't have to wait for a fix anymore, good luck to those less lucky!
这篇关于Youtube Data API v3:按日期排序不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!