> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.tools.experimental.YoutubeSearchTool

<h2 id="autogen.tools.experimental.YoutubeSearchTool" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">YoutubeSearchTool</span>
</h2>

```python theme={null}
YoutubeSearchTool(*, youtube_api_key: str | None = None)
```

YoutubeSearchTool is a tool that uses the YouTube Data API to search for videos.<br />Initialize a YouTube search tool.<br />

<b>Parameters:</b>

| Name              | Description                                        |
| ----------------- | -------------------------------------------------- |
| `youtube_api_key` | **Type:** str \| None<br /><br />**Default:** None |
