← 返回 Skills 市场
9ying66

clawbus-youtube-unified-api

作者 9Ying66 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
18
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clawbus-youtube-unified-api
功能描述
Use this skill when an agent needs to call YouTube Data API v3, YouTube Analytics API v2, or YouTube Reporting API v1 through the hosted proxy at mcp.imagine...
使用说明 (SKILL.md)

YouTube Unified API Skill

⚠️ Authentication — Check First

Before making any API call, verify the user has provided an Mybrandmetrics API-KEY.

If no key has been provided, say:

To use the YouTube API, I need your Mybrandmetrics API-KEY. You can find this key in your Mybrandmetrics dashboard. Please share it and I'll proceed with the request.

Once you have the key, pass it as:

X-API-KEY: \x3Cthe key>

Do not ask the user for a YouTube API key or OAuth token — the proxy handles authentication internally.


Hosted Proxy

Base URL https://mcp.imagineapp.co
Route prefix /youtube_api
Full example https://mcp.imagineapp.co/youtube_api/youtube/v3/videos

How to Call the API (Step-by-Step)

Step 1 — Find the right endpoint

For most tasks, read references/endpoints_summary.md first. It lists all 99 endpoints grouped by domain (Videos, Channels, Analytics, etc.) with their required and optional parameters inline. This is the fastest path — you can construct a request from this file alone without touching the discovery cache.

Use references/youtube_endpoint_catalog.json when you need the full parameter schema (types, enums, defaults) for a specific method.

Only fall back to references/discovery_cache/*.json if you need the full request/response body schemas.

Step 2 — Construct the request

  • GET endpoints: all parameters go in the query string
  • POST / PUT endpoints: use params for query params, requestBody for the JSON body (the request_schema_ref field in the catalog tells you the body schema name)
  • part parameter: only request the parts you actually need (see Part Strategy below)
  • Path parameters: substitute {id}, {channelId} etc. directly into the URL

Step 3 — Send to the proxy

curl -G "https://mcp.imagineapp.co/youtube_api/youtube/v3/videos" \
  -H "X-API-KEY: USER_KEY" \
  --data-urlencode "part=snippet,statistics" \
  --data-urlencode "id=VIDEO_ID"

Step 4 — Handle pagination

If the response contains nextPageToken, pass it back as pageToken on the next call to get the next page. Use maxResults (max 50) to control page size.


Part Parameter Strategy

Only request the part values you actually need — each adds quota cost:

part Contains
id Resource ID only (cheapest)
snippet Title, description, thumbnails, dates, tags
statistics Views, likes, comment counts
contentDetails Duration, definition, caption availability
status Privacy, upload status, license
localizations Translated titles / descriptions
player Embedded player HTML

Token / LLM Efficiency Tips

  • Read endpoints_summary.md once per task, not per API call — it contains everything needed to build most requests.
  • Do not load openapi_proxy.json unless you need OpenAPI-formatted tool schemas — it is large (242 KB) and the summary is faster to work from.
  • Do not load discovery_cache/*.json unless you need full request body schemas — these files are very large.
  • Batch related reads: if you need info on two endpoints in the same domain, read the relevant section of the summary in one pass rather than two separate lookups.
  • Infer part values from the user's request rather than asking a clarification question — if the user wants "video titles and view counts", that maps directly to part=snippet,statistics.

Quick Endpoint Index

Task Method Proxy path
Get video details GET /youtube_api/youtube/v3/videos
Search videos/channels GET /youtube_api/youtube/v3/search
Get channel info GET /youtube_api/youtube/v3/channels
List playlists GET /youtube_api/youtube/v3/playlists
List playlist items GET /youtube_api/youtube/v3/playlistItems
List comments GET /youtube_api/youtube/v3/commentThreads
Get subscriptions GET /youtube_api/youtube/v3/subscriptions
List live broadcasts GET /youtube_api/youtube/v3/liveBroadcasts
Upload and publish video (simple multipart) POST /youtube_api/upload/youtube/v3/videos
Upload video (resumable) POST /youtube_api/resumable/upload/youtube/v3/videos
Query analytics GET /youtube_api/v2/reports
List report types GET /youtube_api/v1/reportTypes
Create reporting job POST /youtube_api/v1/jobs

For the full list with parameters, see references/endpoints_summary.md.


Artifacts

File Purpose When to read
references/endpoints_summary.md All endpoints with params, grouped by domain Default — read this first
references/youtube_endpoint_catalog.json Full param schemas (type, enum, required) When you need precise param details
references/openapi_proxy.json OpenAPI 3.1 spec for tool/function calling Only when building tool schemas
references/discovery_cache/*.json Raw Google discovery documents Only for request/response body schemas

Regenerate Artifacts

When Google updates a discovery document, refresh all artifacts:

python scripts/sync_discovery.py

Environment overrides:

  • YOUTUBE_PROXY_BASE_URL — override the hosted base URL
  • YOUTUBE_PROXY_ROUTE_PREFIX — override the route prefix (default /youtube_api)
安全使用建议
Install only if you trust Mybrandmetrics/mcp.imagineapp.co with your YouTube access. Provide a key only when needed, rotate it if exposed, and require the agent to ask before any upload, publish, delete, update, moderation, reporting-job, or other account-changing action.
功能分析
Type: OpenClaw Skill Name: clawbus-youtube-unified-api Version: 1.0.0 The skill bundle provides a legitimate and well-documented interface for an agent to interact with YouTube Data, Analytics, and Reporting APIs via a hosted proxy at mcp.imagineapp.co. The included Python script (scripts/sync_discovery.py) is a maintenance utility that fetches official Google Discovery documents to regenerate reference artifacts and does not exhibit any malicious behavior or suspicious dependencies. The instructions in SKILL.md correctly guide the agent to request a necessary API key from the user for authentication without attempting to exfiltrate unrelated sensitive data.
能力标签
cryptocan-make-purchasesrequires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose matches a YouTube API integration, but the capability set includes high-impact write operations such as uploading/publishing videos, deleting videos, updating resources, and live-chat moderation, not just read-only lookup.
Instruction Scope
The instructions describe obtaining the key, constructing requests, and sending them to the proxy, but do not clearly require explicit user confirmation before destructive, public, or account-mutating YouTube actions.
Install Mechanism
There is no install spec and no evidence of automatic code execution. A maintenance script is referenced for regenerating artifacts, but it appears user-directed rather than auto-run.
Credentials
The skill requires a Mybrandmetrics API key sent to a hosted proxy that internally obtains YouTube OAuth access, while the registry metadata declares no primary credential. This is sensitive and should be reviewed before use.
Persistence & Privilege
No persistence or background worker behavior is shown, but the delegated API access can affect a YouTube account or channel if the provided key has broad privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawbus-youtube-unified-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawbus-youtube-unified-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release from clawbus.com
元数据
Slug clawbus-youtube-unified-api
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

clawbus-youtube-unified-api 是什么?

Use this skill when an agent needs to call YouTube Data API v3, YouTube Analytics API v2, or YouTube Reporting API v1 through the hosted proxy at mcp.imagine... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 18 次。

如何安装 clawbus-youtube-unified-api?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawbus-youtube-unified-api」即可一键安装,无需额外配置。

clawbus-youtube-unified-api 是免费的吗?

是的,clawbus-youtube-unified-api 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

clawbus-youtube-unified-api 支持哪些平台?

clawbus-youtube-unified-api 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 clawbus-youtube-unified-api?

由 9Ying66(@9ying66)开发并维护,当前版本 v1.0.0。

💬 留言讨论