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:27


format?

optional format: string

File format, use 'any' to download any format

Defined in

src/types/FormatUtils.ts:23


language?

optional language: string

Language code, defaults to 'original'.

Defined in

src/types/FormatUtils.ts:19


quality?

optional quality: string

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

Defined in

src/types/FormatUtils.ts:11


type?

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

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

Defined in

src/types/FormatUtils.ts:15

Edit this page
Last Updated:: 3/25/25, 8:08 PM
Contributors: EdamAme-x