Official scripts
Explore our curated collection of scripts
Like YouTube video
Like a YouTube video — has no effect if it's already liked.
Get YouTube video
Get a single YouTube video's metadata from a watch URL or video id. Returns videoId, title, author, channelId, channelUrl, viewCount, likeCount, lengthSeconds, isLive, isPrivate, isUnlisted, isFamilySafe, category, keywords, thumbnails, uploadDate, publishDate, description, canonicalUrl. likeCount is null when the uploader hides likes, and canonicalUrl may point to a sibling video that YouTube picked as the indexable winner.
Post YouTube comment
Post a top-level comment on a YouTube video. Returns the new commentId.
Get YouTube video transcript
Fetch a YouTube video's caption transcript (auto-generated or uploaded) with per-segment timestamps. Returns available:false when the video has no captions in any language. Some runs fail when YouTube plays an ad before the video, roughly 1 in 3; the script already retries, so if it still fails, call it again later. The paired-extension browser is more reliable than the managed browser, where YouTube often shows a sign-in check and no transcript is returned.
Unlike YouTube video
Remove your like from a YouTube video — has no effect if it isn't currently liked.
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.
Reply to YouTube comment
Reply to a YouTube comment by id. Returns the new reply's id.
List YouTube watch history
List the videos and Shorts in your YouTube watch history, newest first, as the history page shows them: one entry per video with its day heading, id, title, url, channel, view count, duration and how much of it was watched. Returns the first page of the history (about 200 entries) and a nextCursor when older entries exist. Returns an empty list when watch history is paused or cleared for the account.
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, 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; joined is a display string (e.g. "1 Feb 2015") and each link's url is the display host without scheme.
Get YouTube comments
List a YouTube video's top-level comments from a watch URL or video id. Per comment: id, text, author, channelId, authorAvatar, publishedTime, likeCount, replyCount, isVerified, isCreator, pinned. Sort by 'top' (default) or 'newest' and paginate with the returned nextCursor. likeCount and replyCount are YouTube's abbreviated strings (e.g. "255k", "960"), and comments come back empty when they are disabled.
YouTube whoami (signed-in account)
Report which Google/YouTube account this browser is signed in as: the account email from YouTube's Account settings page. Being signed out is reported as a normal answer (loggedIn false), not an error — including when YouTube shows its EU cookie-consent page to a visitor with no signed-in account, which is flagged in `note`.
Get current user
Report which Google/YouTube account this browser is signed in as: the account email from YouTube's Account settings page. Being signed out is reported as a normal answer (loggedIn false), not an error — including when YouTube shows its EU cookie-consent page to a visitor with no signed-in account, which is flagged in `note`.
Like a TikTok video
Like a TikTok video (as the logged-in account) by URL or id. Safe to repeat: it does nothing if you already liked it.
Get Loom video transcript
Fetch the full transcript of a Loom video from its share URL (or bare 32-char id). Returns title, owner, duration, language, timestamped segments, and the joined plain text. Works anonymously on link-shared videos; password-protected or private videos fail loudly, and videos without a transcript return an empty segments list.
Get TikTok video
Get a TikTok video's caption, stats, author, music, hashtags and metadata by URL or video id.
Get TikTok related videos
Get the “you may like” related-video recommendations shown next to a TikTok video (a single ~12-item snapshot, not a paginable list).
Search TikTok videos
Search TikTok videos by keyword, newest-relevance order, up to `count`.
Get TikTok sound/music videos
List videos that use a given TikTok sound, by music id, up to `count`.
Get TikTok user reposts
List the videos a TikTok user has reposted (from their Reposts tab), by @username, up to `count`.
Get TikTok trending videos
Get a sample of TikTok's Explore (trending) feed. The feed is re-ranked on every request (no stable cursor), so the script accumulates distinct videos across several calls up to `count` — a fresh trending snapshot, not a deterministic paginated list.
Get TikTok user videos
List a TikTok user's videos (newest first) by @username, up to `count`.
Get TikTok video comments
List the top-level comments on a TikTok video, given its URL or id, in newest-relevance order.
Repost a TikTok video
Repost a TikTok video to your own profile, as the signed-in account, given the video's URL or id. A repost is public: it appears on the Reposts tab of your profile and can be shown to your followers, so confirm the exact video with the person asking before running this. The run first checks whether you have already reposted it and does nothing if so, echoes back whose video it is, and confirms afterwards that the repost really is on your profile. Use the list-user-reposts script to see reposts, including the ones this creates.
Get TikTok hashtag info
Get a TikTok hashtag/challenge's stats (exact video & view counts), id, title and description by name (with or without a leading #). TikTok removed the web hashtag video feed, so only the hashtag's metadata is available — to list videos, use search_videos by keyword.
Download TikTok video (mp4)
Download a TikTok video's mp4 bytes by URL or id, returned as base64 (caller decodes to a file). Pick a quality to control size.
