问题描述
在 YouTube API v3 文档中,有诸如 regionCode
、videoEmbeddable
、videoSyndicated
之类的参数.但似乎它们都没有正常工作.我想从搜索结果中排除 VEVO 视频.所以应该可以使用 videoEmbeddable='true'
参数.但是这个参数对我的搜索结果没有影响.
In YouTube API v3 documentation there are parameters like regionCode
, videoEmbeddable
, videoSyndicated
. But it seems none of them are working properly. I want to exclude VEVO videos from my search results. So it should be possible with videoEmbeddable='true'
parameter. But this parameter makes no difference to my search results.
使用 API v2 我可以通过添加参数 format=5
来删除 VEVO 视频,但此参数在 v3 中不可用.
Using API v2 I could remove VEVO vidoes by adding the parameter format=5
but this parameter is not available in v3.
有人知道如何使用 v3 做到这一点吗?
Does anyone know how to do this using v3?
推荐答案
尝试添加 &type=video&videoEmbeddable=true
尽管这可能与之前的解决方案相同,但它确实有效.您可能遇到了更具体的问题,好像看起来一样.
Try adding &type=video&videoEmbeddable=true
although this might be the same as the previous solution, it worked for. You might have a more specific problem, as if seems.
这篇关于YouTube API v3 过滤可嵌入视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!