YouTube API搜索直播停止工作 [英] Youtube API search livestream stop to work
问题描述
几天后youtube api停止显示实时视频,此错误仅发生在我的api密钥上吗?如果可以,还有其他方法可以找到直播视频吗?
A few days that the youtube api stop to show a livestream videos, is this error only on my api key? if does, is there any other way to find a livestream videos?
我用google搜索了youtube是否有与此相关的消息,但没有找到.
I googled if there any message from youtube about this, and i didn't find.
https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UC4R8DWoMoI7CAwX8_LjQHig&eventType=live&type=video&key={MY_API_KEY}
推荐答案
您并不孤单. 不幸的是,它已经为每个人打破了,而且这种方式已经使用了十多天了.与所有Google服务一样,根本没有人为的支持和反馈,甚至没有对此问题的承认.
You are not alone. It's broken for everybody, unfortunately, and it's been this way for over ten days now. As with all Google services, human support and feedback is non-existent, not even an acknowledgement of the issue.
参考资料: https://support.google.com/youtube/thread/14611425
作为一种解决方法,我不得不更改逻辑以将q
参数与eventType=live
一起使用.这实际上是有效的,并且根据关键字,还可以返回很多不相关的实时资料,我认为可以在客户端上对其进行进一步过滤.这似乎也导致更高的配额使用量.
As a workaround, I had to change the logic to use the q
parameter along with eventType=live
. This actually works, and, depending on keywords, can also return a whole lot of unrelated live material, which, I think, can be further filtered on the client. This also seems to incur higher quota usage.
这篇关于YouTube API搜索直播停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!