我正在尝试从 YouTube 上的 channel 获取最新的视频。不知道为什么,但是 order: 'date',
、 publishedAfter: '2019-03-13T19:14:31.000Z',
和 publishedBefore: '2019- 02-13T19:14:31.000Z',
似乎没有效果。
我正在使用的完整代码如下:
baseURL: 'https://www.googleapis.com/youtube/v3',
params: {
part: 'snippet',
publishedAfter: '2019-03-13T19:14:31.000Z',
publishedBefore: '2019-02-13T19:14:31.000Z',
order: 'date',
maxResults: 10,
key: KEY,
channelId: 'UCzQUP1qoWDoEbmsQxvdjxgQ'
}
youtube 是否在乱搞 API?我们有什么特殊的方式来做这件事吗?也许我的顺序是错误的?我很困惑
最佳答案
根据 Google 论坛,这是一个临时问题:https://support.google.com/youtube/thread/2494861?msgid=2520468
YouTube is aware the search/sorting functions aren't working as expected – this is temporary and part of our efforts to better respond, review and remove graphic, violative content from YouTube.
关于用于从 channel 获取最新视频的 YouTube API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55244167/