Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Latest commit

 

History

History
54 lines (29 loc) · 1.64 KB

README.md

File metadata and controls

54 lines (29 loc) · 1.64 KB

ARCHIVED!

Due to Y2Mate transferring to cloudflare, this app isn't able to anymore retrive the information needed without solving the cloudflare challenge. I Recommend transeferring to Youtube-dl based download solution like https://github.com/Bluegrams/YoutubeDLSharp . I also recomend the youtube url parser in my tool repo https://github.com/ArttuKuikka/Tools/blob/master/Program.cs

Y2Sharp

logo

Fastest Youtube downloader api for C# using Y2Mate.com

Created because i found all other youtube downloader apis were too slow for my needs so i decided to create my own using the y2mate.com website.

Sample code

await Y2Sharp.Youtube.Video.GetInfo("videoid !!change this to your video id!!");

var video = new Y2Sharp.Youtube.Video();

await video.DownloadAsync("Music.mp3");

other info:

video.Title

video.ThumbnailURL

video.Url

There is also a WPF demo of this project under the folder Y2SharpWPF

install the latest nuget from https://www.nuget.org/packages/Y2Sharp/ and you can use the command above.

explanations to all the parameters

DownloadAsync(path, type, quality);
  1. videoid is the part of youtube link after watch?v=
  2. path. where you want your downloaded file to be stored (by default force creates file so be carefull)
  3. type. either mp3 or mp4. determines if downloaded content is audio or video.
  4. quality. for music the quality should allways be 128 but videos can be downloaded at any of youtubes default resulutions.

If you are having problems please open a new issue or message me in discord @arttukk