I am trying to filter the search results by duration (short) parameter. However, it still returns video up to 1 hour. In addition, the orderby parameter does not work. Here's the code (all other filters work):
var request = gapi.client.youtube.search.list({
part: 'snippet',
q: 'kittens',
maxResults: 5,
duration: 'short',
orderby: 'published',
});
Is there anything related to the fact that these are “custom search parameters”? If so, how to use them?
Thanks in advance!
fizzy source
share