Coder Social home page Coder Social logo

snakx / youtubeapisharp Goto Github PK

View Code? Open in Web Editor NEW
39.0 4.0 5.0 103 KB

A complete Private YouTube API for .NET (C#, VB.NET).

Home Page: https://play.google.com/store/apps/details?id=com.tspmd.app&hl=en

License: MIT License

C# 100.00%
youtube youtube-api youtube-dl youtube-downloader youtube-search android ios youtube-sdk csharp dotnet

youtubeapisharp's Introduction

YouTubeApiSharp

Bitcoin

Overview

A complete Private YouTube API for .NET (C#, VB.NET).

Target platforms

  • .NET Standard 2.0
  • WinRT
  • Windows
  • Linux
  • macOS
  • Windows Phone
  • Xamarin.Android
  • Xamarin.iOS

NuGet

YouTubeApiSharp at NuGet

Install-Package YouTubeApiSharp

License

The YouTubeApiSharp code is licensed under the MIT License.

Example code

Get the download URLs

// 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);

Download the 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);

Community

Telegram

youtubeapisharp's People

Contributors

thisistorsten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

youtubeapisharp's Issues

Youtube video's author name?

Is there any way to use this library to get the creator's name of a YouTube video? Preferably a unique ID like the ChannelName but Display Name would be better than nothing. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.