Soenneker.YouTube.Client
4.0.2485
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.YouTube.Client --version 4.0.2485
NuGet\Install-Package Soenneker.YouTube.Client -Version 4.0.2485
<PackageReference Include="Soenneker.YouTube.Client" Version="4.0.2485" />
<PackageVersion Include="Soenneker.YouTube.Client" Version="4.0.2485" />
<PackageReference Include="Soenneker.YouTube.Client" />
paket add Soenneker.YouTube.Client --version 4.0.2485
#r "nuget: Soenneker.YouTube.Client, 4.0.2485"
#:package Soenneker.YouTube.Client@4.0.2485
#addin nuget:?package=Soenneker.YouTube.Client&version=4.0.2485
#tool nuget:?package=Soenneker.YouTube.Client&version=4.0.2485
Soenneker.YouTube.Client
Provides a lazily created YoutubeExplode.YoutubeClient for reading public YouTube metadata and media streams.
Install
dotnet add package Soenneker.YouTube.Client
Registration
using Soenneker.YouTube.Client.Registrars;
services.AddYouTubeClientUtilAsSingleton();
Scoped registration is also available:
services.AddYouTubeClientUtilAsScoped();
Each provider owns its cached HTTP client. Scoped providers use independent cache entries, so disposing one scope does not remove another scope's client.
Usage
public sealed class VideoReader
{
private readonly IYouTubeClientUtil _youtube;
public VideoReader(IYouTubeClientUtil youtube)
{
_youtube = youtube;
}
public async Task PrintTitle(string videoUrl, CancellationToken cancellationToken)
{
YoutubeClient client = await _youtube.Get(cancellationToken);
var video = await client.Videos.GetAsync(videoUrl, cancellationToken);
Console.WriteLine($"{video.Title} — {video.Author.ChannelTitle}");
}
}
The package does not use the official YouTube Data API and does not require an API key. Behavior follows YouTubeExplode and can be affected by changes to YouTube's public site.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Utils.HttpClientCache (>= 4.0.2128)
- YoutubeExplode (>= 6.6.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.2513 | 78 | 11/19/2026 |
| 11.0.2511 | 74 | 11/18/2026 |
| 11.0.2509 | 76 | 11/18/2026 |
| 11.0.2508 | 93 | 11/15/2026 |
| 11.0.2507 | 92 | 11/15/2026 |
| 11.0.2506 | 115 | 11/11/2026 |
| 11.0.2505 | 94 | 11/11/2026 |
| 11.0.2503 | 81 | 11/11/2026 |
| 11.0.2502 | 96 | 11/11/2026 |
| 11.0.2501 | 92 | 11/11/2026 |
| 11.0.2500 | 179 | 11/3/2026 |
| 11.0.2499 | 94 | 11/3/2026 |
| 11.0.2498 | 99 | 11/3/2026 |
| 11.0.2497 | 97 | 11/3/2026 |
| 11.0.2496 | 97 | 11/3/2026 |
| 11.0.2495 | 133 | 10/27/2026 |
| 11.0.2494 | 104 | 10/26/2026 |
| 11.0.2492 | 103 | 10/26/2026 |
| 11.0.2490 | 97 | 10/26/2026 |
| 4.0.2485 | 105 | 10/25/2026 |
Update dependency YoutubeExplode to 6.6.3 (#3044)