Skip to content

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

License

Notifications You must be signed in to change notification settings

tesses50/YouTubeSearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.2.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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%