Hi
How we can get the list of most viewed Youtube short Videos on basis of category
Thanks
Hi
How we can get the list of most viewed Youtube short Videos on basis of category
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 1, 2023, 11:52 PM EST
Hello Ramco,
Restsharp vesion.
var client = new RestClient("https://www.googleapis.com/youtube/v3"); var request = new RestRequest("search", Method.Get); request.AddParameter("part", "snippet"); request.AddParameter("q", "short videos category"); request.AddParameter("type", "video"); request.AddParameter("maxResults", 50); request.AddParameter("order", "viewCount"); request.AddParameter("key", "YOUR_API_KEY"); var response = client.Execute(request); Console.WriteLine(response.Content);Thanks
Naimish
Sachin SinghRank #66 · 26.2K reputationPosted Feb 1, 2023, 12:18 PM EST
YouTube Data API v3 supports videos not short.
However you can refer the docx if there is any change.
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 1, 2023, 11:36 PM EST
Hello Ramco,
Please try below code.
var youtubeService = new YouTubeService(new Google.Apis.Services.BaseClientService.Initializer() { ApiKey = "YOUR_API_KEY", ApplicationName = "YouTubeAPISample" }); var searchListRequest = youtubeService.Search.List("snippet"); searchListRequest.Q = "short videos category"; searchListRequest.Type = "video"; searchListRequest.MaxResults = 50; searchListRequest.Order = SearchResource.ListRequest.OrderEnum.ViewCount; var searchListResponse = searchListRequest.Execute(); foreach (var searchResult in searchListResponse.Items) { Console.WriteLine("{0} ({1})", searchResult.Snippet.Title, searchResult.Id.VideoId); }Thanks
Naimish Makwana
Ramco RamcoRank #462 · 5.4K reputationPosted Feb 1, 2023, 11:44 PM EST
Hi Naimish
Is the same below code possible thru RestSharp
Thanks