TranscriptAPI — YouTube transcripts (transcriptapi.io)

io.transcriptapi由 transcriptapi.io 發布官方發布者v0.1.1更新於 Oct 28, 2026

YouTube transcripts, search, channels and playlists for AI agents, by transcriptapi.io.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取媒體與設計

概覽

AI 產生的概覽

TranscriptAPI 讓助理取得 YouTube 影片字幕,並搜尋影片、頻道與播放清單,可透過遠端端點或本機 npm 套件使用。

可以做什麼
  • 取得影片字幕:支援含時間戳文字、純文字、SRT 或 VTT,可接受觀看連結、Shorts 連結或影片 ID
  • 依關鍵字搜尋 YouTube,回傳影片 ID、標題、頻道、長度與觀看次數
  • 列出頻道最新上傳,或在單一頻道內依關鍵字搜尋影片
  • 依播放清單順序列出影片,並提供可用於取得字幕的 ID
適用情境
適合需要閱讀或引用 YouTube 影片內容的情境,例如尋找某主題的影片,或瀏覽某個頻道、播放清單後再取得相關影片的字幕。
執行需求
需要 TranscriptAPI 金鑰(ta_...),以 bearer 形式放在 Authorization 標頭,或本機 npm 套件使用 TRANSCRIPTAPI_KEY 環境變數。可連線遠端端點,或在本機以 Node.js 執行 npm 套件。需能透過網路存取該服務取得 YouTube 內容。
安裝前請注意
API 金鑰屬於憑證,請勿寫入共用設定或日誌。字幕與搜尋結果經由第三方服務取得,送出的影片 ID、連結與查詢字詞會傳送至 transcriptapi.io。使用量可能受服務商方案限制。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 TranscriptAPI — YouTube transcripts (transcriptapi.io),將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.transcriptapi%2Fyoutube-transcript/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "transcriptapi-youtube-transcripts-transc": {
      "type": "http",
      "url": "https://api.transcriptapi.io/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

工具

5

get_youtube_transcript

Get YouTube transcript

Fetch the transcript (captions/subtitles) of a YouTube video as text. Accepts a watch URL, youtu.be link, Shorts link or bare 11-character video id. Returns the spoken text with timestamps grouped in ~30 s blocks by default; format 'text' is prose without timestamps, 'srt'/'vtt' are subtitle files, 'json' is raw segments with start/duration. Works with creator-uploaded and auto-generated captions. translate_to translates the transcript with AI (extra credits, scales with length) — omit unless asked.

輸入參數video必填formatlanguagetranslate_to

search_youtube

Search YouTube

Search YouTube for videos by keyword. Returns video ids, titles, channel names, durations and view counts. Use a returned id with get_youtube_transcript to read it.

輸入參數limitquery必填

get_channel_videos

List a channel's videos

List the most recent uploads of a YouTube channel, newest first. Accepts a channel id (UC…), a handle (@name) or a channel URL. Returns ids, titles, durations, view counts and publish dates.

輸入參數limitchannel必填

search_channel_videos

Search within a channel

Search for videos inside one YouTube channel by keyword — 'find the video where <channel> talks about <topic>'. Accepts a channel id, @handle or channel URL.

輸入參數limitquery必填channel必填

get_playlist_videos

List a playlist's videos

List the videos in a YouTube playlist, in playlist order. Accepts a playlist URL (anything with list=…) or the playlist id. Returns ids and titles for get_youtube_transcript.

輸入參數limitplaylist必填

版本歷史

1
  1. v0.1.1最新Oct 17, 2026

評分

已滿足適用檢查項的 65%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分

    請在註冊中心條目中發布圖示。

  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。