YouTube.js
Guide
Discord
❤️ Sponsor
GitHub
Guide
Discord
❤️ Sponsor
GitHub

youtubei.js / Types / FormatOptions

Interface: FormatOptions

Defined in: src/types/FormatUtils.ts:7

Extends

  • GetVideoInfoOptions

Extended by

  • DownloadOptions

Properties

client?

optional client: InnerTubeClient

Defined in: src/types/GetVideoInfoOptions.ts:7

InnerTube client.

Inherited from

GetVideoInfoOptions.client


codec?

optional codec: string

Defined in: src/types/FormatUtils.ts:31

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


format?

optional format: string

Defined in: src/types/FormatUtils.ts:27

File format, use 'any' to download any format


itag?

optional itag: number

Defined in: src/types/FormatUtils.ts:11

Video or audio itag


language?

optional language: string

Defined in: src/types/FormatUtils.ts:23

Language code, defaults to 'original'.


po_token?

optional po_token: string

Defined in: src/types/GetVideoInfoOptions.ts:12

Proof of Origin token, bound to the video ID being requested. If not provided, session bound token will be used.

Inherited from

GetVideoInfoOptions.po_token


quality?

optional quality: string

Defined in: src/types/FormatUtils.ts:15

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


type?

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

Defined in: src/types/FormatUtils.ts:19

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

Edit this page
Last Updated: 10/12/25, 3:23 PM