YouTube data API for AI agents, transcripts included
Video details, transcripts, comments, channel feeds, search and trending, as data your agent reads in Claude, ChatGPT or Codex. Transcripts of anyone's public videos, which Google's own API won't give you, and search past its 100 calls a day: no Google Cloud project, no key and no quota units, just your plan's request rate and credits.
Read-only. These tools read public YouTube videos, transcripts, comments and channels. They never post, comment, like, follow or send a message, and they never sign in to an account of yours: there is no login, cookie or browser extension of yours anywhere in the call.
updated Nov 3, 2026
Copy the setup prompt.
Your agent does the rest.
Connect the superagnt MCP server at https://mcp.superagnt.com/mcp/youtube to this agent for me (I'll sign in through my browser). The setup guide for each kind of agent is at https://www.superagnt.com/install?facet=youtube» a new workspace starts with the YouTube tools already on. On an existing workspace, your agent switches them on during setup.
Google's YouTube Data API or this one?
Google's API gives each project 10,000 quota units a day, with search in its own bucket of 100 calls a day since June 2026, and its captions download needs permission to edit the video: an agent can't officially fetch someone else's transcript. This source reads any public video's transcript and searches without a daily bucket. Google's API stays the better route for your own channel and for writes.
| superagnt | YouTube Data API v3 (Google) | |
|---|---|---|
| Other people's transcripts | Yes: 50 of 50 videos in our test | No: captions.download needs edit rights on the video (200 units) |
| Search | No daily cap; your plan's requests a minute | 100 search calls a day, in their own bucket |
| Video, channel and comment reads | $0.0025 a call | 1 unit each, within 10,000 units a day |
| More capacity | A bigger plan or more credit | A compliance audit through Google's quota extension form |
| What you need | One key, over MCP or HTTP | A Google Cloud project and an API key, or OAuth for private data |
| Uploads, playlists, comment replies | Not offered: read-only | Yes |
What can your agent read from YouTube?
A video's caption track with timestamps, so an agent reads what was said instead of guessing from the title.
Title, description, keywords, views, duration, publish date, category and channel for a video id.
Comment threads with continuation paging, for reading audience reaction at volume.
Channel details, uploads, Shorts and in-channel search, with continuation tokens for deep history.
Keyword search with language, country and upload window, plus trending by country and section.
A channel's public business email by URL or channel id, for outreach workflows.
data_youtube_channelsaction: channel_id · details · videos · shorts · search · email_by_id · email_by_urldata_youtube_discoveraction: search · trending · audio_details · audio_videosdata_youtube_videosaction: details · data · comments · subtitles · recommendations
per-operation names23older servers list these
data_youtube_channel_search_continuationdata_youtube_channel_searchdata_youtube_channel_shortsdata_youtube_channel_videos_continuationdata_youtube_channel_detailsdata_youtube_youtube_channel_iddata_youtube_channel_videosdata_youtube_post_channel_videosdata_youtube_audio_videos_continuationdata_youtube_audio_videosdata_youtube_audio_detailsdata_youtube_video_recommendation_continuationdata_youtube_video_recommendationdata_youtube_video_commentsdata_youtube_video_subtitlesdata_youtube_video_detailsdata_youtube_video_datadata_youtube_youtube_search_continuationdata_youtube_youtube_searchdata_youtube_trending_videosdata_youtube_video_comments_continuationdata_youtube_get_channel_email_by_urldata_youtube_get_channel_email_by_idWhat does a real call return?
A run we recorded on superagnt, with the result trimmed to fit. Nothing on it is invented: the date, the wall time and the cost are the run's own.
asked What does Tech With Tim's "Learn 99% Of Claude Code in One Video" cover? Read the transcript.
- → call 1
data_youtube_videos{ "action": "details", "video_id": "3TwbE7gv6qo" }← resulttrimmedtitle: Learn 99% Of Claude Code in One Video channel_name: Tech With Tim views: 201264 duration: 2901 created_at: 2026-10-24T07:00:00-07:00 category: Education - → call 2
data_youtube_videos{ "action": "subtitles", "video_id": "3TwbE7gv6qo", "response_limit": 8 }← resulttrimmed| start | text | | 0.066 | This video is sponsored by anthropic. | | 2.27 | Now most people install cloud | | 3.73 | code, type a prompt, and never touch the settings that actually make it good. | | 7.87 | Now, I've been using Claude every day for the past year, and the difference | 8 of 924 subtitles on this page
the same call over httpcurl · python
curl "https://api.superagnt.com/v1/data/youtube/video/subtitles?video_id=3TwbE7gv6qo" \
-H "Authorization: Bearer $SUPERAGNT_API_KEY"import os, requests
r = requests.get(
"https://api.superagnt.com/v1/data/youtube/video/subtitles",
params={"video_id": "3TwbE7gv6qo"},
headers={"Authorization": f"Bearer {os.environ['SUPERAGNT_API_KEY']}"},
)
print(r.json())» Auto-generated captions spell names as heard ("cloud" for Claude), so an agent should read them as speech, not as quotes.
Can my agent get any video's transcript from a cloud server without being blocked?
Yes. Scripts that fetch transcripts straight from YouTube often get blocked as bots when they run on a cloud server, and Google's own API only returns captions for videos you can edit. We pulled transcripts for 50 public videos found by 10 searches, from our servers, and all 50 came back with timestamps, at $0.0025 a video.
sample · 50 videos from 10 searches on business topics, Nov 3, 2026
How far do 10,000 quota units go for an agent?
Further than they used to for reads, and no further for search. Since June 2026 search has its own bucket of 100 calls a day at 1 unit each, and video, channel and comment-thread reads cost 1 unit each from the 10,000 units, which reset at midnight Pacific. An agent that searches more than 100 times a day, or reads transcripts of videos it doesn't own, needs another route.
checked Nov 3, 2026 · Quota calculator (YouTube Data API)
What do people use it for?
A research agent that watches
The agent searches a topic, reads the transcripts of the top results, and summarises what was claimed, with timestamps and a link back to each video.
Creator outreach list
From a search the agent collects channels above a subscriber floor, looks up each public business email, and writes a qualified list to the workspace database.
Launch reaction digest
After a video goes live, a schedule reads new comments every hour, groups them by theme and posts the top questions and complaints to Slack.
What does it cost?
Every call in this source costs the same.
About 1,200 calls.
Only a call that returns data is billed: a miss, a refusal or an upstream failure costs nothing. One credit balance covers this source and every other one, so there is no per-source subscription and no upstream account of yours to keep alive. After the trial, plans are Starter $49 a month ($20 of data credit included), Growth $149 a month ($90) and Scale $399 a month ($300). Requests per minute: Starter 60, Growth 300 and Scale 600.
What do people ask before they wire it up?
01How do I set up the YouTube Data API for an AI agent?
Officially: create a Google Cloud project, enable the YouTube Data API v3, make an API key for public data (or OAuth for private data), and give the agent a tool that adds the key to each request. With this source you connect your client to superagnt once and the YouTube tools are there, with no Google project or key.
02Is the YouTube API free, and can I pay for more quota?
Google gives each project 10,000 units a day, plus 100 search calls in their own bucket, and you can't buy more: extra quota needs a compliance audit. Here there are no units: each call costs $0.0025 from your credits, and your plan sets the requests a minute.
03Is it free for commercial use, and what happens when I exceed the quota?
Google's API terms set the rules for commercial use, and once a project spends its daily units, calls fail until midnight Pacific. Here a call fails only when your credits run out, and a failed call costs nothing.
04Can my agent get a video's transcript without getting IP-blocked from a cloud server?
Yes. Google's API returns captions only for videos you can edit, and direct scraping from a cloud server is often blocked as a bot. Our test pulled transcripts for 50 of 50 public videos from our servers with the subtitles call.
05Why does my custom GPT action not send my YouTube API key?
GPT actions send an API key in a header, while YouTube examples put it in the key query parameter. Google APIs also accept the key in an X-Goog-Api-Key header, so set a custom header with that name. Or connect superagnt as the GPT's action and send one key as a Bearer header.
06Why does YouTube reject our agent's requests as a bot?
Requests from cloud servers to YouTube's web pages look like automation, so transcript scrapers running there often get blocked. Calls through this source don't come from your server: our 50-video transcript run from a cloud host returned every transcript.