Skip to main content

Social Media API

YouTube API

Pull video metadata, channel stats, comment threads, search, shorts, and subtitles — without the YouTube Data API's 10,000-unit daily quota.

  • No quota units — pay per request instead of rationing 10,000/day
  • Public subtitle & caption extraction for any video, no owner authorization
  • Full comment threads, channel uploads, search, and shorts in structured JSON

$0.05 free credit on sign-up · no credit card · from $0.001/request

One request, structured JSON

terminal
1curl -X GET "https://api.tikhub.io/api/v1/youtube/web/get_video_info?video_id=dQw4w9WgXcQ" \
2 -H "Authorization: Bearer YOUR_API_KEY"
response.json
1{
2 "code": 200,
3 "data": {
4 "video_id": "dQw4w9WgXcQ",
5 "title": "Sample Video Title",
6 "length_seconds": 213,
7 "view_count": 1640000000,
8 "like_count": 18200000,
9 "publish_date": "2009-10-25",
10 "channel": {
11 "id": "UCuAXFkgsw1L7xaCfnd5JJOw",
12 "name": "Channel Name",
13 "subscriber_count": 4120000
14 },
15 "keywords": ["sample", "video"],
16 "has_captions": true
17 }
18}

Get your API key at user.tikhub.io/dashboard/api — or follow the getting-started guide.

FastPay-as-you-goScales to millions99.9% uptimeWell-documentedNo app review

What's in the YouTube API

TikHub's YouTube API gives you two series for public YouTube data: video details and statistics, channel profiles and uploads, full comment threads, search and Shorts, community posts, video download / stream URLs, and subtitle & transcript extraction. No daily quota units — just pay-as-you-go requests at $0.001 each.

YouTube Web API (V1)

Video details & statsChannel profiles & uploadsComments & repliesSearch & ShortsSubtitles & transcriptsTrending videos

YouTube Web V2 API

Video detailsVideo download / stream URLsSubtitles & captionsComments & repliesSearch & ShortsCommunity posts

No quota units, and real transcript access

Google's Data API rations 10,000 quota units a day — a single search burns 100 of them — and its captions endpoint requires you to own the video. TikHub has no quota system: you pay $0.001 per request, scale instantly with RPS plans, and pull subtitles or AI-generated captions for any public video. It's the difference between rationing and building.

TikHubYouTube Data API v3
No daily quota units
Subtitles for any public video
Full comment threads without quota cost
Instant scale-up (no audit process)

TikHub vs the YouTube Data API v3

YouTube Data API v3TikHub YouTube API
Quota10,000 units/day default — one search costs 100 unitsNo quota system — pay per request
Scaling upQuota-extension audit processInstant: RPS plans from $5/month
SubtitlesCaptions endpoint requires video-owner authorizationPublic subtitle extraction for any video
PricingFree within quota$0.001/request, volume discounts to $0.0005

Official-API details are approximate as of mid-2026 and may change — verify against the YouTube Data API v3 documentation. TikHub provides read-only access to publicly available data.

YouTube API endpoints

A reference of the most-used YouTube endpoints. Browse the full set in the API reference or the documentation.

YouTube Web API (V1)

The primary series — videos, channels, comments, search, Shorts, subtitles, and trending. Several endpoints offer V2/V3 variants; newer versions return cleaner, more complete data, so prefer the highest version available for an operation.

Use caseEndpointDocs
Get video info/api/v1/youtube/web/get_video_info
Get video info (V2)/api/v1/youtube/web/get_video_info_v2
Get video info (V3)/api/v1/youtube/web/get_video_info_v3
Get video subtitles / transcript/api/v1/youtube/web/get_video_subtitles

YouTube V2 API (downloads, captions, community)

Use V2 for video download / stream info (get_video_streams_v2 is the recommended way to obtain download info), structured captions, search suggestions, and channel community posts.

Use caseEndpointDocs
Get video details / metadata/api/v1/youtube/web_v2/get_video_info
Get video details (V2, structured)/api/v1/youtube/web_v2/get_video_info_v2
Get video stream info/api/v1/youtube/web_v2/get_video_streams
Get video stream info (V2) — download info/api/v1/youtube/web_v2/get_video_streams_v2

Tips & troubleshooting

Hard-won operational notes for working with YouTube data in production.

Getting transcripts and captions

Use get_video_subtitles (Web) or get_video_captions_v2 (Web V2) to pull timed text for any public video — no video-owner authorization, unlike the official Data API's captions endpoint. A video only returns a transcript if captions exist for it (creator-uploaded or YouTube auto-generated). The response includes language; request a specific language where multiple tracks exist, or take the default.

Resolve channel IDs before fetching

Channels are referenced by a stable channel ID (UC…), but users share handle URLs (youtube.com/@name) and custom URLs. Use get_channel_id to resolve any channel URL to its canonical ID first, then call channel-info and channel-videos with that ID. Storing the channel ID rather than the handle keeps your records stable when a creator changes their handle.

Video downloads & the California-IP rule

To get a video's download / stream info, use the V2 endpoint get_video_streams_v2 — that's the recommended way to obtain download info. Important: the download URLs returned by all OTHER YouTube endpoints can only be accessed, viewed, and downloaded from a California residential IP, so route those through a California residential proxy if you're elsewhere. The get_video_streams_v2 endpoint above is the exception and is the recommended path.

snippet
1GET /api/v1/youtube/web_v2/get_video_streams_v2?video_id=dQw4w9WgXcQ
2// docs: https://docs.tikhub.io/419083091e0
3// download URLs from OTHER endpoints need a California residential IP

Cleaner responses with need_format=true

Some YouTube endpoints support a need_format parameter. Set need_format=true to receive cleaned, structured response data that's much easier to parse than the raw YouTube payload — worth defaulting to it whenever an endpoint accepts it.

No quota — but mind pagination

Unlike the official Data API, there are no quota units to budget — you pay per request. Search and comment endpoints are paginated; follow the returned continuation token to gather more results, and expect each page to return a bounded number of items rather than everything at once. For large collections, cache results: a published video's metadata and transcript don't change.

Do I need a Google Cloud project or API key?

No. Create a TikHub account, generate an API key, and call REST endpoints — no Google Cloud project, no OAuth, and no quota setup.

How does this compare to the official YouTube Data API quota?

Google's Data API allocates 10,000 quota units/day by default (a search costs 100 units). TikHub has no quota system — you pay $0.001 per request with automatic volume discounts, and rate limits start at 10 RPS.

Can I get video transcripts or subtitles?

Yes. The subtitle and caption endpoints return timed text for any public video — no video-owner authorization required, unlike the official captions API.

What are the rate limits?

The default rate limit is 10 requests per second. RPS plans scale it up — 20 RPS at $5/month through 100 RPS at $55/month — and enterprise accounts get custom limits above 100 RPS.

How much does the YouTube API cost?

Pay-as-you-go from $0.001 per request, with automatic daily volume discounts down to $0.0005 at 30,000+ requests/day. New accounts get $0.05 free credit (~50 requests) — no credit card required.

YouTube API: a no-quota alternative to the YouTube Data API in 2026

TikHub's YouTube API gives developers and researchers a quota-free way to read public YouTube data — video metadata, channel stats, comments, search, shorts, and subtitles — through plain REST calls. Here's how it works, how it compares to the official Data API, where its limits are, and which option fits which job.

How does the YouTube API work?

What is the YouTube API?

The TikHub YouTube API is a RESTful interface that returns structured JSON for public YouTube content — videos, channels, comments, search results, shorts, and subtitles. You request data by video ID, channel ID, or URL and get clean, typed responses without managing a Google Cloud project, OAuth, or quota.

Its defining feature is what it removes: the YouTube Data API's 10,000-unit daily quota, where a single search costs 100 units. TikHub has no quota system — you pay per request — and it can extract subtitles for any public video, which the official captions endpoint won't do unless you own the video.

How do you access and use it?

Create a TikHub account, generate an API key, and make an HTTP GET request with the key in the Authorization header. Pass a video ID, a channel ID, or a public YouTube URL, and you get JSON back. Helper endpoints resolve channel URLs and handles to canonical channel IDs so you can start from whatever link you have.

