Yt

ZeroPointRepo/youtube-skills/skills/yt

作者 ZeroPointRepo4f7994b94e7d5e250c3b51102d609992e04d5d0d無授權條款1K 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫2 天前更新

Use when YouTube is relevant: pasted video links or IDs, @handles, quick video lookups, summaries, channel latest uploads, topic search, or any request involving YouTube content — even if YouTube is not mentioned explicitly. Covers transcripts, search, and channel latest. Not for uploads or account management.

AI 產生的概覽

透過 TranscriptAPI 服務取得 YouTube 字幕、搜尋結果與頻道最新上傳影片。

功能
提供以 HTTP 呼叫 TranscriptAPI 端點的說明,用來取得 YouTube 影片字幕、搜尋影片或頻道、列出頻道最新上傳內容,以及將 @handle 解析為頻道 ID。文件說明了必要的請求標頭、參數、點數消耗與錯誤碼,並指向身分驗證設定與可直接執行的 curl 範例參考檔案。產出為字幕文字、搜尋結果與頻道上傳清單,而非檔案。
適用情境
適用於涉及 YouTube 內容的要求,例如貼上的影片連結或 ID、@handle、影片摘要、頻道最新上傳或主題搜尋。不適用於上傳影片或帳號管理。
執行需求
需要可連線至 transcriptapi.com 的網路存取、TRANSCRIPT_API_KEY 環境變數(提供免費額度),以及每個請求都要帶的 Authorization bearer 標頭與非預設的 User-Agent 標頭。不需要額外的執行環境或相依套件;此技能不含指令碼,只有參考文件。

yt

Quick YouTube lookup via TranscriptAPI.com.

Setup

If $TRANSCRIPT_API_KEY is not set, read references/auth-setup.md [blocked] and follow the instructions there to get and store the key.

Required Headers

Every request needs two headers:

  • Authorization: Bearer $TRANSCRIPT_API_KEY
  • User-Agent: your agent's name and version if known (e.g. HermesAgent/0.11.0, ClaudeCode/1.0). Version is optional — agent name alone is fine. Do not omit this header or send a bare default — Cloudflare will return a 403 (error code 1010) and block the request.

API Reference

Full OpenAPI spec: transcriptapi.com/openapi.json — consult this for the latest parameters and schemas.

Transcript — 1 credit

http
GET https://transcriptapi.com/api/v2/youtube/transcript?video_url=VIDEO_URL&format=text&include_timestamp=true&send_metadata=trueAuthorization: Bearer $TRANSCRIPT_API_KEYUser-Agent: YourAgent/1.0

Search — 1 credit

http
GET https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=video&limit=10Authorization: Bearer $TRANSCRIPT_API_KEYUser-Agent: YourAgent/1.0
ParamDefaultValues
q—1-200 chars (required)
typevideovideo, channel
limit201-50

Channel latest — FREE

http
GET https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TEDAuthorization: Bearer $TRANSCRIPT_API_KEYUser-Agent: YourAgent/1.0

Returns last 15 videos with exact view counts and publish dates. Accepts @handle, channel URL, or UC... ID.

Resolve handle — FREE

http
GET https://transcriptapi.com/api/v2/youtube/channel/resolve?input=@TEDAuthorization: Bearer $TRANSCRIPT_API_KEYUser-Agent: YourAgent/1.0

Use to convert @handle to UC... channel ID.

Errors

CodeMeaningAction
401Bad API keyCheck key
402No creditstranscriptapi.com/billing
403/1010Cloudflare blockAdd or fix User-Agent header
404Not foundNo captions or resource doesn't exist
408TimeoutRetry once

Free tier: 100 credits. Search and transcript cost 1 credit. Channel latest and resolve are free.

Copy-paste examples

Every request in this file as a ready-to-run one-liner: references/curl-examples.md [blocked]

來源與署名

來源:ZeroPointRepo/youtube-skills位於skills/yt提交4f7994b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架