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

时间:2013-06-25 10:06:52

标签: youtube youtube-api

我在检索高清视频时收到了无效的搜索过滤器错误组合。这是网址 - 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获得回复?感谢

1 个答案:

答案 0 :(得分:4)

您还需要包含type=video查询参数,因为只有在结果仅限于视频时,才能对高清进行过滤。

话虽如此,返回的错误消息实际上并没有用,我会要求工程团队对其进行修改,以便澄清错误。

相关问题