YouTube 搜索运营商在 API 调用?

YouTube search operators in API call?

如何使用 ORtitletagdescription 中搜索字词?

&q=%23%23"iraqi food" OR title:"israeli food" OR description:"iranian food"

// %23%23"iraqi food" = ##Tagname

这只会带来 iraqi food 的结果。我也使用了一些变体(只是玩了一下,因为我找不到任何例子。),但它们也没有用。

List of search operators

Search: list Returns collection 个与 API 请求中指定的查询参数匹配的搜索结果。默认情况下,搜索结果集会识别匹配的视频、频道和播放列表资源,但您也可以将查询配置为仅检索特定类型的资源。

q
string
The q parameter specifies the query term to search for.

Your request can also use the Boolean NOT (-) and OR (|) operators to exclude videos or to find videos that are associated with one of several search terms. For example, to search for videos matching either "boating" or "sailing", set the q parameter value to boating|sailing. Similarly, to search for videos matching either "boating" or "sailing" but not "fishing", set the q parameter value to boating|sailing -fishing. Note that the pipe character must be URL-escaped when it is sent in your API request. The URL-escaped value for the pipe character is %7C.

回答:您不能具体要求标题标签或描述。它只是在寻找你。你能做的最好的事情是 &q=iraqi|food 这会给你伊拉克或食物的结果