using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
public static void Main()
RunTest().GetAwaiter().GetResult();
Console.WriteLine("Hello World");
public async static Task RunTest()
using (HttpClient client = new HttpClient())
client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
var response = await client.GetAsync("https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&key=<<Your Key>>&playlistId=PL-PXKb5jSjwbU0wzAuEooBvkZ9jnmXR7N");
var content = await response.Content.ReadAsStringAsync();
Console.WriteLine(content);
JObject jObject = JObject.Parse(content);
var videoIds = jObject.SelectTokens("$...videoId");
foreach (var videoId in videoIds)
Console.WriteLine(videoId.Value<string>());