youtubei.js / Types / FormatOptions
Interface: FormatOptions
Extended by
Properties
client?
optional
client:InnerTubeClient
InnerTube client.
Defined in
codec?
optional
codec:string
Video or audio codec, e.g. 'avc', 'vp9', 'av01' for video, 'opus', 'mp4a' for audio
Defined in
format?
optional
format:string
File format, use 'any' to download any format
Defined in
itag?
optional
itag:number
Video or audio itag
Defined in
language?
optional
language:string
Language code, defaults to 'original'.
Defined in
quality?
optional
quality:string
Video quality; 360p, 720p, 1080p, etc... also accepts 'best' and 'bestefficiency'.
Defined in
type?
optional
type:"video"
|"audio"
|"video+audio"
Download type, can be: video, audio or video+audio