Skip to content

fetchYoutubeSubscriptions ​

Import from: @xbbg/xnews

fetchYoutubeSubscriptions(channels, options?): Promise<YoutubeSubscriptionsResult>

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

Fetches every subscribed channel's feed concurrently and merges the videos into one feed, newest first. A channel that fails to resolve or fetch is reported on its per-channel result instead of failing the whole batch. limit caps the merged feed, not each channel; each channel feed carries at most ~15 entries upstream.

Parameters ​

channels ​

readonly string[]

options? ​

YoutubeFeedOptions

Returns ​

Promise<YoutubeSubscriptionsResult>

Last updated:

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