YouTube Data API without a Google key or daily quota
Channel statistics, video details, Shorts, comments, transcripts, search results, playlists and community posts as clean JSON, from one REST API. 21 endpoints, callable from any language, n8n, Make, Zapier or an AI agent.
What you get
No Google quota
No Google Cloud project, no API key from Google and no 10,000-unit daily limit.
Exact numbers
Exact view and like counts and real dates where YouTube has them; rounded fields say so.
Cached for speed
Answers are cached for a time that suits the data. Send X-CACHEBYPASS: 1 for a fresh one.
Pagination built in
Every list returns a continuation token; pass it back as token for the next page.
Familiar shape
Paths, parameters and field names follow the popular yt-api, so switching needs no code changes.
Clear errors
error, code and msg in every error body. Errors on our side cost nothing.
Who it is for
Analytics dashboards
Track channels, uploads, views and likes over time.
Influencer and competitor research
Compare channels, find creators, follow their new videos.
SEO and content research
Search with filters, read search suggestions, study what ranks.
AI apps and agents
Give an LLM live YouTube data: transcripts, comments and metadata.
How to use it
- Open the API on RapidAPI and subscribe to a plan. The free plan is enough to try it.
- Copy your X-RapidAPI-Key from the Endpoints tab.
- Call any endpoint with the key and the host header, as in the examples below.
Channels
| Endpoint | Required | Returns |
|---|---|---|
GET /channel/about | id or forUsername | Details: subscribers, total views and videos, country, join date, links |
GET /channel/home | id or forUsername | The shelves of the channel's Home tab |
GET /channel/videos | id or forUsername | The channel's videos, 30 a page (also POST) |
GET /channel/shorts | id or forUsername | The channel's Shorts, 48 a page (also POST) |
GET /channel/liveStreams | id or forUsername | Past, live and upcoming streams (also POST) |
GET /channel/playlists | id or forUsername | The playlists the channel made |
GET /channel/community | id or forUsername | The channel's community posts |
Videos and Shorts
| Endpoint | Required | Returns |
|---|---|---|
GET /video/info | id | Views, likes, description, captions list, storyboards; extend=1 adds chapters and more |
GET /shorts/info | id | One Short's details; extend=1 adds length, keywords and more |
GET /related | id | Related videos |
Transcripts and comments
| Endpoint | Required | Returns |
|---|---|---|
GET /get_transcript | id | Timed caption segments in any language the video has (lang) |
GET /comments | id | A video's comments, 20 a page, top or newest first |
GET /post/comments | id | A community post's comments |
Search
| Endpoint | Required | Returns |
|---|---|---|
GET /search | query | Videos, Shorts, channels, playlists and movies, with filters |
GET /suggest_queries | query | YouTube's search-box suggestions |
Playlists, posts and links
| Endpoint | Required | Returns |
|---|---|---|
GET /playlist | id | A playlist and its videos, 100 a page |
GET /post/info | id | One community post |
GET /resolve | url | What a YouTube link points at: channel, video, Short or playlist |
Call it from code
curl -G "https://yt-channel-video-data-api.p.rapidapi.com/channel/about" \
--data-urlencode "id=@MrBeast" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: yt-channel-video-data-api.p.rapidapi.com"import requests
HOST = "yt-channel-video-data-api.p.rapidapi.com"
HEADERS = {"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY", "X-RapidAPI-Host": HOST}
# Every video of a channel, page by page
token, videos = None, []
while True:
params = {"token": token} if token else {"id": "@MrBeast", "sort_by": "newest"}
page = requests.get(f"https://{HOST}/channel/videos", params=params, headers=HEADERS).json()
videos += page["data"]
token = page.get("continuation")
if not token:
breakconst res = await fetch(
'https://yt-channel-video-data-api.p.rapidapi.com/video/info?id=0e3GPea1Tyg',
{ headers: {
'X-RapidAPI-Key': 'YOUR_RAPIDAPI_KEY',
'X-RapidAPI-Host': 'yt-channel-video-data-api.p.rapidapi.com',
} }
);
const video = await res.json();Input
| Parameter | Type | What it does |
|---|---|---|
id | string | An id, a link or, for channels, an @handle: UCX6OQ3DkcsbYNE6H8uQQuVA, @MrBeast, https://youtu.be/0e3GPea1Tyg |
forUsername | string | A handle or legacy user name, when you have no id |
token | string | The continuation of the previous page, for the next page |
sort_by | string | Channel lists: newest (default), popular, oldest. Comments: top (default), newest. Search: relevance (default), popularity |
type, duration, upload_date, features | string | Search filters, e.g. type=video, duration=under3min, upload_date=week, features=HD,subtitles |
lang, geo | string | Language of YouTube's texts (default en) and country (default US). On /get_transcript, lang picks the caption language |
extend | 1 | On /video/info and /shorts/info: more fields |
Output
Each endpoint returns JSON. GET /channel/about?id=@MrBeast (shortened):
| Field | What it is |
|---|---|
channelId, title, channelHandle | The channel |
subscriberCount, subscriberCountText | Subscribers as a number and as YouTube writes it |
viewCount, videosCount | Total views and videos |
country, joinedDate | Country and join date (YYYY-MM-DD) |
description, keywords, links | About text, keywords and the channel's links |
avatar, banner | Images in several sizes |
isVerified, isFamilySafe | Flags |
Errors look like {"error": "BAD_REQUEST", "code": "400", "msg": "Invalid id"}.
{
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"title": "MrBeast",
"channelHandle": "@MrBeast",
"isVerified": true,
"subscriberCountText": "528M",
"subscriberCount": 528000000,
"videosCount": "1017",
"viewCount": "148391757036",
"country": "United States",
"joinedDate": "2012-02-19",
"description": "SUBSCRIBE FOR A COOKIE! ...",
"links": [
{
"title": "Twitter",
"url": "https://twitter.com/MrBeast"
}
],
"avatar": [
{
"url": "https://yt3.googleusercontent.com/...",
"width": 72,
"height": 72
}
]
}Use it with AI agents
Through RapidAPI you get 21 tools, one per endpoint, such as Video_Details, Channel_Videos, Search and Comments. Pick your assistant:
claude mcp add --transport http ttech-data https://mcp.rapidapi.com \
--header "x-api-host: yt-channel-video-data-api.p.rapidapi.com" \
--header "x-api-key: YOUR_RAPIDAPI_KEY"Claude Desktop: add to claude_desktop_config.json (Settings > Developer > Edit Config; needs Node.js), then restart.
{
"mcpServers": {
"ttech-data": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.rapidapi.com",
"--header",
"x-api-host:yt-channel-video-data-api.p.rapidapi.com",
"--header",
"x-api-key:YOUR_RAPIDAPI_KEY"
]
}
}
}Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"ttech-data": {
"url": "https://mcp.rapidapi.com",
"headers": {
"x-api-host": "yt-channel-video-data-api.p.rapidapi.com",
"x-api-key": "YOUR_RAPIDAPI_KEY"
}
}
}
}Add to ~/.codex/config.toml and set RAPIDAPI_KEY in your environment.
[mcp_servers.ttech_data]
url = "https://mcp.rapidapi.com"
http_headers = { "x-api-host" = "yt-channel-video-data-api.p.rapidapi.com" }
env_http_headers = { "x-api-key" = "RAPIDAPI_KEY" }RapidAPI's MCP server needs two request headers (x-api-host and x-api-key). If your ChatGPT plan's custom MCP screen has no place for them, copy the brief below into ChatGPT and let it write the code for you.
Add to .vscode/mcp.json:
{
"servers": {
"ttech-data": {
"type": "http",
"url": "https://mcp.rapidapi.com",
"headers": {
"x-api-host": "yt-channel-video-data-api.p.rapidapi.com",
"x-api-key": "YOUR_RAPIDAPI_KEY"
}
}
}
}Brief for any LLM
Endpoints, inputs, outputs, examples and MCP setup in one Markdown text. Paste it into ChatGPT, Claude or Gemini and ask for the code you need. Also at /youtube-data-api.md.
Good to know
- Only public YouTube data. Private and deleted videos answer an error.
- Numbers are parsed only from English answers (lang unset or en); other languages return the text fields.
- A transcript counts as 2 requests; extend=1 and X-CACHEBYPASS: 1 add one each.
- Errors from our side (5xx) are not billed.
FAQ
Do I need a YouTube or Google API key?
No. You only need a RapidAPI key.
Is this the official YouTube API?
No. It returns the same public data people see on YouTube, as JSON. It is not affiliated with YouTube or Google.
I use yt-api. Do I need to change my code?
Usually only the host and key: paths, parameters and field names follow yt-api on purpose.
Which languages can call it?
Any language that can make an HTTPS request: Python, JavaScript, PHP, Go, and no-code tools such as n8n, Make and Zapier.