Ramco Ramco

Ramco Ramco

  • 445
  • 3.4k
  • 530.6k

Showing Long Videos instead of Short

Feb 7 2023 12:09 PM

Hi

   Instead of Short Videos it is showing long videos

public void ShortVideos()
{
    Int32 Count = 1;

    var client = new RestClient("googleapis.com/youtube/v3");

    var request = new RestRequest("search", Method.GET);
    request.AddParameter("part", "snippet");
    request.AddParameter("videoDuration", "short");
    request.AddParameter("type", "video");
    request.AddParameter("maxResults", 50);
    request.AddParameter("order", "viewCount");
    request.AddParameter("sortOrder", "desc");
    request.AddParameter("key", "ApiKey");

    var response = client.Execute<YoutubeSearchListResponse>(request);
}

Thanks


Answers (1)