Run batch
runBatch(params, options?): BatchResponse
Each task runs in isolation. The batch itself does not fail as a whole: inspect success on every result. You are billed 1 credit per successful task.
Security
API Token
The preferred authorization scheme for the YouTube Transcript API. Create a key with transcripts:read in the developer dashboard.
Example: Authorization: Bearer YOUR_API_KEY
See Authentication for scopes and rate limits.
Accepted permissions (at least one required)
ParametersExpand Collapse
tasks:BatchTask[]Body param:
Up to 10 task objects.
id?:stringCaller-defined id echoed on the result.
type:stringtranscript or video_info.
video_id:string11-character YouTube video ID.
format?:stringTranscript format when type is transcript.
mode?:stringVideo lookup mode when type is video_info (fast or full).
ReturnsExpand Collapse
total_tasks:numberNumber of tasks submitted.
successful_tasks:numberTasks with "success": true.
failed_tasks:numberIsolated failures (missing captions, invalid ids).
total_latency_ms:numberWall-clock time for the whole batch.
results:BatchResult[]Per-task outcome, including id, video_id, type, success, latency_ms, and data.
Fair credit accounting
Only tasks with "success": true consume credits.