YouTube.js
Guide
Discord
GitHub
Guide
Discord
GitHub

youtubei.js / Types / DownloadOptions

Interface: DownloadOptions

Extends

  • FormatOptions

Properties

client?

optional client: InnerTubeClient

InnerTube client.

Inherited from

FormatOptions.client

Defined in

src/types/FormatUtils.ts:35


codec?

optional codec: string

Video or audio codec, e.g. 'avc', 'vp9', 'av01' for video, 'opus', 'mp4a' for audio

Inherited from

FormatOptions.codec

Defined in

src/types/FormatUtils.ts:31


format?

optional format: string

File format, use 'any' to download any format

Inherited from

FormatOptions.format

Defined in

src/types/FormatUtils.ts:27


itag?

optional itag: number

Video or audio itag

Inherited from

FormatOptions.itag

Defined in

src/types/FormatUtils.ts:11


language?

optional language: string

Language code, defaults to 'original'.

Inherited from

FormatOptions.language

Defined in

src/types/FormatUtils.ts:23


quality?

optional quality: string

Video quality; 360p, 720p, 1080p, etc... also accepts 'best' and 'bestefficiency'.

Inherited from

FormatOptions.quality

Defined in

src/types/FormatUtils.ts:15


range?

optional range: object

Download range, indicates which bytes should be downloaded.

end

end: number

start

start: number

Defined in

src/types/FormatUtils.ts:42


type?

optional type: "video" | "audio" | "video+audio"

Download type, can be: video, audio or video+audio

Inherited from

FormatOptions.type

Defined in

src/types/FormatUtils.ts:19

Edit this page
Last Updated:: 6/8/25, 5:43 PM
Contributors: Luan