---
title: "YouTube - Tools | SnowAI"
description: "YouTube tools on SnowAI. Channels, videos with transcripts, comments and search. 4 tools, each with its parameters, its price and a call to copy."
url: "https://trysnow.ai/docs/tools/youtube"
---

# YouTube

> Channels, videos with transcripts, comments and search.

## Things to ask

Ask your agent in plain words. It picks the tool.

- Get the transcript of this YouTube video and summarize it in five bullets.
- How many subscribers does @mkbhd have, and how many videos?
- Find recent YouTube tutorials for HubSpot CRM and list the channels that made them.

## Tools in YouTube

4 tools. Prices are in credits; 1,000 credits are $1.

| Tool | Use it when | Cost |
| --- | --- | --- |
| [`youtube_get_channel`](https://trysnow.ai/docs/tools/youtube#youtube_get_channel) | You need a YouTube channel's subscribers, views or description. | 1.65 credits per call |
| [`youtube_get_video`](https://trysnow.ai/docs/tools/youtube#youtube_get_video) | You need a YouTube video's details or what is said in it. | 1.65 credits per call |
| [`youtube_get_comments`](https://trysnow.ai/docs/tools/youtube#youtube_get_comments) | You need what viewers say under a YouTube video. | 1.65 credits per comment |
| [`youtube_search_videos`](https://trysnow.ai/docs/tools/youtube#youtube_search_videos) | You need YouTube videos about a topic, product or brand. | 1.65 credits per call |

## Get a YouTube channel

Tool: `youtube_get_channel` (read-only)

- **Good for**: You need a YouTube channel's subscribers, views or description.
- **Not the tool for**: One video (use `youtube_get_video`).
- **What you get**: The channel: name, handle, subscribers, video count, total views, creation date and description.
- **Cost**: 1.65 credits per call. Cached 24 hours: a cache hit costs 0.825 credits.

**Parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | The YouTube channel URL, e.g. https://www.youtube.com/@mkbhd |

**Example: MCP**

```json
{
  "name": "youtube_get_channel",
  "arguments": {
    "url": "https://www.youtube.com/@mkbhd"
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/youtube_get_channel \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.youtube.com/@mkbhd"
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/youtube_get_channel", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://www.youtube.com/@mkbhd"
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/youtube_get_channel",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "url": "https://www.youtube.com/@mkbhd",
    },
)
print(response.json())
```

## Get a YouTube video

Tool: `youtube_get_video` (read-only)

- **Good for**: You need a YouTube video's details or what is said in it.
- **Not the tool for**: Its comments (use `youtube_get_comments`).
- **What you get**: The video: title, channel, date, views, likes, comments count, length, description, chapters, tags and the transcript.
- **Cost**: 1.65 credits per call. Cached 24 hours: a cache hit costs 0.825 credits.

**Parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | The YouTube video URL, e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |

**Example: MCP**

```json
{
  "name": "youtube_get_video",
  "arguments": {
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/youtube_get_video \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/youtube_get_video", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/youtube_get_video",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    },
)
print(response.json())
```

## Get YouTube comments

Tool: `youtube_get_comments` (read-only)

- **Good for**: You need what viewers say under a YouTube video.
- **Not the tool for**: The video itself (use `youtube_get_video`).
- **What you get**: Comments, each with text, author, likes, date and replies count.
- **Cost**: 1.65 credits per comment. Cached 1 hour: a cache hit costs 50% of the live price. Cached for your organization only.

**Parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | The YouTube video URL, e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |
| `limit` | `integer` | No | How many comments to return, at most 100. Default 20. |

**Example: MCP**

```json
{
  "name": "youtube_get_comments",
  "arguments": {
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "limit": 20
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/youtube_get_comments \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "limit": 20
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/youtube_get_comments", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "limit": 20
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/youtube_get_comments",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "limit": 20,
    },
)
print(response.json())
```

## Search YouTube

Tool: `youtube_search_videos` (read-only)

- **Good for**: You need YouTube videos about a topic, product or brand.
- **Not the tool for**: A channel's details (use `youtube_get_channel`).
- **What you get**: Videos with title, URL, channel and date, as Google lists them.
- **Cost**: 1.65 credits per call. Cached 6 hours: a cache hit costs 0.825 credits.

**Parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | `string` | Yes | What to search for. |
| `country` | `string` | No | Two-letter country code to search from, e.g. us, gb, de. Default: the brand's country, else us. |

**Example: MCP**

```json
{
  "name": "youtube_search_videos",
  "arguments": {
    "query": "hubspot crm tutorial",
    "country": "us"
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/youtube_search_videos \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "hubspot crm tutorial",
  "country": "us"
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/youtube_search_videos", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "query": "hubspot crm tutorial",
    "country": "us"
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/youtube_search_videos",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "query": "hubspot crm tutorial",
        "country": "us",
    },
)
print(response.json())
```

Every docs page as Markdown: https://trysnow.ai/llms.txt
