ytscrape is a free, open-source Python library that talks directly to YouTube’s internal InnerTube API. Search for videos, channels, and playlists, fetch detailed metadata, collect every comment and reply, and retrieve transcripts — all without registering for a YouTube Data API key or worrying about quota limits.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vsmutok/ytscrape/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Make your first YouTube search in under five minutes with a working code example.
Installation
Install ytscrape from PyPI or from source. Requires Python 3.10+.
Guides
Explore in-depth guides for searching, comments, transcripts, pagination, and more.
API Reference
Full reference for the YouTube facade, all data models, filters, and exceptions.
Why ytscrape?
No API Key
Uses YouTube’s internal InnerTube endpoints — nothing to register, no billing project, no quota.
No Browser
Pure HTTP with
requests. No Selenium, no Playwright, no headless Chrome.Typed Models
Frozen dataclasses with full type hints. Ships
py.typed for mypy and pyright.Full Comments
Collect every comment and reply with transparent pagination and sort order control.
Transcripts
List and fetch caption tracks in any language, with auto-generated fallback.
CLI Included
ytscrape search, video, channel, comments, and transcript commands built in.Get started in seconds
Explore the guides
Head to the Guides for searching, comments, transcripts, pagination, and advanced configuration.
ytscrape accesses YouTube’s private InnerTube endpoints. Use it responsibly and at your own risk — endpoint parameters may change over time.