Hi
I am trying to display SHort youtube videos for last 7 days. It is currently showing only 1 record
var client = new RestClient("googleapis.com/youtube/v3"); var request = new RestRequest("search", Method.GET); request.AddParameter("part", "snippet"); request.AddParameter("publishedAfter", DateTime.Today.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ")); request.AddParameter("publishedBefore", DateTime.Today.AddDays(7).ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ")); request.AddParameter("q", "short videos category"); request.AddParameter("type", "video"); request.AddParameter("maxResults", 10); request.AddParameter("order", "viewCount"); request.AddParameter("sortOrder", "desc"); request.AddParameter("key", "ApiKey"); var response = client.Execute<YoutubeSearchListResponse>(request);
Thanks