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

youtubei.js / Parser / parseCommand

Function: parseCommand()

parseCommand(data): YTNode | undefined

Defined in: src/parser/parser.ts:663

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

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