CodeHelper.API.YouTube 1.0.1

dotnet add package CodeHelper.API.YouTube --version 1.0.1                
NuGet\Install-Package CodeHelper.API.YouTube -Version 1.0.1                
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="CodeHelper.API.YouTube" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeHelper.API.YouTube --version 1.0.1                
#r "nuget: CodeHelper.API.YouTube, 1.0.1"                
#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.
// Install CodeHelper.API.YouTube as a Cake Addin
#addin nuget:?package=CodeHelper.API.YouTube&version=1.0.1

// Install CodeHelper.API.YouTube as a Cake Tool
#tool nuget:?package=CodeHelper.API.YouTube&version=1.0.1                

CodeHelper.API.YouTube

CodeHelper.API.YouTube is a lightweight and simple .NET Wrapper to let you access the YouTube Search API Search for Videos, Channels, playlists, Movies, 3D Videos, ...

Question?

Version

  • 1.0.0 : GetVideoCategories + Search

Methods

  • GetVideoCategoriesList(string regionCode="", string language= "en_US", string categoriesIDS = "") : Returns a list of categories that can be associated with YouTube videos.
  • Search(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions searchOptions = null) : Search Videos, Playlist of channels
  • SearchVideos(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions searchOptions = null) : Search videos only
  • SearchChannels(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions? searchOptions = null) : Search channels only
  • SearchPlayLists(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions? searchOptions = null) : Search playlists only
  • SearchBroadcastEvents(string searchQuery, string eventType = EventyTypes.Completed, string searchOrder = SearchOrderTpes.Relevance, SearchOptions? searchOption = null) : Search BroadcastEvents only
  • SearchLiveEvents(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions? searchOption = null) : Returns a collection of broadcast events that are currentl are active/live
  • SearchUpcomingEvents(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions? searchOption = null) : Returns a collection of upcoming broadcast events
  • Search3DVideos(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions? searchOptions = null) : Search for 3d videos only
  • SearchCreativeCommonVideos(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions? searchOptions = null) : Returns a collection of Videos hat have a Creative Commons license.
  • SearchMovies(string searchQuery, string searchOrder = SearchOrderTpes.Relevance, SearchOptions? searchOptions = null) : Returns a collection of Movies

Use of Code

using CodeHelper.API.YouTube;

YouTubeHelper _helper = new() {APIKEY= "{YOURAPIKEY}" };
var _categories = await _helper._helper.GetVideoCategoriesList("US");

var _videos = await _helper.SearchVideos("API development");
var _channels = await _helper.SearchChannels("Yachting");
var _broadcastingNow = await _helper.SearchLiveEvents("foorball");
var _upcomingEvents = await _helper.SearchUpcomingEvents("F1");

Authentication

YouTube API uses ApiLey and you need to get your APIKEYS which you can find via My Apps page https://console.cloud.google.com/apis/credentials

Usage

  • Free Plan, but YouTube has quotas in place
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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
1.0.1 435 9/1/2022
1.0.0 397 9/1/2022