mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-15 18:42:11 +00:00
* dev: add `WEB_KIDS` innertube client * refactor: move DASH manifest stuff out of `VideoInfo` This makes it easier to use these functions elsewhere. * feat(ytkids): add `Kids#getInfo()` & `Kids#search()` * feat: add `Innertube#kids.getHomeFeed()` * docs: add YouTube Kids API ref * docs: fix typo * docs: fix yet another typo * docs: update YouTube Music API ref Unrelated but required to reflect changes made to the DASH manifest generation functions * chore: lint * chore: add tests * feat: include `captions` in `VideoInfo` * chore: fix tests
2.1 KiB
2.1 KiB
Account
YouTube account manager.
API
channel
Channel settings.
Returns: object
Methods & Getters
-
<channel>#editName(new_name)- Edits the name of the channel.
-
<channel>#editDescription(new_description)- Edits channel description.
-
<channel>#getBasicAnalytics()- Alias for
Account#getAnalytics()— returns basic channel analytics.
- Alias for
getInfo()
Retrieves account information.
Returns: Promise.<AccountInfo>
Methods & Getters
<accountinfo>#page- Returns the original InnerTube response(s), parsed and sanitized.
getTimeWatched()
Retrieves time watched statistics.
Returns: Promise.<TimeWatched>
Methods & Getters
<timewatched>#page- Returns the original InnerTube response(s), parsed and sanitized.
getSettings()
Retrieves YouTube settings.
Returns: Promise.<Settings>
Methods & Getters
-
<settings>#selectSidebarItem(name)- Selects an item from the sidebar menu. Use
settings#sidebar_itemsto see available items.
- Selects an item from the sidebar menu. Use
-
<settings>#getSettingOption(name)- Finds a setting by name and returns it. Use
settings#setting_optionsto see available options.
- Finds a setting by name and returns it. Use
-
<settings>#setting_options- Returns settings available in the page.
-
<settings>#sidebar_items- Returns options available in the sidebar menu.
-
<settings>#page- Returns the original InnerTube response(s), parsed and sanitized.
getAnalytics()
Retrieves basic channel analytics.
Returns: Promise.<Analytics>
Methods & Getters
<analytics>#page- Returns the original InnerTube response(s), parsed and sanitized.