open-index/open-npm huggingface dataset:
npm package: @isobel/youtube
Description: --- name: YouTube menu: Services ---
Author: Nathan Simpson
Latest version: 0.1.0

---
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.

```json
{
  "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.