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.
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.
Unlike YouTube video
Remove your like from a YouTube video — has no effect if it isn't currently liked.
Reply to YouTube comment
Reply to a YouTube comment by id. Returns the new reply's id.
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.
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.
Get Instagram user reels
Fetch an Instagram user's reels by their username; max=0 returns all. Returns pk, code, url, taken_at, caption, thumbnail, video_url, like_count, play_count, comment_count, and video_duration.
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.
Get TikTok user favorites
List the videos a TikTok user has added to their Favorites (their Favoris tab), by @username. Returns [] unless the account has set Favorites to public (private by default).
Unlike a TikTok video
Remove your like from a TikTok video (as the logged-in account) by URL or id. Safe to repeat: it does nothing if you haven't liked it.
Get TikTok comment replies
List the replies to a TikTok comment, given the parent comment id and the video id.
