YouTube data API for AI agents: videos, transcripts, comments and channels

A YouTube data API your agent calls over MCP: search videos, read a video's stats, pull its transcript and comments, and profile a channel with its videos, paid per call with no Google Cloud project or daily quota.

The problem

Your agent needs YouTube data: what a channel publishes, how a video performs, what it says and what viewers reply. Setting up a cloud project, a key and quota for each agent is overhead, and the transcript is usually the part you want most.

Steps

6
  1. Search YouTube videos by keyword$0.0011 per request (one page, about 20 videos)

    Search videos by keyword: title, URL, views, likes, comments, channel and subscriber count per video. YouTube · youtube.search.videos

  2. Get a YouTube video's details and stats$0.0011 per request (one page)

    Read one video's stats from its URL: views, likes, comments, duration, description and channel. YouTube · youtube.video.detail

  3. Get a YouTube video's captions$0.002068 per request (1 credit)

    Get a video's transcript with its language and the other caption languages available. YouTube · youtube.video.captions

  4. List a YouTube video's comments$0.002068 per request (1 credit)

    List a video's comments with author, likes, reply count and whether the channel owner wrote it. YouTube · youtube.video.comments

  5. Get a YouTube channel's profile and stats$0.00132 per request

    Profile a channel from its handle or URL: subscribers, video count, total views and links. YouTube · youtube.channel.profile

  6. List a YouTube channel's videos$0.00143 per video

    List a channel's videos with views, likes, comments, duration and publish date. YouTube · youtube.channel.videos

Example cost for 100 rows

  • Search YouTube videos by keyword$0.11

    100 x $0.0011 per request (one page, about 20 videos)

  • Get a YouTube video's details and stats$0.11

    100 x $0.0011 per request (one page)

  • Get a YouTube video's captions$0.2068

    100 x $0.002068 per request (1 credit)

  • List a YouTube video's comments$0.2068

    100 x $0.002068 per request (1 credit)

  • Get a YouTube channel's profile and stats$0.132

    100 x $0.00132 per request

  • List a YouTube channel's videos$0.143

    100 x $0.00143 per video

Total for 100 rows through every step$0.9086

Paid from your prepaid balance at the quoted customer price. No top-up fee. Pay per call; each call’s price is shown before it runs. Each run is quoted before it starts.

Try it

Paste this into your agent

Start free, no card needed. Your agent runs each step and reports the cost.

Use Ahel. Get the profile of the channel youtube.com/@<handle> with youtube.channel.profile and its videos with youtube.channel.videos. For the five most viewed, pull the transcript with youtube.video.captions and the comments with youtube.video.comments. Quote the total before you run anything, then give me a table with title, views, likes, comments and publish date, a two-line summary of each transcript, and tell me what it cost.

What a result looks like

Video rows from youtube.search.videos, youtube.video.detail and youtube.channel.videos share one shape: video_id, title, video_url, type, view_count, like_count, comment_count, published_at, duration, description, channel_name, channel_url, channel_id and subscriber_count. youtube.video.captions returns video_id, title, language, is_auto_generated, the full transcript and available_languages. youtube.video.comments rows carry comment_id, text, author, like_count, reply_count, published_time_text, parent_comment_id and author_is_channel_owner. Every row keeps its provider and when it was collected.

Public data only

These tasks read public videos, captions, comments and channel pages. Private and unlisted videos, members-only content and anything behind a login are not available. A video without captions returns no transcript, and an auto-generated transcript is marked as such.

What it costs

When we checked on 2 Nov 2026, youtube.search.videos and youtube.video.detail cost $0.0011 per request, youtube.channel.profile $0.00132 per request, youtube.channel.videos $0.00143 per video, and youtube.video.captions and youtube.video.comments $0.002068 per request. Shown prices include Ahel's margin, several providers sit behind most tasks, and every run is quoted before it starts.

More YouTube tasks

The YouTube platform also has a channel's shorts and community posts, trending videos by country, related videos, a video's stream URLs, comment replies, channel search and search suggestions. Describe the job and your agent finds the task and its price.

Set up Ahel in your agent

  • Claude Code

    Run once, then approve the sign-in: claude mcp add --transport http --scope user ahel 'https://mcp.ahel.ai'

  • Codex

    Run once, then approve the sign-in: codex mcp add ahel --url 'https://mcp.ahel.ai' && codex mcp login ahel

  • Claude.ai

    Add a custom connector with the server address https://mcp.ahel.ai and approve the sign-in.