YouTube API v3 过滤可嵌入视频 [英] YouTube API v3 filtering embeddable videos

查看:32
本文介绍了YouTube API v3 过滤可嵌入视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 YouTube API v3 文档中,有诸如 regionCodevideoEmbeddablevideoSyndicated 之类的参数.但似乎它们都没有正常工作.我想从搜索结果中排除 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 过滤可嵌入视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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