0.1.0 • Published 5 years ago

@isobel/youtube v0.1.0

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

name: YouTube

menu: Services

@isobel/youtube

Getting your API Key

  1. developers.google.com
  2. Create new project
  3. Enable YouTube API v3
  4. Create credentials -> API Key, webserver(node.js), public data

Please note that usage of this service will incur a point of usage from the Google Cloud API.

getChannelStats

Retrieves an object of information about the specified channel.

{
  "viewCount": "132273",
  "commentCount": "0",
  "subscriberCount": "238",
  "hiddenSubscriberCount": false,
  "videoCount": "13"
}

Expected env vars

  • YOUTUBE_API_KEY = Your API Key, generated by creating a new project at developers.google.com.
  • YOUTUBE_CHANNEL_ID = The ID of your YouTube channel. Retrievable from the URL of your channel page.