Files
YouTube.js/docs/api/namespaces/Managers/classes/AccountManager.md
2025-07-22 16:53:42 -03:00

2.1 KiB

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