Skip to content

feat(tools): add YouTube Data API integration#5673

Open
GokulAIx wants to merge 1 commit intoaden-hive:mainfrom
GokulAIx:feature/youtube-integration
Open

feat(tools): add YouTube Data API integration#5673
GokulAIx wants to merge 1 commit intoaden-hive:mainfrom
GokulAIx:feature/youtube-integration

Conversation

@GokulAIx
Copy link

@GokulAIx GokulAIx commented Mar 3, 2026

Closes #5603

Implements YouTube Data API v3 integration with 6 tools for searching and retrieving video/channel information.

Changes

  • ✅ 6 YouTube API tools implemented (search videos, get video/channel details, list channel videos, get playlist items, search channels)
  • ✅ YOUTUBE_API_KEY credential spec with help URL
  • ✅ Comprehensive test coverage (18 unit tests, all passing)
  • ✅ Detailed README with setup instructions and examples
  • ✅ Real API integration testing verified
  • ✅ All lint checks passed (ruff)

Configuration
Users need to provide a YouTube Data API v3 key. Set YOUTUBE_API_KEY environment variable or use Hive's credential store. Get an API key at https://console.cloud.google.com/apis/credentials

Testing

cd tools
uv run pytest tests/tools/test_youtube_tool.py -v

All 18 tests pass ✅

- Implement 6 YouTube API tools (search videos, get video/channel details, list channel videos, get playlist items, search channels)
- Add YOUTUBE_API_KEY credential spec with help_url and description
- Register YouTube tool in tools/__init__.py
- Add comprehensive test coverage (18 tests) with mocking
- Add detailed README with setup instructions and examples
- Use httpx for HTTP requests to YouTube Data API v3
- Verified with real API integration testing

Implements aden-hive#5603
@GokulAIx
Copy link
Author

GokulAIx commented Mar 3, 2026

Hi @RichardTang-Aden,

Ready for review. I've implemented all 6 YouTube Data API tools with:

  • ✅ 18 passing tests with mocking
  • ✅ All lint checks passed
  • ✅ Real API integration verified
  • ✅ Detailed README included

Thanks for assigning this issue to me! Let me know if any changes are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Integration]:YouTube Data API

1 participant