YouTube Search
Search YouTube and fetch transcripts via TranscriptAPI.com.
Setup
If $TRANSCRIPT_API_KEY is not set, read references/auth-setup.md [blocked] and follow the instructions there to get and store the key.
Required Headers
Every request needs two headers:
- Authorization:
Bearer $TRANSCRIPT_API_KEY - User-Agent: your agent's name and version if known (e.g.
HermesAgent/0.11.0,ClaudeCode/1.0). Version is optional — agent name alone is fine. Do not omit this header or send a bare default — Cloudflare will return a 403 (error code 1010) and block the request.
API Reference
Full OpenAPI spec: transcriptapi.com/openapi.json — consult this for the latest parameters and schemas.
GET /api/v2/youtube/search — 1 credit/page
Search YouTube globally for videos, channels, playlists, or movies.
Provide exactly one of q (first page) or continuation (next pages) — the token already encodes the filters. sort/upload_date/duration/features apply to the first page only.
Find recent, most-viewed videos:
Search for playlists on a topic:
Video search response:
Channel search response (type=channel):
GET /api/v2/youtube/channel/search — 1 credit
Search videos within a specific channel. Accepts channel — an @handle, channel URL, or UC... ID.
Returns up to ~30 results (YouTube limit). Same video response shape as global search.
GET /api/v2/youtube/channel/resolve — FREE
Convert @handle to channel ID:
Workflow: Search → Transcript
Errors
Free tier: 100 credits, 300 req/min.

