YouTube.js
Guide
Discord
GitHub
Guide
Discord
GitHub

youtubei.js / Managers / AccountManager

Class: AccountManager

Constructors

new AccountManager()

new AccountManager(actions): AccountManager

Parameters

• actions: Actions

Returns

AccountManager

Defined in

src/core/managers/AccountManager.ts:13

Methods

getInfo()

getInfo(all)

getInfo(all): Promise<AccountItem[]>

Retrieves the list of channels belonging to the signed-in account. Only useful when signed in through cookie. If signed in through OAuth, you will get the active channel only.

Parameters

• all: true

Returns

Promise<AccountItem[]>

Defined in

src/core/managers/AccountManager.ts:20

getInfo(all)

getInfo(all?): Promise<AccountInfo>

Retrieves the active channel info for the signed-in account. Throws error if on_behalf_of_user was used to create the Innertube instance; use getInfo(true) instead.

Parameters

• all?: false

Returns

Promise<AccountInfo>

Defined in

src/core/managers/AccountManager.ts:24


getSettings()

getSettings(): Promise<Settings>

Gets YouTube settings.

Returns

Promise<Settings>

Defined in

src/core/managers/AccountManager.ts:50

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