Introduction
The API to search, extract, and analyze YouTube at scale for AI agents.
YouTube for AI agents.
Each endpoint does one thing and returns structured JSON. Search for videos, pull transcripts with timestamps, read threaded comments, browse channels, fetch playlists. One API key, one credit per request.
Base URL
https://api.stophy.devEndpoints
Video
Transcripts with timestamps, comments, reply threads, and video metadata.
Search
Ranked results with full metadata. Filter by type, recency, duration, and features.
Channel
Videos, shorts, playlists, community posts, about. One parameter switches tabs.
Playlist
Every video in any playlist. Paginated.
Suggest
Autocomplete suggestions for any partial query.
Credits & Usage
Pay per request. No subscriptions. Track balance, logs, and daily usage.
How it works
Every request to a /v1/* endpoint:
- Authenticates with your API key (
Authorization: Bearer st_...) - Deducts 1 credit on success
- Returns a consistent JSON envelope with
success,requestId,cacheState,creditsUsed,creditsRemaining, anddata