Y2mateApi is an unofficial api for y2mate to analyze, convert and download videos/audio from youtube.
- 📦 NuGet:
dotnet add package Y2mateApi
Y2mateApi exposes its functionality through a single entry point — the Y2mateClient
class.
Create an instance of this class and use the provided operations to send requests.
using Y2mateApi;
var y2mate = new Y2mateClient();
// Your youtube url (or id only)
var url = "https://www.youtube.com/watch?v=kRrUDyz6VJ8";
var links = await y2mate.AnalyzeAsync(url);
var selectedLink = links[0];
var downloadUrl = await y2mate.ConvertAsync(selectedLink.Id, url);
// Download from the url...