Files
YouTube.js/docs/API/account.md
LuanRT 2bbefefbb7 feat: add support for YouTube Kids (#291)
* 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
2023-01-23 03:39:51 -03:00

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()

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_items to see available items.
  • <settings>#getSettingOption(name)

    • Finds a setting by name and returns it. Use settings#setting_options to see available options.
  • <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.