Black Friday · 30% off

Get 30% off

Python and JS packages

YouTube transcripts in LangChain

LangChain's built-in YouTube loader calls YouTube directly, which often fails with RequestBlocked or IpBlocked on cloud servers. These packages fetch transcripts through the GetYouTubeTranscript API instead, and add agent tools for transcripts and YouTube search.

Set it up

  1. 1

    Install the package

    Python:

    pip install langchain-getyoutubetranscript
  2. 2

    Or for LangChain.js

    JavaScript and TypeScript:

    npm install @tubeagentkit/langchain-getyoutubetranscript @langchain/core zod
  3. 3

    Get an API key

    Sign in at getyoutubetranscript.com and create a key on the developers page (100 free credits, no card). Keys start with sk_live_. Set it as an environment variable:

    export GETYOUTUBETRANSCRIPT_API_KEY=sk_live_...

Give an agent YouTube tools

from langchain.agents import create_agent
from langchain_getyoutubetranscript import GetYouTubeTranscriptSearchTool, GetYouTubeTranscriptTool

agent = create_agent(
    model="anthropic:claude-sonnet-4-5",
    tools=[GetYouTubeTranscriptSearchTool(), GetYouTubeTranscriptTool()],
)
agent.invoke(
    {"messages": [{"role": "user", "content": "Find a short talk on transformers and summarize it with timestamps."}]}
)

What you can build

  • RAG over a channel: load transcripts with GetYouTubeTranscriptLoader (one Document per video) and index them.
  • A research agent that searches YouTube, reads the top results and cites [m:ss] timestamps.
  • Timestamped chunks: with timestamps=True, metadata["segments"] holds {start, duration, text} per caption line.

Good to know

  • API errors (no captions, invalid video, out of credits) come back to the agent as a short message instead of raising.

Links

Questions about LangChain

How is this different from LangChain's YoutubeLoader?

YoutubeLoader scrapes YouTube from your own server, which YouTube often blocks on cloud hosts. This loader asks the GetYouTubeTranscript API, which fetches captions on its own servers.

Does the JS package have the same features?

Yes: youtubeTranscriptTool(), youtubeSearchTool() and GetYouTubeTranscriptLoader, with the same timestamps option.

What does it cost?

Each transcript, search or channel page uses one credit from your account, and failed requests are not charged. New accounts get 100 free credits, no card, and paid plans add more credits each month.

Use it in your other tools

All integrations

