Skip to content

.NET Azure Function to get YouTube Stats for all videos on a channel

Notifications You must be signed in to change notification settings

jamesmontemagno/function-youtubeondemandstats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube on Demand Stats

.NET Azure Function to get YouTube Stats for all videos on a channel

Setup

  1. Create a file in the solution called "local.settings.json"
  2. Fill it in with the following:
{
    "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "YOUTUBE_API_KEY": "",
    "YOUTUBE_APP_NAME": ""
  }
}
  1. Create a YouTube API Key via Data v3 in Google API Console https://developers.google.com/youtube/v3/getting-started
  2. Fill in your YOUTUBE_APP_NAME & YOUTUBE_API_KEY
  3. Run the function and the API will be available at http://localhost:7071/api/GetChannelVideoStats/{ids}
  4. Call the API where the {id} is your actual youtube channel id or multiple Ids.

License under MIT

About

.NET Azure Function to get YouTube Stats for all videos on a channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages