YouTube Transcript API — Documentation
One API to get transcripts from any YouTube video, enriched with sentiment analysis, keyword extraction, and AI summaries. Responses are JSON by default, with plain text and SRT subtitle formats available. Every endpoint requires a Bearer API key (get a free key — no credit card required).
Base URL
https://ytapi.app/api/v1
Authentication
Pass your API key as a Bearer token on every request:
Authorization: Bearer your_api_key
Endpoints
Returns the transcript as JSON with timestamps.
Plain text transcript (no timestamps).
SRT subtitle format, ready for video players.
Transcript plus sentiment analysis, keyword extraction, and an AI-generated summary.
Optional flags: include_sentiment, include_keywords, include_summary.
Check your current usage and daily limits.
Query parameters
| Parameter | Description | Default |
|---|---|---|
video_id | YouTube video URL (any form) or raw 11-char video ID. Required. | — |
format | json, text, or srt. | json |
lang | Language code (e.g. en, es, fr). | en |
include_sentiment | Include sentiment analysis (analyze endpoint). | true |
include_keywords | Include keyword extraction (analyze endpoint). | true |
include_summary | Include AI summary (analyze endpoint). | true |
Example
curl -H "Authorization: Bearer your_api_key" \
"https://ytapi.app/api/v1/transcript?video_id=jNQXAC9IVRw"
Try more examples interactively in the Swagger UI.
Rate limits by tier
| Tier | Requests per day | Max video duration |
|---|---|---|
| Free no card | 50 | 10 min |
| Hobby | 5,000 | 1 hr |
| Pro | 50,000 | 4 hrs |
| Business | 100,000 | 24 hrs |
Support
Questions or issues? Email support@ytapi.app.