Google YouTube Data API第3版,videoEmbeddable错误

guo*_*owy 0 search youtube-api video-embedding

我正在尝试使用此页面上的youTube Data API v3:https://developers.google.com/youtube/v3/docs/search/list

只要videoEmbeddable参数留空,每个请求都可以正常工作.一旦我将其设置为true任何,我得到一个错误的请求响应.

{
 "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."
 }
}
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?

And*_*i O 11

如果你设置videoEmbeddable = true,你还必须设置type = video,否则你将得到"搜索过滤器和/或限制的无效组合"错误.