Tools
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 | You need a YouTube channel's subscribers, views or description. | 1.65 credits per call |
youtube_get_video | You need a YouTube video's details or what is said in it. | 1.65 credits per call |
youtube_get_comments | You need what viewers say under a YouTube video. | 1.65 credits per comment |
youtube_search_videos | You need YouTube videos about a topic, product or brand. | 1.65 credits per call |
Get a YouTube channel#
Tool
Readsyoutube_get_channel- 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
{
"name": "youtube_get_channel",
"arguments": {
"url": "https://www.youtube.com/@mkbhd"
}
}Get a YouTube video#
Tool
Readsyoutube_get_video- 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
{
"name": "youtube_get_video",
"arguments": {
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
}Get YouTube comments#
Tool
Readsyoutube_get_comments- 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
{
"name": "youtube_get_comments",
"arguments": {
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"limit": 20
}
}Search YouTube#
Tool
Readsyoutube_search_videos- 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
{
"name": "youtube_search_videos",
"arguments": {
"query": "hubspot crm tutorial",
"country": "us"
}
}