Listed on Tool IndexFeatured on aitoolfame.comFeatured on AI JetFeatured on AlternFeatured on the Postmake directoryFeatured on SemiLaunchFeatured on Toolso.AIAiToolGoFeatured on Aura++Featured on DeepLaunch.ioFeatured on Dofollow.ToolsFeatured on EasyDoFollowFeatured on EarlyHuntFeatured on Findly.toolsFeatured on FoundrListGood AI ToolsFeatured on IndieHuntFeatured on LaunchBuffFeatured on launched.toolsFeatured on Launch Llama ToolsFeatured on LemonLaunchLiftOff launch badgeMy Launch StashGetYouTubeTranscript on Nick LaunchesOpenHunts Club MemberFeatured on saasfame.comShinyLaunchFeatured on ShowMeBestAIFeatured on toolfame.comListed on Turbo0Featured on Twelve ToolsHuzzler Embed BadgeFeatured on CodeHypeGetYouTubeTranscript on Better LaunchDokeyAIFeatured on WayfindioFeatured on LaunchZoneFeatured on NoonlaunchFeatured on WhatsthebigdataSurfaced on CodeTrendyFeatured on ScrollLaunchFeatured on ufind.bestFeatured on ShipBoostProduct WingWe Like ToolsAppa ListAcid ToolsPower Up ToolsToshi ListAIGC 160Appsy ToolsHunt for ToolsBeam ToolsTool Find DirTool SignalSaaS Tools DirSoftware BoltProduct List DirStack DirectorySaaS FieldSaaS WheelSaaS RootsStartup BenchmarksUnite ListTrustinerBest Tool VaultSolver ToolsAsh ListSmart Kit HubAI X CollectionAI Tech ViralMillion Dot HomepageThat App ShowLaunch ScrollMy Start ToolsLatest AI UpdatesSuper AI BoomTools Under RadarThe Key ToolsTool JourneyTools List HQThe App ToolsThe Mega ToolsSource DirTool CosmosTop Trend ToolsTiny Tool HubTool PrismStartup AIdeasFeatured on WonderLaunchFeatured on ShipycornFeatured on ToolsClawListed on ProofStoriesFeatured on ToolListedLaunched on Launch StreakIndieMarkdownsFeatured on Neura MarketFeatured on BoworaFeatured on SaaSCityLaunchClashFeatured on Next LaunchFeatured on Launch VaultAI Toolz DirFeatured on SumoDirFeatured on ToolDirsShowMySitesHoToolsAiIndex.toolsGetYouTubeTranscript - Launched on QikLaunchFeatured on HiproductyFeatured on www.aitoolfinder.comSurfaced on SitePatentGetYouTubeTranscript on DebutPinFeatured on ListBulbListed on Aback LaunchFeatured on PeekLaunchGetYouTubeTranscript – Featured on PingsoldGetYouTubeTranscript: launched on Submit Your StartupListed on MydentifyFeatured on Software on the WebFeatured on So Productstarthub.zipListed on listpitch.comFeatured on 1ai.toolsGetYouTubeTranscript on ProductsFarmFeatured on NewTools.siteFeatured on The Launch FeedFeatured on IndexOf.AIListed on Ask AI For ItListed on The Launch DirectoryApp Hub ListStartup VesselSaaS AvenueToolkit IndexThe Core ToolsApp NetworkerSaaS BadgeSaaS ScannerTool IgniteTools NetworkListYourProjectFindGreatSitesWebProjectListLaunched on MarketingDBFeatured on ShowMeBestAIFeatured on SaaS CubesFeatured on NewTool.siteListed on ToolRainFeatured on AILaunchSpaceFeatured on DanielLaunchesFeatured on Web ReviewFeatured on ToolfioFeatured on IndieLaunchListed on AgentLockerFeatured on Supa LaunchFeatured on Find Top ToolsFeatured on Submit Your AI ToolFeatured on LaunchKiwiFeatured on AI Tool DiscoveryAI ToolzSniffed by PeerBearFeatured on ShipThingFeatured on Spot StartupsFeatured on Brick LaunchFeatured on NoroHuntGetYouTubeTranscript on What’s New TodayFeatured on StartupOGFeatured on ToolcurioFeatured on StartupOrbitFeatured on LaunchelionFeatured on AI Alt FinderDestacado en IA SelectaDestacado en Lanzamientos IADestacado en Alternativas IAVorgestellt auf KI Tools HeuteVorgestellt auf Beste KI ToolsVorgestellt auf KI AlternativenFeatured on The AI Tools IndexFeatured on SwipeToLaunchFeatured on Sky LaunchFeatured on Wall of ToolsFeatured on Tool ListFeatured on Fast LaunchGetYouTubeTranscript - Featured on LaunchitFeatured on DailyLaunchListed on AiToolsList.ToolsAgentWiseFeatured on Tooluck.orgFeatured on IndieShowcaseAInexfinderGetYouTubeTranscript on goodSaaSFeatured on SaaSDB101 AI ToolsFeatured on ArtificinLaunched on LaunchRankedGetYouTubeTranscript on LauncHypeListed on Find Indie AppsFeatured on ToolDisk.comFeatured on AgentWork.ToolsAiTop10 ToolsFeatured on BestskyToolsFeatured on DodoDirectoryFeatured on The One StartupWhat Is Ai ToolsListed on JustSimple Tools