YouTube.js
Guide
Discord
GitHub
Guide
Discord
GitHub

youtubei.js / Parser / parseCommand

Function: parseCommand()

parseCommand(data): YTNode | undefined

Parses an InnerTube command and returns a YTNode instance if applicable.

Parameters

• data: RawNode

The raw node data to parse

Returns

YTNode | undefined

A YTNode instance if parsing is successful, undefined otherwise

Defined in

src/parser/parser.ts:637

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