Soenneker.YouTube.Client 4.0.2423

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.YouTube.Client --version 4.0.2423
                    
NuGet\Install-Package Soenneker.YouTube.Client -Version 4.0.2423
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.YouTube.Client" Version="4.0.2423" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.YouTube.Client" Version="4.0.2423" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.YouTube.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.YouTube.Client --version 4.0.2423
                    
#r "nuget: Soenneker.YouTube.Client, 4.0.2423"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.YouTube.Client@4.0.2423
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.YouTube.Client&version=4.0.2423
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.YouTube.Client&version=4.0.2423
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2425 0 9/1/2026
4.0.2424 0 8/31/2026
4.0.2423 24 8/31/2026
4.0.2422 33 8/31/2026
4.0.2421 39 8/31/2026
4.0.2420 33 8/31/2026
4.0.2419 35 8/31/2026
4.0.2418 36 8/30/2026
4.0.2417 45 8/30/2026
4.0.2416 40 8/30/2026
4.0.2415 42 8/30/2026
4.0.2414 42 8/30/2026
4.0.2413 40 8/29/2026
4.0.2412 44 8/29/2026
4.0.2411 43 8/29/2026
4.0.2410 75 8/26/2026
4.0.2409 76 8/26/2026
4.0.2408 74 8/26/2026
4.0.2407 78 8/25/2026
4.0.2406 92 8/22/2026
Loading failed

Updated NuGet packages