@isobel/youtube
v0.1.0
Published
--- name: YouTube menu: Services ---
Downloads
3
Readme
name: YouTube menu: Services
@isobel/youtube
Getting your API Key
- developers.google.com
- Create new project
- Enable YouTube API v3
- 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.