Get Current Google User
Automatically get Current Google User on google.com. Report which Google account this browser is signed in as: display name and email, read from Google's account button on myaccount.google.com. When the browser is not signed in, the run fails with a signed-out error that says to sign in, so it can be used to check a Google session before running other Google scripts.
Input
None
Output
loggedIn requiredname optionalemail optionalFAQ
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.
Get Google AI Overview
Run a Google search and return the AI Overview Google shows for it: whether there is one, its answer as Markdown (headings, lists, tables and links kept), and the pages it cites, in the order the answer first cites them, each with url, title, site, byline and snippet. Google shows an AI Overview for some searches only: for the others shown is false and sources is empty. The overview changes with the country the browser is in: from two countries, the same search can cite mostly different pages. Recommended: run from the country of the people you measure for, and keep the same browser and country for every run you compare. On a managed browser, choose that country (in the US, region us-east-1); on your own browser, the country is where you are. From one place, the cited pages also change a little from run to run, so compare several runs, not one. When Google shows its anti-bot check and it cannot be cleared, the run fails and says so; this happens more often on managed browsers outside the US.
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.
