Soenneker.YouTube.Client 11.0.2495

Prefix Reserved
dotnet add package Soenneker.YouTube.Client --version 11.0.2495
                    
NuGet\Install-Package Soenneker.YouTube.Client -Version 11.0.2495
                    
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="11.0.2495" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.YouTube.Client" Version="11.0.2495" />
                    
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 11.0.2495
                    
#r "nuget: Soenneker.YouTube.Client, 11.0.2495"
                    
#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@11.0.2495
                    
#: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=11.0.2495
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.YouTube.Client&version=11.0.2495
                    
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 net11.0 is compatible. 
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
11.0.2495 0 10/27/2026
11.0.2494 39 10/26/2026
11.0.2492 48 10/26/2026
11.0.2490 42 10/26/2026
11.0.2489 43 10/26/2026
11.0.2488 47 10/26/2026
11.0.2487 46 10/26/2026
11.0.2486 55 10/26/2026
4.0.2485 57 10/25/2026
4.0.2484 105 10/15/2026
4.0.2483 90 10/15/2026
4.0.2482 86 10/14/2026
4.0.2481 87 10/14/2026
4.0.2478 102 10/14/2026
4.0.2471 85 10/13/2026
4.0.2470 100 10/13/2026
4.0.2467 93 10/12/2026
4.0.2466 99 10/12/2026
4.0.2465 96 10/11/2026
4.0.2464 100 10/11/2026
Loading failed

Remove redundant framework conditions