YouTube.js
Guide
Discord
GitHub
Guide
Discord
GitHub

youtubei.js / Types / FormatOptions

Interface: FormatOptions

Extended by

  • DownloadOptions

Properties

client?

optional client: InnerTubeClient

InnerTube 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

Defined in

src/types/FormatUtils.ts:31


format?

optional format: string

File format, use 'any' to download any format

Defined in

src/types/FormatUtils.ts:27


itag?

optional itag: number

Video or audio itag

Defined in

src/types/FormatUtils.ts:11


language?

optional language: string

Language code, defaults to 'original'.

Defined in

src/types/FormatUtils.ts:23


quality?

optional quality: string

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

Defined in

src/types/FormatUtils.ts:15


type?

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

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

Defined in

src/types/FormatUtils.ts:19

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