YouTubeApiSharp
v.0.0.5

Una API privada de YouTube completa para .NET (C#, VB.NET).
YouTubeapisharp en Nuget
Install-Package YouTubeApiSharp
El código YouTubeapishArp tiene licencia bajo la licencia MIT.
Obtenga las URL de descarga
// Our test youtube link
string link = "insert youtube link" ;
/*
* Get the available video formats.
* We'll work with them in the video and audio download examples.
*/
IEnumerable < VideoInfo > videoInfos = DownloadUrlResolver . GetDownloadUrls ( link ) ;Descarga el video
// Select the first .mp4 video with 360p resolution
VideoInfo video = videoInfos
. First ( info => info . VideoType == VideoType . Mp4 && info . Resolution == 360 ) ;
// Decrypt only if needed
if ( video . RequiresDecryption )
{
DownloadUrlResolver . DecryptDownloadUrl ( video ) ;
}
// Create the video downloader.
VideoDownloader dl = new VideoDownloader ( ) ;
dl . DownloadFile ( video . DownloadUrl , video . Title , true , Environment . GetFolderPath ( Environment . SpecialFolder . MyDocuments ) , video . VideoExtension ) ;