API Documentation
A REST API for YouTube transcripts, search, and metadata. Get an API key from your dashboard — 100 free credits to start.
llms.txt: https://getyoutubetranscript.com/llms.txt · OpenAPI: https://getyoutubetranscript.com/openapi.json
Authentication
Pass your API key as a bearer token, or via x-api-key:
Authorization: Bearer sk_live_...
# or
x-api-key: sk_live_...Base URL
https://getyoutubetranscript.com/api/v1Credits & plans
| Plan | Price | Credits/mo | Top-up price | Rate limit |
|---|---|---|---|---|
| Free | $0/mo | 100 (one-time) | — | 60 req/min |
| Monthly | $5/mo | 1,000 | $2.50 / 1,000 | 200 req/min |
| Annual | $4.50/mo ($54/yr) | 1,000 | $1.50 / 1,000 | 300 req/min |
| Starter | $19/mo | 7,500 | $1.50 / 1,000 | 300 req/min |
| Pro | $49/mo | 25,000 | $1.50 / 1,000 | 400 req/min |
| Scale | $99/mo | 60,000 | $1.50 / 1,000 | 600 req/min |
1 credit = 1 successful request. Failed requests are never charged. Example: 10 transcript requests where 2 videos have no captions cost 8 credits, and retrying a failed video costs nothing until it succeeds. Top-up credits expire 30 days from purchase or at the end of your current billing period, whichever is later, and require an active subscription to spend. AI transcripts for videos with no captions (mode=auto or generate) cost 3 credits per minute of video.
Endpoints
/transcript1 credit · AI: 3/minGet the transcript for a YouTube video, with metadata (title, channel, thumbnail). Also returns language_code vs requested_language, caption_type (manual or auto, null if unknown), and cached / fetched_at. For a video with no captions, set mode=auto or mode=generate to get an AI speech-to-text transcript (caption_type and source are "ai", plus duration_seconds). If it takes longer than about 20 seconds, you get 202 with a job to poll at /transcript/jobs.
| Parameter | Required | Description |
|---|---|---|
v | Yes | Video ID or full YouTube URL |
language | No | Language code (default: en) |
timestamps | No | Set to true to add per-line timestamps (segments: start, duration, text in seconds). Off by default. |
translate | No | Language code to machine-translate into, e.g. es or zh-CN. Timestamps stay aligned; the response adds translated_to. Same 1 credit. |
mode | No | native (default): captions only. auto: captions if the video has any, otherwise an AI transcript. generate: always an AI transcript. AI transcripts cost 3 credits per minute of video, rounded up; the X-Credits-Charged header shows the cost. Reading your own again within 24 hours costs 0. With auto or generate, language is the spoken language (leave it out to use the video's own); translate is not allowed. |
Request
curl "https://getyoutubetranscript.com/api/v1/transcript?v=jNQXAC9IVRw" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"video_id": "jNQXAC9IVRw",
"language_code": "en",
"requested_language": "en",
"caption_type": "manual",
"title": "Me at the zoo",
"author_name": "jawed",
"author_url": "https://www.youtube.com/channel/UC4Qob...",
"thumbnail_url": "https://...",
"transcript": "All right, so here we are...",
"word_count": 39,
"cached": true,
"fetched_at": "2026-09-20T03:10:58.938Z"
}
}/transcript/jobsFree to pollStatus of an AI transcript job started by /transcript with mode=auto or generate. Returns 200 with the transcript when done, 202 while it runs, or the error if it failed (the credits are refunded then). Poll every 5 seconds. Only your own jobs; kept 7 days.
| Parameter | Required | Description |
|---|---|---|
id | Yes | The job_id from the 202 answer |
timestamps | No | true to include per-line segments |
Request
# A long video answers 202 with a job:
curl "https://getyoutubetranscript.com/api/v1/transcript?v=VIDEO_ID&mode=auto" \
-H "Authorization: Bearer sk_live_..."
# {"success": true, "data": null, "job": {"job_id": "6f1c2b0e-...", "status": "running", "poll_interval_seconds": 5, ...}}
curl "https://getyoutubetranscript.com/api/v1/transcript/jobs?id=6f1c2b0e-..." \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"video_id": "VIDEO_ID",
"language_code": "en",
"caption_type": "ai",
"title": "...",
"transcript": "...",
"source": "ai",
"duration_seconds": 1840
},
"job": {
"job_id": "6f1c2b0e-...",
"status": "done",
"credits_charged": 93,
"poll_url": "/api/v1/transcript/jobs?id=6f1c2b0e-...",
"poll_interval_seconds": 5
}
}/transcript/languages1 creditList the caption languages a video offers (manual and auto-generated) before fetching one. default_language_code is what /transcript returns with no language; a video with captions turned off returns an empty list.
| Parameter | Required | Description |
|---|---|---|
v | Yes | Video ID or full YouTube URL |
Request
curl "https://getyoutubetranscript.com/api/v1/transcript/languages?v=kJQP7kiw5Fk" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"video_id": "kJQP7kiw5Fk",
"default_language_code": "en",
"languages": [
{ "language_code": "en", "name": "English - en", "caption_type": "manual" },
{ "language_code": "es", "name": "Spanish", "caption_type": "manual" }
]
}
}/batch1 credit / successful videoQueue up to 100 videos in one call. Returns a batch_id at once and fetches the transcripts in the background. Poll GET /batch, or pass webhook_url to get a signed POST (X-GYT-Signature header) when it finishes. Failed videos are never charged.
| Parameter | Required | Description |
|---|---|---|
videos | Yes | Array of video IDs or URLs (1-100). Duplicates are fetched once. |
language | No | Language code for every video (default: en) |
timestamps | No | true to include per-line segments in the results |
webhook_url | No | Public https URL notified when the batch finishes |
Idempotency-Key | No | Header. Retry the request safely: the same key returns the original batch. |
Request
curl -X POST "https://getyoutubetranscript.com/api/v1/batch" \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"videos": ["jNQXAC9IVRw", "https://youtu.be/dQw4w9WgXcQ"],
"webhook_url": "https://example.com/hooks/transcripts"
}'Response
{
"success": true,
"data": {
"batch_id": "324eb615-e4d5-4b3c-b8e7-04235671066b",
"status": "queued",
"total": 2,
"succeeded": 0,
"failed": 0,
"pending": 2,
"results_url": "https://getyoutubetranscript.com/api/v1/batch?id=324eb615-...",
"webhook_secret": "whsec_..."
}
}/batchFreeBatch status, counts and a page of results in submission order. Succeeded items have the same fields as /transcript; failed items carry an error_code.
| Parameter | Required | Description |
|---|---|---|
id | Yes | The batch_id from POST /batch |
offset | No | Items to skip (default: 0) |
limit | No | Items per page, 1-50 (default: 20) |
Request
curl "https://getyoutubetranscript.com/api/v1/batch?id=324eb615-e4d5-4b3c-b8e7-04235671066b" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"batch_id": "324eb615-...",
"status": "completed",
"total": 2,
"succeeded": 1,
"failed": 1,
"credits_charged": 1,
"items": [
{ "position": 0, "status": "succeeded", "charged": true, "video_id": "jNQXAC9IVRw", "caption_type": "manual", "transcript": "All right, so here we are...", ... },
{ "position": 1, "status": "failed", "charged": false, "video_id": "dQw4w9WgXcQ", "error_code": "TRANSCRIPT_DISABLED" }
],
"next_offset": null
}
}/search1 credit / pageSearch YouTube videos with filters and pagination.
| Parameter | Required | Description |
|---|---|---|
q | Yes | Search query (min 2 characters) |
country | No | 2-letter country code (default: us) |
language | No | Language code (default: en) |
page_token | No | Previous response's continuation_token, to fetch the next page |
limit | No | Max results (default 20, max 50) |
Request
curl "https://getyoutubetranscript.com/api/v1/search?q=lofi+beats" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"query": "lofi beats",
"video_results": [ { "title": "...", "videoId": "...", "channel": { "name": "..." } } ],
"continuation_token": "c_bKt9xQ2mVf7LpR0aZ3sWyA"
}
}/resolve1 creditResolve a channel handle, URL, or username to its real channel ID. A syntactic input (already a channel ID or URL containing one) resolves instantly with no network call; a bare handle triggers one real lookup.
| Parameter | Required | Description |
|---|---|---|
handle | Yes | Channel ID, URL, or @handle |
Request
curl "https://getyoutubetranscript.com/api/v1/resolve?handle=@mkbhd" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"channel_id": "UCBJycsmduvYEL83R_U4JriQ",
"title": "Marques Brownlee",
"handle": "http://www.youtube.com/@mkbhd",
"resolved_via": "lookup"
}
}/channel/latest1 creditChannel details (title, handle, subscribers, video count, description, avatar) plus its 15 newest uploads. For the full upload history use /channel/videos.
| Parameter | Required | Description |
|---|---|---|
channel | Yes | Channel @handle, URL, or channel ID |
Request
curl "https://getyoutubetranscript.com/api/v1/channel/latest?channel=@mkbhd" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"channel": { "id": "UCBJycsmduvYEL83R_U4JriQ", "title": "Marques Brownlee", "subscribers": 1160000, "avatar": "https://..." },
"about": { "description": "...", "links": [] },
"videos_sections": [ ... ]
}
}/channel/videos1 credit / pageEvery video a channel has uploaded, newest first, paginated.
| Parameter | Required | Description |
|---|---|---|
channel | Yes | Channel @handle, URL, or channel ID |
tab | No | videos (default), shorts or streams (the Live tab). First page only. |
sort | No | latest (default), popular or oldest. First page only. |
continuation | No | continuation_token from the previous response, to fetch the next page (use it instead of the other parameters). Expires after 24 hours. |
Request
curl "https://getyoutubetranscript.com/api/v1/channel/videos?channel=@mkbhd&tab=shorts&sort=popular" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"videos": [ { "position": 1, "id": "...", "title": "...", "views": "6.2M", "published_time": "1d ago", "length": "10:47" } ],
"has_more": true,
"continuation_token": "c_pqHR9v13sqaqxlcKhA4MnA"
}
}/channel/playlists1 credit / pageA channel's playlists (its Playlists tab), paginated. Pass a playlist id to /playlist to list its videos.
| Parameter | Required | Description |
|---|---|---|
channel | Yes | Channel @handle, URL, or channel ID |
continuation | No | continuation_token from the previous response, to fetch the next page (use it instead of the other parameters). Expires after 24 hours. |
Request
curl "https://getyoutubetranscript.com/api/v1/channel/playlists?channel=@mkbhd" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"playlists": [ { "position": 1, "id": "PL...", "title": "...", "link": "https://www.youtube.com/playlist?list=PL...", "video_count": 5 } ],
"has_more": false,
"continuation_token": null
}
}/channel/posts1 credit / pageA channel's community posts (its Posts tab), paginated: text, links, likes, comments and any attached image.
| Parameter | Required | Description |
|---|---|---|
channel | Yes | Channel @handle, URL, or channel ID |
continuation | No | continuation_token from the previous response, to fetch the next page (use it instead of the other parameters). Expires after 24 hours. |
Request
curl "https://getyoutubetranscript.com/api/v1/channel/posts?channel=@mkbhd" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"posts": [ { "position": 1, "id": "Ugkx...", "url": "https://www.youtube.com/post/Ugkx...", "text": "...", "published_time": "2 years ago", "likes": "12K", "comments": "1K" } ],
"has_more": true,
"continuation_token": "c_DfE9mQx2Ln8TbW4kJ1pZsA"
}
}/channel/search1 credit / pageSearch within one channel's videos, paginated.
| Parameter | Required | Description |
|---|---|---|
channel | Yes | Channel @handle, URL, or channel ID |
q | Yes | Search query (min 2 characters) |
continuation | No | continuation_token from the previous response, to fetch the next page (use it instead of the other parameters). Expires after 24 hours. |
Request
curl "https://getyoutubetranscript.com/api/v1/channel/search?channel=@mkbhd&q=iphone" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"videos": [ { "position": 1, "id": "...", "title": "...", "published_time": "3w ago", "length": "17:14", "channel": { "name": "Marques Brownlee" } } ],
"has_more": true,
"continuation_token": "c_pnm10M6orzLgOTVWJk2oww"
}
}/playlist1 credit / pageEvery video in a playlist, paginated. continuation_token is null on the last page.
| Parameter | Required | Description |
|---|---|---|
list | Yes | Playlist ID or URL |
continuation | No | continuation_token from the previous response, to fetch the next page (use it instead of the other parameters). Expires after 24 hours. |
Request
curl "https://getyoutubetranscript.com/api/v1/playlist?list=PLxxx" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"playlist_id": "PLxxx",
"title": "...",
"videos": [ { "position": 1, "id": "...", "title": "...", "channel": { "name": "..." } } ],
"has_more": true,
"continuation_token": "c_DfE9mQx2Ln8TbW4kJ1pZsA"
}
}/video/related1 creditThe videos YouTube suggests next to a video, with title, id, channel, views, age and length.
| Parameter | Required | Description |
|---|---|---|
v | Yes | Video ID or full YouTube URL |
Request
curl "https://getyoutubetranscript.com/api/v1/video/related?v=dQw4w9WgXcQ" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"video_id": "dQw4w9WgXcQ",
"related": [ { "position": 1, "id": "...", "title": "...", "channel": { "name": "..." }, "views": "410K", "published_time": "11y ago", "length": "1:01:35" } ]
}
}/video/dislikes1 creditA video's estimated likes and dislikes. YouTube no longer publishes dislikes, so these are estimates (estimated is always true).
| Parameter | Required | Description |
|---|---|---|
v | Yes | Video ID or full YouTube URL |
Request
curl "https://getyoutubetranscript.com/api/v1/video/dislikes?v=dQw4w9WgXcQ" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"video_id": "dQw4w9WgXcQ",
"likes": 19497714,
"dislikes": 521713,
"rating": 4.9,
"view_count": 1830715799,
"estimated": true
}
}/video1 creditA video's details: title, description, channel and subscribers, views, likes, upload date, duration, thumbnails and tags.
| Parameter | Required | Description |
|---|---|---|
v | Yes | Video ID or full YouTube URL |
Request
curl "https://getyoutubetranscript.com/api/v1/video?v=dQw4w9WgXcQ" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"video_id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"description": "...",
"channel": { "id": "UCuAXFkgsw1L7xaCfnd5JJOw", "name": "Rick Astley", "subscribers": "4.56M subscribers" },
"views": "1840125263",
"likes": "19M",
"upload_date": "Oct 24, 2009",
"duration": 213,
"duration_formatted": "3:33",
"thumbnails": [ { "url": "...", "width": 1920, "height": 1080 } ],
"keywords": [ "rick astley", "..." ]
}
}/video/comments1 credit / pageA page of a video's top comments: text, commenter, likes, reply count and age. Pass the same v plus continuation for the next page.
| Parameter | Required | Description |
|---|---|---|
v | Yes | Video ID or full YouTube URL |
continuation | No | continuation_token from the previous response, sent together with the same v, to fetch the next page. Expires after 24 hours. |
Request
curl "https://getyoutubetranscript.com/api/v1/video/comments?v=dQw4w9WgXcQ" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"video_id": "dQw4w9WgXcQ",
"comments": [ { "comment_id": "...", "channel": { "handle": "@..." }, "text": "...", "likes": "109K", "replies": 740, "published_date": "7 years ago" } ],
"has_more": true,
"continuation_token": "c_DfE9mQx2Ln8TbW4kJ1pZsA"
}
}/tiktok/transcript1 creditA TikTok video's captions as timed segments, plus its author, description and caption language.
| Parameter | Required | Description |
|---|---|---|
url | Yes | TikTok video URL, short link (vm.tiktok.com/...) or numeric video id. |
Request
curl "https://getyoutubetranscript.com/api/v1/tiktok/transcript?url=https://www.tiktok.com/@thedailybugleofficial/video/7039900146041343278" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"video_id": "7039900146041343278",
"author": "thedailybugleofficial",
"description": "Daily Bugle Exclusive: meet author Eugene “Flash” Thompson...",
"language": "eng-US",
"auto_generated": true,
"segments": [ { "start": 4.525, "text": "In your book, you revealed that the name spider man was your idea." } ]
}
}/channel/banner1 creditA channel's uncropped banner, every crop size YouTube serves, and its avatar. has_banner is false when the channel has none.
| Parameter | Required | Description |
|---|---|---|
channel | Yes | Channel @handle, URL, or channel ID |
Request
curl "https://getyoutubetranscript.com/api/v1/channel/banner?channel=@mkbhd" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"channel_id": "UCBJycsmduvYEL83R_U4JriQ",
"title": "Marques Brownlee",
"avatar": "https://yt3.googleusercontent.com/...",
"has_banner": true,
"banner": { "original": "https://...=s0", "largest": "https://...=w2560", "sizes": [ { "url": "https://...", "width": 1060, "height": 175 } ] }
}
}/creditsFreeCheck the remaining credit balance for this key before spending it - same data the MCP get_credits tool returns.
| Parameter | Required | Description |
|---|
Request
curl "https://getyoutubetranscript.com/api/v1/credits" \
-H "Authorization: Bearer sk_live_..."Response
{
"success": true,
"data": {
"plan_credits_left": 87,
"topup_credits_left": 0,
"plan": "monthly",
"rate_limit_per_minute": 200
}
}Errors
Errors return a JSON body with a stable code field to branch on, in addition to the HTTP status:
| Status | Code | Meaning |
|---|---|---|
| 400 | BAD_REQUEST | Missing or invalid parameter |
| 400 | CURSOR_EXPIRED | Page cursor expired (after 24 hours) - start again from the first page |
| 401 | MISSING_API_KEY / INVALID_API_KEY | No key provided, or key is invalid/revoked |
| 402 | PAYMENT_REQUIRED | Out of credits - buy a top-up or upgrade |
| 404 | VIDEO_UNAVAILABLE / TRANSCRIPT_NOT_FOUND / COMMENTS_DISABLED | Video or resource not found |
| 404 | JOB_NOT_FOUND | No AI transcript job with this id in your account |
| 422 | LIVE_STREAM / TOO_LONG / AUDIO_UNAVAILABLE | Live or upcoming stream, video over 4 hours, or audio not readable (AI modes only). Not charged |
| 429 | RATE_LIMITED | Too many requests for your plan tier |
| 429 | TOO_MANY_JOBS | 5 AI transcripts already in progress, or too many failed today |
| 502 | AI_FAILED | The AI transcript could not be made. Credits are refunded |
| 503 | UPSTREAM_UNAVAILABLE | Temporary upstream issue - safe to retry |
| 504 | UPSTREAM_TIMEOUT | Upstream took longer than 25 seconds - not charged, safe to retry |
Using this API with an AI tool
Prefer letting Claude (or another AI coding tool) call this API for you instead of hand-writing requests? Download the YouTube Transcript skill - a ready-made Claude Skill that teaches it how to fetch transcripts, search, and more.
Use it in Zapier
No code needed: our Zapier app gets a transcript, searches YouTube or lists a channel's videos in any Zap. Connect it with the same API key; each action costs the same credits as the API call.







































































