DEV Community

Cover image for YouTube Innertube API: Extract Data Without Quotas or API Keys
Alex Spinov
Alex Spinov

Posted on • Edited on

YouTube Innertube API: Extract Data Without Quotas or API Keys

YouTube's official Data API has strict quota limits (10,000 units/day). But there's another way.

The Innertube API

YouTube.com itself loads all data through an internal API called Innertube. When you scroll down to load comments, it calls:

POST https://www.youtube.com/youtubei/v1/next
Enter fullscreen mode Exit fullscreen mode

With a JSON body containing the video ID and a continuation token.

How Comments Are Structured (2025+ Format)

YouTube recently changed their comment data format. Comments are now stored in:

frameworkUpdates.entityBatchUpdate.mutations[].payload.commentEntityPayload
Enter fullscreen mode Exit fullscreen mode

Each mutation with type commentEntityPayload contains:

  • properties.content.content — comment text
  • properties.authorButtonA11y — author name
  • toolbar.likeCountNotliked — like count
  • properties.publishedTime — relative time
  • toolbar.replyCount — number of replies

Getting the Continuation Token

Fetch the video page, extract ytInitialData from the HTML, then navigate:

contents.twoColumnWatchNextResults.results.results.contents
   itemSectionRenderer.contents
   continuationItemRenderer.continuationEndpoint.continuationCommand.token
Enter fullscreen mode Exit fullscreen mode

Key Benefits vs Official API

Official API Innertube API
API Key Required Not needed
Quota 10K units/day No quota
Rate limit Yes Reasonable use
Comment format Legacy Latest

I built a YouTube Comments Scraper using this approach — free on Apify Store (search knotless_cadence). Also built YouTube Channel and Search scrapers using the same technique.

Has anyone else worked with the Innertube API?\n\n---\n\n*More tools:* 60+ free scrapers | Reports | MCP Servers


Need data scraped or market research done? I offer web scraping ($20), market research reports ($20), and custom automation ($50+). 77 production scrapers. Hire me → or email Spinov001@gmail.com

Order custom data via Payoneer ($20)


What free API tool do you wish existed? Drop your idea below — I might build it next. 👇


More from me: 10 Dev Tools I Use Daily | 77 Scrapers on a Schedule | 150+ Free APIs
Also: Neon Free Postgres | Vercel Free API | Hetzner 4x More Server
NEW: I Ran an AI Agent for 16 Days — What Actually Works


Need data from the web without writing scrapers? Check my *Apify actors** — ready-made scrapers for HN, Reddit, LinkedIn, and 75+ more sites. Or email me: spinov001@gmail.com*

Top comments (0)