Reputation: 1144
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:
time
- Comment threads are ordered by time. This is the default
behavior.relevance
- Comment threads are ordered by relevance.It seems that order by relevance
is not working.
Upvotes: 2
Views: 269
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