Search Google Shopping products
Automatically search Google Shopping products on google.com. Search Google Shopping (the Shopping tab of Google Search) for products, in the country and language you choose, and get one results page: every card in page order, the Sponsored products row first (sponsored true) and then the regular cards, plus every refinement the page offers (stores, price bands, condition, category, features, sort order), each with the query and filter token that applies it. A card gives its title, price and struck-through price as shown, price notes such as Pre-owned, seller, delivery and returns lines, rating, review count, badges and picture. A sponsored card also gives its link to the store's page, the store's website, the store's own item id (a SKU, a TCIN at Target) and the offer it shows (a promo code, or an offer that needs none). A regular card has no store link on the results page: pass its product_id and catalog_id, with the same query and shoprs, to Get Google Shopping product for the offers of the stores that sell it, with their links, the price history and the reviews. Google does not show every browser the same cards: run Get Google Shopping product in the same browser as this search (open_browser, then both scripts with its browserId). Pass a refinement's query and shoprs to search with it; refinements chain. The Sponsored products row follows where the browser is, not gl. On a cloud browser, set country to the country you search: from a datacenter address (no country), Google can show wrong prices (a PS5 Slim at $1,178 where stores ask $649, December 2026) and products of other brands than the one searched, with nothing on the page that says so.
Inputs
query requiredWhat to search for, as typed in Google. A refinement's own query replaces it (stores and categories are added to the words).
gl optionalCountry whose stores and prices Google shows, as a two-letter code (us, gb, de, fr...).
Default: "us"hl optionalLanguage of the page, as a Google language code (en, de, fr...).
Default: "en"shoprs optionalFilter token of a refinement or sort order, from filters[].shoprs of an earlier answer, passed with that refinement's query. Omit for no filter.
Output
url requiredThe results page that was read.
items requiredThe cards in page order: the Sponsored products row (sponsored true) and the regular cards. Empty when Google shows none.
query requiredfilters requiredEvery refinement the page offers, in page order: the side panel, the chips above the results and the sort order.
FAQ
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; 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 blocks the search and the run cannot get through, it fails and says so; retry, or use your own browser.
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.
