Introducing /interact. Scrape any page, then let your agent take over to click, type, and extract data for you. Try it now →

How to extract YouTube transcript in Claude Code

Claude Code runs in the terminal where context window management matters. Two Firecrawl integrations give it YouTube transcript extraction with different trade-offs:

MethodInstallOutputBest for
CLInpx -y firecrawl-cli@latest init --all --browserFile on diskLong videos — keeps token usage low
Claude pluginclaude plugin install firecrawl@claude-plugins-officialInline in chatQuick extractions with immediate follow-up

CLI (recommended) — installs Firecrawl as a skill that Claude Code, Codex, and Gemini CLI can all use. Run firecrawl scrape <YouTube URL> to write the transcript as a markdown file. Claude Code can then read, grep, or summarize the file without loading the full text into the context window. This matters for hour-long videos that would otherwise eat thousands of tokens.

Plugin — after installing, use /firecrawl:scrape <URL> to get the transcript inline, or /firecrawl:agent "Extract the full transcript from [URL]" for Firecrawl's AI agent to handle edge cases autonomously.

Both handle JavaScript rendering and page structure changes automatically. Get a free API key at firecrawl.dev.

Last updated: Apr 06, 2026
FOOTER
The easiest way to extract
data from the web
Backed by
Y Combinator
LinkedinGithubYouTube
SOC II · Type 2
AICPA
SOC 2
X (Twitter)
Discord