Skip to main content

crewai-getyoutubetranscript

YouTube transcript tools for CrewAI agents, powered by the GetYouTubeTranscript API. Let your crew read any YouTube video's transcript (optionally with [m:ss] timestamps), search YouTube, and list a channel's videos.

The API fetches transcripts on its own servers, so it works from cloud servers without proxies, and without RequestBlocked / IpBlocked errors.

Install

pip install crewai-getyoutubetranscript

Get an API key at getyoutubetranscript.com/dashboard (free tier included):

export GETYOUTUBETRANSCRIPT_API_KEY=sk_live_...

Or pass api_key="..." to any tool.

Tools

Class What it does
GetYouTubeTranscriptTool Transcript of a video (URL or ID) with title and channel. timestamps=True gives [m:ss] lines.
YouTubeSearchTool Search YouTube for videos or channels. JSON with a continuation_token for the next page.
YouTubeChannelVideosTool A channel's videos (by @handle, URL or ID), newest first, page by page.

API errors (no captions, invalid video, out of credits) come back to the agent as Error: ... text instead of raising.

Example

from crewai import Agent, Crew, Task
from crewai_getyoutubetranscript import GetYouTubeTranscriptTool, YouTubeSearchTool

researcher = Agent(
    role="Video researcher",
    goal="Find the best YouTube talks on a topic and summarize them with timestamps",
    backstory="You turn long videos into short, cited notes.",
    tools=[YouTubeSearchTool(), GetYouTubeTranscriptTool()],
)

task = Task(
    description="Find a talk about vector databases and summarize its key points with [m:ss] timestamps.",
    expected_output="A bullet list of key points, each with a timestamp.",
    agent=researcher,
)

print(Crew(agents=[researcher], tasks=[task]).kickoff())

Use a tool directly:

print(GetYouTubeTranscriptTool().run(video="https://youtu.be/jNQXAC9IVRw", timestamps=True))

Pricing

Each transcript, search or channel page uses one credit from your GetYouTubeTranscript account. Failed requests are not charged.

Metadata

Release files for crewai-getyoutubetranscript 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-getyoutubetranscript 0.1.0
File Size Uploaded
crewai_getyoutubetranscript-0.1.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crewai-getyoutubetranscript 0.1.0
File Interpreter ABI Platform
crewai_getyoutubetranscript-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / crewai_getyoutubetranscript-0.1.0.tar.gz

Download URL crewai_getyoutubetranscript-0.1.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dcc266fec9e780d1a14da46a83a9b81834caffe6c2d1d7bc7bbadb39fb546f84
BLAKE2b-256 checksum
How to use checksums
96a74db73dbbf6b647c3a698e3f18bf98bd8ada790df279deba60cfcb5e58513
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / crewai_getyoutubetranscript-0.1.0-py3-none-any.whl

Download URL crewai_getyoutubetranscript-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64e64554d1914aa9d2f9d2c35ab96d6c4862057736854345d4df562faa13b534
BLAKE2b-256 checksum
How to use checksums
963f5a5ef2b9b9afbf974c6b994185a2d1ef6b5d113535a86c84c86676019f85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page