Get current YouTube user
Automatically get current YouTube user on youtube.com. Report which Google/YouTube account this browser is signed in as: the account email. When the browser is signed out of YouTube, including when YouTube shows its cookie-consent page to a visitor with no signed-in account, the run fails with a signed-out error asking you to sign in to youtube.com.
Input
None
Output
loggedIn requirednote optionalAlways null: a signed-out browser, including one YouTube sends to its cookie-consent page, fails with a signed-out error.
email optionalFAQ
Get YouTube channel stats
Get a YouTube channel's stats and profile from a @handle, channel id (UC...) or channel URL. Returns channel_id, handle, name, description, subscribers, video_count, view_count, joined, country, language, channel_url, avatar, rss_url, is_family_safe, keywords and links. Subscribers is the abbreviated public figure (e.g. 4.51M becomes 4510000, approximate), while video_count and view_count are exact, read correctly in any YouTube language. joined, country and subscribers_text are shown as YouTube writes them, in the language given by language (e.g. "Joined Feb 1, 2015" in English). Each link's url is the display host without scheme. An unknown channel fails with an error that names it.
Search YouTube videos
Search YouTube videos by query, or list a channel's or playlist's videos from its URL. Returns a list of videos with id, title, url, duration, channelName, channelUrl, viewCount, date, thumbnailUrl, and description.
Get YouTube video transcript
Fetch a YouTube video's caption transcript (auto-generated or uploaded) in its default caption language, with per-segment timestamps. Returns available:false when the video has no captions in any language, and fails on a video that does not exist or cannot be played. A run can fail when YouTube does not serve the captions in time: call it again later. Works best on the paired-extension browser.
