From 47326715f63b12d8f6912c77b3319150d6edeff3 Mon Sep 17 00:00:00 2001 From: Danilo Pejakovic Date: Thu, 9 Jan 2025 08:15:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=98=20docs:=20Add=20YouTube=20API=20in?= =?UTF-8?q?tegration=20details=20to=20tools=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/docs/configuration/tools/index.mdx | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pages/docs/configuration/tools/index.mdx b/pages/docs/configuration/tools/index.mdx index de4347ca5..7fc551ad2 100644 --- a/pages/docs/configuration/tools/index.mdx +++ b/pages/docs/configuration/tools/index.mdx @@ -41,3 +41,32 @@ description: Tools and Plugins setup instructions - You can get an API key here: **[https://serpapi.com/dashboard](https://serpapi.com/dashboard)** - For free tier, you are limited to 100 queries/month - With google, you are limited to 100/day for free, which is a better deal, and any after may cost you a few pennies + +### YouTube +- Requires a YouTube API key from the [Google Cloud Console](https://console.cloud.google.com/) + - Create a new project or select an existing one + - Enable the YouTube Data API v3 + - Create credentials (API key) + - Set the API key in your environment variables as `YOUTUBE_API_KEY` + +The YouTube tool provides four main operations: + +1. **Search Videos** + - Search for YouTube videos with customizable results + - Example: Search for "cooking pasta" videos, limit to 5 results + +2. **Get Video Info** + - Retrieve detailed information about a specific video + - Includes title, description, views, likes, and comment count + +3. **Get Comments** + - Fetch comments from a specific video + - Customizable number of comments (1-50, default: 10) + - Returns author, text, and like count + +4. **Get Transcript** + - Retrieve video transcripts + - Attempts to fetch English transcript first + - Finally tries any available language if neither is found + +