Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/arttukuikka/y2sharp
- Owner: ArttuKuikka
- Archived: true
- Created: 2021-11-13T20:06:28.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T16:18:46.000Z (about 1 year ago)
- Last Synced: 2024-09-25T18:43:58.764Z (about 2 months ago)
- Topics: api, csharp, dotnet, nuget, nuget-package, y2mate, youtbe, youtube, youtube-api, youtube-downloader, youtubedownload, youtubedownloader
- Language: C#
- Homepage:
- Size: 73.2 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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.Titlevideo.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