YurinKonstantin / YouTubeSearch

📺 YouTubeSearch is a library for .NET, written in C#, to search and extract the download link from YouTube videos and download them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YouTubeSearch YouTubeSearch

An complete private YouTube Api for .NET (C#, VB.NET).

YouTubeSearch is a library for .NET, written in C#, to search and extract the download link from YouTube videos and download them.

Target Branch Version Download link
Nuget master v2.0.1 NuGet

Target platforms

This library is using .NET Standard 2.0 and is therefore compatible with the following platforms (see Microsoft Docs).

  • .NET Framework 4.6.1+
  • .NET Core 2.0+
  • Mono 5.4+
  • Xamarin.iOS 10.14+
  • Xamarin.Mac 3.8+
  • Xamarin.Android 8.0+
  • UWP 10.0.16299+
  • Unity 2018.1+

Example code

>> Search <<

string querystring = "Usher";
int querypages = 1;

VideoSearch videos = new VideoSearch();
var items = await videos.GetVideos(querystring, querypages);

foreach (var item in items)
{
    Console.WriteLine("Title: " + item.getTitle());
    Console.WriteLine("Author: " + item.getAuthor());
    Console.WriteLine("Description: " + item.getDescription());
    Console.WriteLine("Duration: " + item.getDuration());
    Console.WriteLine("Url: " + item.getUrl());
    Console.WriteLine("Thumbnail: " + item.getThumbnail());
    Console.WriteLine("ViewCount: " + item.getViewCount());
    Console.WriteLine("");
}

>> Download <<

string link = "https://www.youtube.com/watch?v=daKz_b7LrsE";

IEnumerable<VideoInfo> videoInfos = DownloadUrlResolver.GetDownloadUrls(link, false);

DownloadVideo(videoInfos);

Supported Items

  • Title
  • Author
  • Description
  • Duration
  • Thumbnail
  • Url
  • View count

Torsten Klinger - (c) 2020 | Nuremberg, Germany.

About

📺 YouTubeSearch is a library for .NET, written in C#, to search and extract the download link from YouTube videos and download them.

License:GNU General Public License v2.0


Languages

Language:C# 100.0%