Skip to content

resolveYoutubeChannelId ​

Import from: @xbbg/xnews

resolveYoutubeChannelId(channel, options?): Promise<string>

Defined in: src/sources/youtube.ts (declaration: sources/youtube.d.ts:29)

Resolves a channel reference — a UC… ID, a channel/handle URL, or a bare @handle — to the canonical UC… channel ID. IDs and /channel/UC… URLs resolve locally; anything else fetches the channel page once and reads the canonical channel link out of the HTML.

Parameters ​

channel ​

string

options? ​

SourceFetchOptions

Returns ​

Promise<string>

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.