Soenneker.YouTube.Client
4.0.2467
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.YouTube.Client --version 4.0.2467
NuGet\Install-Package Soenneker.YouTube.Client -Version 4.0.2467
<PackageReference Include="Soenneker.YouTube.Client" Version="4.0.2467" />
<PackageVersion Include="Soenneker.YouTube.Client" Version="4.0.2467" />
<PackageReference Include="Soenneker.YouTube.Client" />
paket add Soenneker.YouTube.Client --version 4.0.2467
#r "nuget: Soenneker.YouTube.Client, 4.0.2467"
#:package Soenneker.YouTube.Client@4.0.2467
#addin nuget:?package=Soenneker.YouTube.Client&version=4.0.2467
#tool nuget:?package=Soenneker.YouTube.Client&version=4.0.2467
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.2108)
- YoutubeExplode (>= 6.6.2)
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 |
|---|---|---|
| 4.0.2484 | 64 | 10/15/2026 |
| 4.0.2483 | 71 | 10/15/2026 |
| 4.0.2482 | 72 | 10/14/2026 |
| 4.0.2481 | 68 | 10/14/2026 |
| 4.0.2478 | 75 | 10/14/2026 |
| 4.0.2471 | 67 | 10/13/2026 |
| 4.0.2470 | 83 | 10/13/2026 |
| 4.0.2467 | 84 | 10/12/2026 |
| 4.0.2466 | 89 | 10/12/2026 |
| 4.0.2465 | 85 | 10/11/2026 |
| 4.0.2464 | 91 | 10/11/2026 |
| 4.0.2463 | 82 | 10/11/2026 |
| 4.0.2462 | 91 | 10/11/2026 |
| 4.0.2461 | 145 | 9/30/2026 |
| 4.0.2460 | 102 | 9/29/2026 |
| 4.0.2459 | 103 | 9/29/2026 |
| 4.0.2458 | 105 | 9/25/2026 |
| 4.0.2457 | 102 | 9/25/2026 |
| 4.0.2456 | 102 | 9/25/2026 |
| 4.0.2455 | 103 | 9/25/2026 |
Update dependency Soenneker.Utils.HttpClientCache to 4.0.2108 (#3025)