resu
resu

Reputation: 1144

No items returned when using "relevance" to order results when searching CommentThreads

Update: It was a bug, now fixed.

Searching youtube comments API with searchTerms=someKeywords and order=relevance doesn't return results, but when setting order=time it works, any idea why?

Sample API Request:

https://www.googleapis.com/youtube/v3/commentThreads?videoId=pvyfddIFsVA&searchTerms=Google&order=relevance&part=snippet&key=[YOUR API KEY]

Returned Response:

{
 "kind": "youtube#commentThreadListResponse",
 "etag": "\"XpPGQXPnxQJhLgs6enD_n8JR4Qk/6qokcCVLNOLwE7dOHNSTr30kECQ\"",
 "pageInfo": {
  "totalResults": 0,
  "resultsPerPage": 20
 },
 "items": []
}

From the Documentation:

The order parameter specifies the order in which the API response should list comment threads. Valid values are:

It seems that order by relevance is not working.

Upvotes: 2

Views: 269

Answers (1)

Mauricio Arias Olave
Mauricio Arias Olave

Reputation: 2575

This might be a bug, the best option in this case is report the bug by creating a new entry in Issue Tracker.

This is the Issue Tracker entry created by the OP.

Upvotes: 1

Related Questions