Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 544.9k

Get Tags of Video

Jan 31 2023 3:53 PM

Hi

  How we can get Tags of Youtube video. I am using below code

using (var yt = new YouTubeService(new BaseClientService.Initializer()
{
    ApiKey = "Api Key8",
}))
{
    StringBuilder htmlTable = new StringBuilder();

    var request = yt.Search.List("snippet");
    request.Order = Google.Apis.YouTube.v3.SearchResource.ListRequest.OrderEnum.ViewCount;

    request.MaxResults = 10;
    var response = request.Execute();
    var objResult = response.Items.ToList();

Thanks


Answers (7)