gpt4 book ai didi

youtube - 使用YouTube API v3搜索高清视频?

转载 作者:行者123 更新时间:2023-12-03 05:46:39 28 4
gpt4 key购买 nike

检索高清视频时出现搜索过滤器错误的无效组合。这是网址-https://www.googleapis.com/youtube/v3/search?part=snippet&q=drama&videoDefinition=high&key= {Developerkey}

错误报告

{
"error": {
"errors": [
{
"domain": "youtube.search",
"reason": "invalidSearchFilter",
"message": "Invalid combination of search filters and/or restrictions.",
"locationType": "parameter",
"location": ""
}
],
"code": 400,
"message": "Invalid combination of search filters and/or restrictions."
}
}

是否可以检索高清视频?请指导我。如何从该URL得到答复?谢谢

最佳答案

您还需要包括type=video查询参数,因为只有当结果限于视频时,高清晰度过滤才有意义。

话虽如此,返回的错误消息实际上并没有帮助,我将请工程团队对其进行修改,以弄清问题所在。

关于youtube - 使用YouTube API v3搜索高清视频?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17294463/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com