What programming languages are supported?

Any HTTP-capable language — Python, JavaScript/TypeScript, Go, Java, PHP, and more — plus no-code tools. Python is the common choice for transcript and data pipelines, and an official SDK exists, but the API itself is language-agnostic; the request shape is identical across stacks.

What are the benefits of using the YouTube API?

How does it compare to the official YouTube Data API?

The official Data API is free but rationed: 10,000 quota units per day by default, with searches and some reads costing 100 units each, so a serious workload exhausts the budget fast and scaling means a quota-extension audit. Its captions endpoint also requires you to own the video.

TikHub trades quota for a simple per-request price. There's no daily ceiling to ration, you scale instantly with RPS plans, and you can pull subtitles for any public video. For comment mining, transcript extraction, and large-scale channel analysis, that's the difference between constantly hitting a wall and just building.

What are the time-saving advantages?

You skip Google Cloud project setup, OAuth, and quota management entirely. More importantly, you stop architecting around a quota budget — no more batching, caching, and back-off logic whose only purpose is to avoid running out of units mid-day. Requests return in well under a second, so collecting a channel's full upload history or paginating thousands of comments is a straightforward loop.

Who benefits — AI teams, researchers, or developers?

AI teams use subtitle extraction to turn video into training and RAG corpora, and to power summarization. Researchers mine comments for sentiment and topic analysis at a scale the official quota makes painful. Developers building media tools, dashboards, or monitoring products get channel and video data without owning the Google Cloud integration or its limits.

What are the limitations of the YouTube API?

What data is and isn't available?

The API returns public data — video metadata and stats, channel profiles and uploads, public comments, search results, shorts, and available subtitles. It does not expose private or unlisted content you don't have access to, analytics that require channel ownership, or the ability to upload, comment, or modify anything. It is read-only.

Do all videos have transcripts?

No. A transcript is only available if captions exist for the video — either creator-uploaded or YouTube's auto-generated track. TikHub retrieves the existing captions; it doesn't transcribe audio from scratch, so a video with no captions of any kind won't return a transcript. Most popular videos have at least auto-generated captions in their primary language.

Are there rate limits?

Yes — a 10-RPS default, upgradeable with RPS plans, in place of the official quota system. Paginated endpoints (search, comments, channel videos) use continuation tokens and return bounded pages; keep following the token for more. Since published video metadata and transcripts are immutable, caching aggressively is both safe and cheap.

What are common use cases for the YouTube API?

How is it used for transcripts and AI?

Subtitle extraction is the headline AI use case: pull a video's transcript, then summarize it, embed it for retrieval-augmented generation, or add it to a training corpus. Because there's no quota, you can process whole channels or topic searches in one run — feeding video summarization tools, searchable transcript databases, and fine-tuning datasets.

How is it used for comment and audience research?

Comment threads are a rich, public sentiment source. Researchers and marketers pull comments across a creator's catalog or a search query to detect themes, measure reception, and track how sentiment shifts over time. The no-quota model makes large comment collections practical where the official API would force rationing.

How is it used for channel and trend monitoring?

Brands and analysts track channel growth, upload cadence, and per-video performance to benchmark competitors and creators, and use shorts search to watch short-form trends alongside TikTok and Reels. Resolving handles to channel IDs once keeps long-running monitoring stable as creators rebrand.

Are there alternatives to the YouTube API?

What other YouTube data tools exist?

The official YouTube Data API v3 is the sanctioned option, with the quota and ownership constraints described above. Open-source libraries like yt-dlp and youtube-transcript-api handle downloads and transcripts well for scripts but have no SLA, hit IP-based rate limits, and require you to run the infrastructure. Marketplace scrapers wrap similar behavior behind a hosted run.

Which option is best for different needs?

For small projects within the free quota, the official API is fine. For a quick transcript or download in a script, an open-source library works. But for production workloads that need quota-free reads, transcripts for any public video, and large-scale comment or channel collection without managing infrastructure, a managed API like TikHub is usually the most practical choice.

One key, every platform

The YouTube API shares its key and JSON format with 15 other platforms — adding Instagram or Douyin is a one-line change.

Start free