title: How to get Duration of all Youtube Videos by calling YouTube API in C#
body: <p>I want to get the duration of each video in the list after calling <code>youtubeService.Search.List(&quot;snippet&quot;);</code>
  Following is my code</p>
  <pre><code>var youtubeService = new YouTubeService(new BaseClientService.Initializer()
              {
                  ApiKey = &quot;API Key&quot;,
                  ApplicationName = this.GetType().ToString()
              });
  
              var searchListRequest = youtubeService.Search.List(&quot;snippet&quot;);
              searchListRequest.MaxResults = 30;
              var searchListResponse = searchListRequest.Execute();
  </code></pre>
  <p>I read that the duration is in the content details of the video but the content Detail is null of each video.</p>