Skip to content

ToolsYouTube

Docs

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.

ToolUse it whenCost
youtube_get_channelYou need a YouTube channel's subscribers, views or description.1.65 credits per call
youtube_get_videoYou need a YouTube video's details or what is said in it.1.65 credits per call
youtube_get_commentsYou need what viewers say under a YouTube video.1.65 credits per comment
youtube_search_videosYou need YouTube videos about a topic, product or brand.1.65 credits per call

Get a YouTube channel#

Toolyoutube_get_channel
Reads
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

NameTypeRequiredDescription
urlstringYesThe 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#

Toolyoutube_get_video
Reads
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

NameTypeRequiredDescription
urlstringYesThe 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#

Toolyoutube_get_comments
Reads
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

NameTypeRequiredDescription
urlstringYesThe YouTube video URL, e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ
limitintegerNoHow 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#

Toolyoutube_search_videos
Reads
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

NameTypeRequiredDescription
querystringYesWhat to search for.
countrystringNoTwo-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"
  }
}