crewAIInc / crewAIInc/crewAI

[FEATURE] Add YouTubeSearchTool for YouTube Data API v3

Open
#7,222 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request vendor-pitch
Dominant language
Python
Stars
58.8k
Forks
8.5k
Avg merge
1d 15h
Merged PRs (30d)
109

Description

Feature Area

Agent capabilities

Is your feature request related to a an existing bug? Please link it here.
NA
Describe the solution you'd like

Add a new YouTubeSearchTool that:

  • Searches YouTube videos by keyword using YouTube Data API v3
  • Takes search_query (str) and max_results (int, default=5, max=50) as input
  • Returns structured data: title, video_id, url, description, published_at
  • Uses google-api-python-client for API integration
  • Handles API key via YOUTUBE_API_KEY environment variable
  • Includes proper error handling and type hints
Describe alternatives you've considered

The existing YouTubeChannelSearchTool and YouTubeVideoSearchTool only perform RAG searches within specific content. They cannot search YouTube by keyword. This new tool fills that gap.

Additional context

I have already implemented this tool in PR #7122 with:

  • Production-ready code (430+ lines)
  • Comprehensive error handling
  • Pydantic validation
  • Lazy imports for optional dependencies
  • Test coverage

The tool is ready for review and testing.

Willingness to Contribute

Yes, I'd be happy to submit a pull request

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing PR #7122, which contains the proposed YouTubeSearchTool implementation, then compare it with the existing YouTubeChannelSearchTool and YouTubeVideoSearchTool. Confirm that keyword search, input limits, structured results, YOUTUBE_API_KEY handling, validation, error handling, lazy imports, type hints, and test coverage meet the issue requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.