CommentThread.list 用“?” searchTerm 返回空集

CommentThread.list with "?" searchTerm returning empty set

如标题所述,我无法使用“?”过滤所有 CommentThreads。 searchTerm,此 returns CommentThreads 的空列表。

试过\? , \?, 纯 %03F, unicode \u0003F。似乎没有任何效果。 有没有办法按问号过滤?我正在尝试从视频中检索所有问题,如果我无法通过这种方式进行过滤,则意味着我必须拉下所有内容并在本地进行过滤,这非常昂贵 (quota-wise)。

这里是 api 浏览器 url :

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.commentThreads.list?part=id%252Csnippet&maxResults=10&order=time&searchTerms=%253F&textFormat=html&videoId=o4lMYiwKYRs&fields=items(replies%252Csnippet)%252CnextPageToken&_h=18&

我不知道这是否是一个错误,但似乎 searchTerms 参数有它自己的规则来使它自己工作或过滤结果。

让我们使用评论为

videoId=2ecT9zf1QZU

24

科比?

24科比

?科比

科比?布赖恩特

偶像24

如果我们使用 searchTerms=?,我们将得到 0 个结果 ,就像您遇到的那样,因为我认为它不适用于单独的特殊字符或具有这个特殊的角色。 (例如?

如果我们使用searchTerms=kobe,我们将得到3个结果, (kobe bryant?, ?kobekobe?bryant) 所以它适用于没有特殊字符的单词。

现在,我们使用searchTerms=?kobe and searchTerms=kobe?,我们会得到0个结果,因为特殊字符?.

如果我们用searchTerms=yant呢(来自bryant这个词),结果是0,因为没有结果中有单词 yant.

的单词

所以这意味着在使用这个 searhTerms 时有一些规则或限制。

希望这些信息对您有所帮助。