Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all video on youtube

I'm looking for a way to list every video on youtube. you have any ideas for it?

YouTubeQuery query = new YouTubeQuery(YouTubeQuery.DefaultVideoUri);
query.Query = "";     //<-Research key//
query.OrderBy = "viewCount";
query.SafeSearch = YouTubeQuery.SafeSearchValues.None;

Feed<Video> videoFeed = request.Get<Video>(query);

In this way, youtube return only 1.000.000 of result.

like image 721
Emanuele Mazzoni Avatar asked Dec 15 '22 15:12

Emanuele Mazzoni


1 Answers

From Youtube Api page;

The tag has a maximum value of 1,000,000. As such, if the tag value is 1,000,000, you can be sure that there are not exactly one million results but rather that there are so many matches that we just stopped counting. In addition, the maximum value for this tag is 1,000,000.

like image 115
Soner Gönül Avatar answered Dec 21 '22 22:12

Soner Gönül