# YT Channel & Video Data API (TTech API)

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.

Page: https://ttechapi.com/youtube-data-api
RapidAPI: https://rapidapi.com/TTech-qcYDalkrf/api/yt-channel-video-data-api (host `yt-channel-video-data-api.p.rapidapi.com`)

## What 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.

## Key facts

- 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.

## RapidAPI REST API

Base URL `https://yt-channel-video-data-api.p.rapidapi.com`. Send headers `x-rapidapi-key: YOUR_RAPIDAPI_KEY` and `x-rapidapi-host: yt-channel-video-data-api.p.rapidapi.com`.

Endpoints:

- `GET /channel/about` (required: id or forUsername): Details: subscribers, total views and videos, country, join date, links
- `GET /channel/home` (required: id or forUsername): The shelves of the channel's Home tab
- `GET /channel/videos` (required: id or forUsername): The channel's videos, 30 a page (also POST)
- `GET /channel/shorts` (required: id or forUsername): The channel's Shorts, 48 a page (also POST)
- `GET /channel/liveStreams` (required: id or forUsername): Past, live and upcoming streams (also POST)
- `GET /channel/playlists` (required: id or forUsername): The playlists the channel made
- `GET /channel/community` (required: id or forUsername): The channel's community posts
- `GET /video/info` (required: id): Views, likes, description, captions list, storyboards; extend=1 adds chapters and more
- `GET /shorts/info` (required: id): One Short's details; extend=1 adds length, keywords and more
- `GET /related` (required: id): Related videos
- `GET /get_transcript` (required: id): Timed caption segments in any language the video has (lang)
- `GET /comments` (required: id): A video's comments, 20 a page, top or newest first
- `GET /post/comments` (required: id): A community post's comments
- `GET /search` (required: query): Videos, Shorts, channels, playlists and movies, with filters
- `GET /suggest_queries` (required: query): YouTube's search-box suggestions
- `GET /playlist` (required: id): A playlist and its videos, 100 a page
- `GET /post/info` (required: id): One community post
- `GET /resolve` (required: url): What a YouTube link points at: channel, video, Short or playlist

Parameters:

- `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

Example:

```bash
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"
```

Output: Each endpoint returns JSON. GET /channel/about?id=@MrBeast (shortened):

- `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

```json
{
  "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
    }
  ]
}
```

Errors look like {"error": "BAD_REQUEST", "code": "400", "msg": "Invalid id"}.

## Use as an MCP server

- RapidAPI MCP: `https://mcp.rapidapi.com` with headers `x-api-host: yt-channel-video-data-api.p.rapidapi.com` and `x-api-key: YOUR_RAPIDAPI_KEY`.

## Limits

- 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.

## Notes for the assistant

- Never put a real key in code you show; read it from an environment variable.
- Failed items are not charged; check each item's status or error field.
- Only public YouTube data. Not affiliated with YouTube or Google.
- Support: support@ttechapi.com, Telegram @ttech_support_official.
