YTAPI.devDocs
Last updated Sep 13, 2026
||MarkdownView as Markdown|Agent setup

Get transcript

getTranscript(query, options?): TranscriptResponse

GET/v1/transcripts1 Credit

Same extraction as POST /v1/transcripts, using query parameters. Useful for browser checks and short scripts. Prefer POST when sending languages arrays or larger option sets.

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.

transcripts:read
ParametersExpand Collapse
video_id:string

Query param:

11-character YouTube video ID or a full video URL.

format?:string

Query param:

Output format. Same values as the POST endpoint. Default word_timestamps.

word_level?:boolean

Query param:

Include millisecond word offsets on ASR tracks. Default false.

languages?:string

Query param:

Comma-separated ISO language codes, for example en,es.

track_policy?:string

Query param:

manual_first, asr_first, manual_only, or asr_only. Default manual_first.

ReturnsExpand Collapse
video_id:string

Echoed YouTube video ID.

language:string

Negotiated ISO language code.

track_type:string

ASR or MANUAL.

format:string

Format actually returned.

data:object

Payload shape depends on format. See Extract transcript.