YouTube Data CLI for Openclaw

A comprehensive command-line interface for the YouTube Data API v3 covering 20 resources and over 50 commands for complete channel and video automation.

bin-huang
v1.0.0
Apr 8, 2026
0
640
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install youtube-data-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install youtube-data-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is YouTube Data CLI?

The YouTube Data CLI is a powerful integration for Openclaw Skills that provides a unified interface for the entire YouTube Data API v3 ecosystem. It enables developers and AI agents to interact with 20 distinct YouTube resources, including search, channels, videos, playlists, and memberships. By abstracting the complexities of raw HTTP requests into 52 intuitive commands, it serves as a critical bridge for automating media workflows.

This skill is designed for high-performance automation, supporting both API Key authentication for public data retrieval and OAuth 2.0 for private data and write operations. Its output is structured as clean, parseable JSON, making it an ideal tool for Openclaw Skills users who need to build automated content pipelines, moderation bots, or data analytics dashboards.

YouTube Data CLI Use Cases

  • Automating the upload of videos, custom thumbnails, and multi-language captions.
  • Managing channel community engagement by listing, posting, and moderating comment threads.
  • Organizing content libraries through automated playlist creation and video reordering.
  • Monitoring channel performance and activities for market research or competitor analysis.
  • Managing channel memberships and membership levels for creator-focused applications.

How YouTube Data CLI Works

  1. The user installs the CLI tool and provides credentials via environment variables, a JSON file, or command flags.
  2. The AI agent triggers a specific command (e.g., search, videos-insert) based on the user's request within the Openclaw Skills framework.
  3. The CLI handles the authentication handshake using either an API Key or OAuth 2.0 tokens.
  4. The tool sends a structured request to the YouTube Data API v3 endpoints.
  5. The API response is captured and returned as a JSON object, which can be formatted as pretty-print for humans or compact for machine processing.

YouTube Data CLI Setup

To begin using this with Openclaw Skills, install the package globally via npm:

npm install -g youtube-data-cli

Verify the installation by checking the help menu:

youtube-data-cli --help

For private operations, configure your OAuth credentials in ~/.config/youtube-data-cli/credentials.json or export them as environment variables:

export YOUTUBE_CLIENT_ID='your_id'
export YOUTUBE_CLIENT_SECRET='your_secret'
export YOUTUBE_REFRESH_TOKEN='your_token'

YouTube Data CLI Data Schema & Taxonomy

The skill returns structured JSON data corresponding to the YouTube Data API v3 resource schemas. Key data structures include:

Resource Type Description Key Metadata Fields
Video Core video metadata id, snippet, status, contentDetails, statistics
Channel Channel profile info id, snippet, brandingSettings, statistics
Search Result Query match data kind, etag, id (videoId/channelId/playlistId)
Comment User interaction id, snippet (textDisplay, authorDisplayName)
Playlist Curated collections id, snippet, status, contentDetails

YouTube Data CLI Advanced Features

  • Support for 52 distinct commands covering the entirety of the YouTube Data API v3 surface area.
  • Granular control over video metadata including privacy settings, category IDs, and tags.
  • Advanced caption management with support for uploading and downloading .srt files.
  • Full support for channel branding automation, including banner uploads and watermark setting.
  • Robust error handling with JSON-formatted error messages and standard exit codes for reliable automation within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*