Transcript

zeropointrepo/youtube-skills/clawhub/transcript

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

Use when the spoken content of a YouTube video is needed — even if not explicitly requested: pasted video links or IDs, requests to summarize, quote, transcribe, translate, fact-check, or extract anything from a video. Also use for research or learning when a video is the source. Not for uploads or account management.

AI 產生的概覽

透過 TranscriptAPI.com 服務取得 YouTube 影片逐字稿,用於摘要、引用、翻譯或研究。

功能
此技能指示代理使用影片網址或 11 字元影片 ID 呼叫 TranscriptAPI.com 的 YouTube 逐字稿端點。回傳內容可為帶時間戳記的文字,或包含開始時間與時長的 JSON 分段,並可選擇附帶標題、作者等影片中繼資料。文件也說明必要的請求標頭、請求參數與錯誤處理方式。
適用情境
當需要 YouTube 影片的口語內容時使用,例如摘要、引用、轉錄、翻譯或查核影片內容,或以影片作為研究或學習來源時。不適用於影片上傳或帳號管理。
執行需求
需要連線至 transcriptapi.com 的網路存取,以及 TRANSCRIPT_API_KEY 環境變數(以 sk_ 開頭的金鑰,來自免費帳號)。請求必須帶有 Authorization bearer 標頭與 User-Agent 標頭。不需要其他執行環境或相依套件;此技能未附指令碼,僅有一份驗證設定參考文件。

Transcript

Fetch video transcripts 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.

GET /api/v2/youtube/transcript

bash
curl -s "https://transcriptapi.com/api/v2/youtube/transcript\?video_url=VIDEO_URL&format=text&include_timestamp=true&send_metadata=true" \  -H "Authorization: Bearer $TRANSCRIPT_API_KEY" \  -H "User-Agent: YourAgent/1.0"
ParamRequiredDefaultValues
video_urlyes—YouTube URL or 11-char video ID
formatnojsonjson, text
include_timestampnotruetrue, false
send_metadatanofalsetrue, false

Accepts: full URLs (youtube.com/watch?v=ID), short URLs (youtu.be/ID), shorts (youtube.com/shorts/ID), or bare video IDs.

Default: Always use format=text&include_timestamp=true&send_metadata=true unless user specifies otherwise.

Response (format=json):

json
{  "video_id": "dQw4w9WgXcQ",  "language": "en",  "transcript": [    { "text": "We're no strangers to love", "start": 18.0, "duration": 3.5 },    { "text": "You know the rules and so do I", "start": 21.5, "duration": 2.8 }  ],  "metadata": {    "title": "Rick Astley - Never Gonna Give You Up",    "author_name": "Rick Astley",    "author_url": "https://www.youtube.com/@RickAstley",    "thumbnail_url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg"  }}

Response (format=text):

json
{  "video_id": "dQw4w9WgXcQ",  "language": "en",  "transcript": "[00:00:18] We're no strangers to love\n[00:00:21] You know the rules...",  "metadata": {...}}

Errors

CodeMeaningAction
401Bad API keyCheck key or re-setup
402No creditsTop up at transcriptapi.com/billing
403/1010Cloudflare blockAdd or fix User-Agent header
404No transcriptVideo may not have captions enabled
408TimeoutRetry once after 2s
429Rate limitedWait and retry

Tips

  • For long videos, summarize key points first, offer full transcript on request.
  • Use format=json when you need precise timestamps for quoting specific moments.
  • Use include_timestamp=false for clean text suitable for translation or analysis.
  • 1 credit per successful request. Errors don't cost credits.
  • Free tier: 100 credits, 300 req/min.

來源與署名

來源:zeropointrepo/youtube-skills位於clawhub/transcript提交4f7994b

授權條款: 無授權條款

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

檢舉或申請下架