Youtube Data API v3:按日期排序不起作用 [英] Youtube Data API v3: Sort by date not working

查看:26
本文介绍了Youtube Data API v3:按日期排序不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

排序在几个小时后没有按预期工作.

The sorting is not working as expected since a few hours.

https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw&key=YOUR_API_KEY

也可以在 API 资源管理器中尝试(不使用 OAuth 执行).

Can be tried in the API explorer (Execute without OAuth) as well.

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.search.list?part=snippet&channelId=UC_x5XG1OV2P6uZZ5FSM9Ttw&order=date

日期:资源按创建日期倒序排列.

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屋!

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