Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arttukuikka/y2sharp

Fastest Youtube downloader API for C# using Y2Mate.com
https://github.com/arttukuikka/y2sharp

api csharp dotnet nuget nuget-package y2mate youtbe youtube youtube-api youtube-downloader youtubedownload youtubedownloader

Last synced: about 2 months ago
JSON representation

Fastest Youtube downloader API for C# using Y2Mate.com

Awesome Lists containing this project

README

        

# 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](https://user-images.githubusercontent.com/75498768/145097969-f49278db-7412-4368-b462-43e11cc50c86.png)



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