Shlomi
Shlomi

Reputation: 3792

Youtube Search API v3 - filter by duration

Trying to filter using "videoDuration" parameter but looks like i can select just one of the options and not multiple, am i right or there is an alternative i can get all songs until 20 minutes duration include "short" one?

Thanks.

Upvotes: 2

Views: 625

Answers (1)

johnh10
johnh10

Reputation: 4185

Good question. I think you are right and can only request a single videoDuration. You'll have to make separate requests for 'short' and 'medium' durations and merge the results together in your script.

Upvotes: 1

Related Questions