Official scripts
Explore our curated collection of scripts
List Grok Chats
List recent Grok conversations (newest first): id, title, and a human-readable last-activity label as Grok itself displays it. A signed-out browser fails with a signed-out error asking to sign in at grok.com.
Grok whoami
Report which Grok account this browser is signed in as: the account email and name. When the browser is signed out of Grok, the run fails with a signed-out error asking you to sign in to grok.com.
Grok login (Google SSO)
Log into Grok with Continue with Google, handling the Google account chooser and consent screen. Returns straight away if you are already signed in, and reports the Grok account email. Stops with a clear message instead of signing up if the Google account has no Grok account yet. Optionally pass which Google account to use. Needs a browser already signed in to Google.
Ask Grok
Open a new Grok conversation, send one question, wait until Grok has finished answering, and return the conversation id, the answer as Grok wrote it (Markdown), and the web sources the answer cites (empty when it cites none). A signed-out browser fails with a signed-out error asking to sign in to grok.com. If Grok does not finish an answer (for example when the account has reached its usage limit), the run fails with an error instead of returning part of an answer.
Get Grok Chat Messages
Full message transcript of one Grok conversation by id, oldest to newest: each message's role (user/assistant), text, and any inline-cited sources on assistant messages.
Delete Grok Chat
Permanently delete one Grok conversation by id. Deletion happens immediately when clicked — Grok shows a brief in-app "Undo" toast, but this script does not wait for or use it, so treat the deletion as irreversible once this returns.
Search RemoteOK jobs
Search RemoteOK's full live listings database — a fuzzy, ordered full-text match across every posting, the same as the site's own search box, not just the most recent ones. Omit query for the unfiltered recent feed. Paginates via offset, in pages of about 50. Salary is reconciled against RemoteOK's own published listing data, because the salary attached to a search result is frequently a generic 90000-150000 placeholder unrelated to the actual role.
Search TikTok users
Search TikTok accounts by keyword. Returns the top ~10 matches (TikTok web caps user search; not deeply paginable).
Get TikTok profile
Get a TikTok user's profile (bio, stats, verified, secUid) by @username.
Get TikTok post analytics
Read the TikTok Studio analytics for one of your own posts (video or photo), given its URL or id. Returns views, likes, comments, shares, saves, total play time, average watch time, finish rate, new followers and traffic sources (For You, Follow, Search…). Metrics TikTok hasn't computed yet (it needs more views) come back as null. Read-only. It fails with a clear error if the post isn't on the signed-in account.
Get TikTok video
Get a TikTok video's caption, stats, author, music, hashtags and metadata by URL or video id.
Subscribe to Substack publication
Subscribe the logged-in account to a Substack publication's free tier.
Get TikTok search suggestions
Get TikTok's search autocomplete suggestions for a query (the dropdown TikTok shows as you type). Some suggestions are hashtags (marked isHashtag) — pipe those into get_hashtag_info for stats. TikTok web has no hashtag-search results page, so this autocomplete is the only keyword-to-hashtag discovery surface.
Like TikTok Comment
Likes a top-level comment on a public TikTok video, matched by its exact text. Idempotent — already-liked comments are reported, not re-liked.
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 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).
Ahrefs unofficial API: get keyword ideas with search volume
An unofficial Ahrefs keyword API: keyword and question ideas for a seed, with monthly search volume and difficulty, free, no account. Get keyword ideas for a seed keyword from Ahrefs' free keyword generator, with each one's monthly Google search volume range and ranking difficulty in a chosen country. Returns the first 20 keywords that contain the seed, the first 20 phrased as questions, and how many of each Ahrefs knows in total. Volume comes as a range, as the free tool shows it: fewer than 100, or more than 100, 1,000, 10,000 or 100,000 searches a month. No login required. Run seeds one after another on one browser: several at once from the same browser can go unanswered.
Get TikTok music info
Get a TikTok sound's metadata by music id: title, author, duration, video count, original/commercial flags, cover and play URL. Complements get_music_videos (which lists the videos using the sound).
Get Trustpilot company reviews
Get one page (20) of a company's Trustpilot reviews: author, rating, title, text, dates, likes, verification and the company's reply. Supports the site's own filters as args (page, sort, stars, language, keyword search, verified, date range). Defaults to returning reviews in every language so none are silently filtered out by locale.
Crunchbase: Get Company News
Recent news and press mentions for one company from Crunchbase, by permalink (title, publisher, author, URL, date). Returns the 10 most recent items; older history isn't available on the free tier.
Get G2 product profile
Fetch a G2 product's profile by slug: vendor, star rating, review count, pricing tier names, and pros/cons themes with mention counts drawn from real user reviews. A slug G2 does not know fails with an error that points to g2.com/search_products.
Etsy get shop
Reads an Etsy shop's name, rating, sales, years active, location and featured items from its public storefront page.
Search Wise transactions
Search a Wise profile's transactions by merchant/name (server-side), optionally narrowed to a date range. Returns id, title, amount, date, status and whether a receipt is attached.
List Substack newsletter posts
List a Substack publication's posts from its archive, newest or top first, with optional keyword search and pagination. Returns each post's title, slug, publish date, paywall status, and reaction/comment/restack counts.
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.
