1,423 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
List Google Search Console sitemaps
Lists the sitemaps submitted for a Google Search Console property, with when each was submitted and last read, its fetch status, and how many pages and videos Google discovered in it. Takes the property as listed by search.google.com/list_properties.
Search Google Play apps
Search the Google Play Store for apps by keyword: package id, name, developer, rating, and icon for each result. No login required.
Inspect a URL in Google Search Console
Run Google Search Console's URL Inspection for one page of a property and return what Google's index holds for it: whether the URL is on Google, its coverage state as Search Console names it (for example submitted_and_indexed, crawled_currently_not_indexed, url_unknown), when Google last crawled it, the sitemaps that list it, the pages that link to it, and the canonical the page declares. Lists are empty and the last crawl is null when Google has none. Takes the property as search.google.com/list_properties returns it, and the Google account to act as, by its number from mail.google.com/list_accounts. A URL outside the property, or an account that cannot open it, fails with a message that says so.
Request indexing of a URL in Google Search Console
Ask Google to crawl and index one page of a Search Console property, as URL Inspection's Request indexing does, and return Google's answer. Google first tests the page live: when the test finds an issue (for example the page answers 404), the request is rejected and `liveCoverageState` says why; otherwise Google adds the URL to its priority crawl queue. Accepted means queued, not indexed: check later with search.google.com/inspect_url. Takes 20 seconds to about 3 minutes. Google takes a limited number of requests a day per property; past it, the script fails with a message that says so. Takes the property as search.google.com/list_properties returns it, and the Google account to act as, by its number from mail.google.com/list_accounts. A URL outside the property, or an account that cannot open it, fails with a message that says so.
List Google Search Console properties
Lists every Google Search Console property the signed-in Google account can open, both website (URL prefix) and Domain properties, with the account they were read from. Returns an empty list for an account with no properties. Pass a property's siteUrl to the other Search Console scripts. A signed-out browser fails with a signed-out error asking to sign in to Google.
Search Google
Run a Google search and return one page of organic results (title, url, site, byline, meta, snippet), with Google's link wrappers resolved to the destination url. Results can be personalized to the browser's Google account and location. Narrow queries return the same results in the same order on replay; very broad ones may reorder. For more coverage, fetch several pages or split the query (different site: paths, phrases, or freshness windows), and dedupe by url. An empty list means Google found nothing; when Google shows its anti-bot check, the run fails and says so.
Search flights on Google Flights
Search one-way or round-trip flights on Google Flights between two airports or cities, given as IATA codes ("CDG", or "PAR" for all Paris airports): a fixed date, or a number of days after today for searches that run on a schedule. You can set the passengers, the cabin, the maximum number of stops, the tab (best or cheapest) and the price currency. Returns the dates searched and every flight the page lists: local departure and arrival times, duration, stops, airlines, the total price for all passengers (null when Google shows none), whether Google ranks it as a top flight, whether it is a self-transfer on separate tickets, the layovers, and each leg with its flight number and aircraft. A round trip has two steps, as on the site. With a return date, the answer lists the outbound flights, each priced for the round trip with the cheapest return Google pairs with it. Then pass the legs of the outbound flight you choose as outboundLegs, with the same search: the answer lists the return flights, each with the final round-trip price. A search with no flights returns an empty list. An unknown code, a route Google does not sell, a date in the past or more than about 11 months ahead, a return date before the departure date, and an unsupported currency fail with a message that names the problem. On a managed browser, set a country.
Search Google Maps places
Search Google Maps for places, optionally near a location, and get the list Maps shows, in its order: name, address, phone, website, main category and all categories, star rating, number of reviews, price range, coordinates and the Google place id. Use the place id with get_place for the opening hours and with get_place_reviews for the reviews, and the coordinates with get_directions for the routes to or from a place. Google Maps lists at most 120 places for one search; complete is true when that list ended, false when cap stopped it first. A precise query that Maps opens as one place returns that one place. Category names follow hl, or the browser's language when hl is empty.
Search Gmail
Search the signed-in Gmail with the native query syntax (from:, to:, subject:, has:attachment, after:/before:, labels…) and return matching threads: threadId (feed it to get_thread / reply_to_email), sender, senderEmail, subject, snippet, date, unread, starred, hasAttachment. Results are threads rather than individual messages, which is Gmail's own search granularity, and only the first page of results is returned (up to 50).
Search Google Calendar events
Search the signed-in Google Calendar across all its calendars, as the Calendar search box does. The query matches event content (title, description, location), not calendar names. Returns count, complete, timezone and events (id, calendar, eid, title, all_day, start, end, location), with start and end as wall-clock times in that timezone. Calendar returns 200 events at most, the nearest to today: complete is false when more matched, and there is no next page, so narrow the query or use list_events for a date range. Pass eid to get_event, update_event or delete_event.
Search Google News
Search Google News for articles by keyword and return each result's title, source, publish time, byline and Google News article link, up to count articles. complete says whether these are all the results Google News has for the query. An empty list means the search matched nothing. Supports a recency filter (when, for example 7d) and the country and language edition. Google often refuses these searches from managed browsers, so run it on your own browser.
Get Google Search autocomplete suggestions
Get the autocomplete suggestions Google Search offers for a query, in the order it ranks them: the completions that appear as you type in the search box. Partial input works well, so "best crm for" returns the ways people finish that phrase, useful for SEO and keyword research. Suggestions follow the browser's account and location. A query Google has no completions for returns an empty list. Google sometimes answers an unfamiliar term with completions of a similar one.
Search Gemini chats
Search your Gemini conversations (the "Search chats" box): server-side full-text over titles and message bodies.
Search Google Drive
Search Google Drive by free text in names and contents, or filter by name, file type, owner and modified-date range. Returns each match's id, name and link, up to count matches (50 by default, 1000 at most). complete is true when Drive has no more matches to show, false when count was reached first. Drive's own search can show fewer matches than a folder holds for a broad term. Pass authuser to choose the signed-in Google account. No match returns an empty list. Fails when signed out.
Search G2 software products
Search G2's software directory by free-text query, one result page at a time (page arg). Returns the products G2 lists for the query with slug, name, star rating, review count and description, deduplicated. The slug feeds g2.com/get_product. Whitespace in the query is normalised. No login required. A query G2 has no product for returns an empty list.
Google Scholar unofficial API: search authors
Search Google Scholar's author (Profiles) directory by name/keywords. Returns each matching author's id, name, affiliation, verified-email domain, interest tags, and total cited-by count, plus a cursor for the next page.
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.
Yahoo web search
Search the web with Yahoo Search and get one page of organic results: each result's position, title, link, displayed site and snippet. Sponsored results are left out. Page through results with the page number.
Search Polymarket markets
Search Polymarket events by keyword. Returns matching markets with title, URL, volume, end date, and current top outcome.
Suggest Trainline stations and cities
Look up stations and cities on Trainline by name, as its From and To fields suggest them while you type, in Trainline's own order. Returns each place's name, type (station or city), country code and Trainline code, which thetrainline.com/search_journeys takes as origin and destination. Trainline's matching is loose: a name it does not know can still bring up an unrelated place, so check the names before you search. A text Trainline has no suggestion for returns an empty list.
Search Eventbrite events
Search Eventbrite for events by keyword in a city, or online, one results page at a time. Returns each event's id, name, link, dates and times, time zone, venue and address, whether it is online, its summary, organizer id, categories and image, plus the total number of matching events and pages.
Get G2 product alternatives
List a G2 product's alternatives/competitors from its Alternatives page: name, product slug, and G2 rating. No login required.
Google Trends trending now searches
Google Trends "Trending Now": every trending search for a country over the last 4h/24h/48h/7d — title, search volume, growth %, start/end time, active flag, breakdown terms.
Search the Meta (Facebook) Ad Library
Search Meta's public Ad Library for ads running on Facebook, Instagram, Messenger and Threads, by keyword or by advertiser page, in one country or all. Returns each ad's library id and link, advertiser page, active status, start and end dates, platforms, ad text, headline, landing link, call to action, image and video links, and how many versions it has. No account needed.
Search Behance projects
Search Behance projects by keyword, returning title, url, owner, thumbnail, likes and views for each result.
