Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 528k

No of Subscribers per Video

May 19 2024 6:34 AM

Hi

  I have below code and i want to get no of subscribers also with the video details

var client = new RestClient("googleapis.com/youtube/v3");
            var request = new RestRequest("search", Method.GET);
            request.AddParameter("part", "snippet");

            request.AddParameter("type", "video");
            request.AddParameter("maxResults", 400);
            request.AddParameter("channelId", "UCg3ZngG-m_nNoVw");
            request.AddParameter("key", "AIzaSyYUSl87HSSG9b5Ls8ECKH8");

            List<YoutubeSearchItem> allItems = new List<YoutubeSearchItem>();

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

Thanks


Answers (2)