@robinpath/youtube
v0.3.0
Published
YouTube Data API v3 — videos, playlists, search. API key for public reads, OAuth 2.0 for writes. Uses the encrypted credential vault.
Readme
@robinpath/youtube
YouTube module for RobinPath.
Why use this module?
The youtube module lets you:
- searchVideos
- getVideo
- listMyVideos
- updateVideo
- deleteVideo
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
robinpath add @robinpath/youtubeQuick Start
1. Set up credentials
youtube.setCredentials "your-credentials"2. searchVideos
youtube.searchVideosAvailable Functions
| Function | Description |
|----------|-------------|
| youtube.setCredentials | Configure youtube credentials. |
| youtube.searchVideos | searchVideos |
| youtube.getVideo | getVideo |
| youtube.listMyVideos | listMyVideos |
| youtube.updateVideo | updateVideo |
| youtube.deleteVideo | deleteVideo |
| youtube.listChannels | listChannels |
| youtube.getChannelStats | getChannelStats |
| youtube.listPlaylists | listPlaylists |
| youtube.getPlaylist | getPlaylist |
| youtube.createPlaylist | createPlaylist |
| youtube.deletePlaylist | deletePlaylist |
| youtube.listPlaylistItems | listPlaylistItems |
| youtube.addVideoToPlaylist | addVideoToPlaylist |
| youtube.removeFromPlaylist | removeFromPlaylist |
| youtube.listComments | listComments |
| youtube.addComment | addComment |
| youtube.replyToComment | replyToComment |
| youtube.setThumbnail | setThumbnail |
| youtube.getVideoCategories | getVideoCategories |
| youtube.listSubscriptions | listSubscriptions |
Examples
searchVideos
youtube.searchVideosgetVideo
youtube.getVideolistMyVideos
youtube.listMyVideosIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/youtube";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
youtube.setCredentials "your-credentials"
youtube.searchVideos
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/facebook— Facebook module for complementary functionality@robinpath/instagram— Instagram module for complementary functionality@robinpath/twitter— Twitter/X module for complementary functionality@robinpath/linkedin— LinkedIn module for complementary functionality@robinpath/tiktok— TikTok module for complementary functionality
License
MIT
