Mayerch1.YoutubeSearch 2.2.0

Install-Package Mayerch1.YoutubeSearch -Version 2.2.0
dotnet add package Mayerch1.YoutubeSearch --version 2.2.0
<PackageReference Include="Mayerch1.YoutubeSearch" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mayerch1.YoutubeSearch --version 2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mayerch1.YoutubeSearch, 2.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Mayerch1.YoutubeSearch as a Cake Addin
#addin nuget:?package=Mayerch1.YoutubeSearch&version=2.2.0

// Install Mayerch1.YoutubeSearch as a Cake Tool
#tool nuget:?package=Mayerch1.YoutubeSearch&version=2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

YoutubeSearch

YoutubeSearch is a library for .NET, written in C#, to show search query results from YouTube.

Target platforms

This library is using .NET Standard 2.0 and is therefore compatible with the following platforms (see Microsoft Docs).

  • .NET Framework 4.6.1+
  • .NET Core 2.0+
  • Mono 5.4+
  • Xamarin.iOS 10.14+
  • Xamarin.Mac 3.8+
  • Xamarin.Android 8.0+
  • UWP 10.0.16299+
  • Unity 2018.1+ <br/>

NuGet

Install-Package YoutubeSearch.dll

License

YoutubeSearch is licensed under the GPL license.

Example code

// Keyword
string querystring = "test";

// Number of result pages
int querypages = 1;

// Offset value for querypages
int querypagesOffset = 2;

var items = new VideoSearch();

//change the encoding, using Encoding.Default if not set
items.encoding = Encoding.UTF8; 

foreach (var item in items.SearchQuery(querystring, querypages))
{
    Console.WriteLine(item.Title);
}

//For asynchronous execution use:
var result = await items.SearchQueryAsync(querystring, querypages);

//This will query from page 3 to 4
var offsetResult = items.SearchQuery(querystring, querypages, querypagesOffset);

Supported Items

  • Title
  • Author
  • Description
  • Duration
  • Thumbnail
  • Video Url
  • View Count

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
2.2.0 89 6/8/2021
2.1.2 84 6/8/2021
2.1.1 108 5/31/2021
2.1.0 115 5/31/2021
2.0.0 435 12/13/2019

Allow supression of recoverable parsing exceptions. Surpressed exception will lead to missing search items