Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIGoogle Search

    google.search

    A Google Search results page: organic results with position, title, address and snippet, plus related questions, related searches, top stories, local places, the knowledge panel, the AI Overview, recipes, sports games and the corrected query where shown.

    Id
    google.search
    Version
    2
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/google.search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of google.search
    FieldTypeDescription
    queryrequiredstringWhat to search for, as typed into Google Search.Limit: at least 1 characters, at most 400 characters.
    countrystringTwo-letter country code the results are ranked for (Google's gl), e.g. us, gb, de.Default: "us".
    languagestringLanguage of the results page (Google's hl), e.g. en, de, pt-BR.Default: "en".
    pageintegerThe results page, from 1. About ten organic results a page.Limit: 1 to 30. Default: 1.
    numintegerReturn at most this many organic results of the page.Limit: 1 to 10. Default: 10.
    • One run reads one results page. page asks for a later one (1 to 30); num trims the organic results returned, and the page's other blocks are returned whole.
    • Every record has a type. organic records come first, in the page's order, with position counted across pages. The other types follow, each numbered from 1: related_question, related_search, top_story, local_place, knowledge_panel, ai_overview, recipe (the recipes block: site, rating, time and ingredients), sports_game (each game of the sports block, with the two teams, their scores where played, the status and the day) and spelling (the query Google searched in place of the one asked, with the one asked in attributes.searched_instead_of, or the one it suggests under "Did you mean:"). A field that does not belong to a record's type is null.
    • url is the page a result leads to, read from the result's own link. If an address could not be read the record has url null and the run ends partial with link_unresolved.
    • country and language steer which results are preferred; the request itself is made from the United States.
    • The AI Overview is returned when the results page carries it, with the pages it cites in sources. On many pages it is loaded after the page and is then not returned. Advertisements are not returned.
    • Most runs take about half a minute. The first run after a quiet spell can take over a minute: call with ?wait=300, or poll the run — see the reasons of this family.
    • A search nothing matches ends ok with zero records. When Google refuses the page the run ends failed with captcha, and costs nothing.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of google.search
    FieldTypeNotes
    type"organic" | "related_question" | "related_search" | "top_story" | "local_place" | "knowledge_panel" | "ai_overview" | "recipe" | "sports_game" | "spelling"The kind of item: organic (a web result), related_question ("People also ask"), related_search, top_story, local_place (the map pack), knowledge_panel, ai_overview, recipe (the "Recipes" block), sports_game (a game of the sports block: a team's or a match's results and fixtures) or spelling (the query Google searched in place of the one asked, or suggests). Advertisements are not returned.Default: "organic".
    querystringThe query that was asked.
    positionintegerThe rank among the items of the same type, from 1. For organic results it is counted across pages.Limit: at least 1.
    pageintegerThe results page the item was on.Limit: at least 1.
    titlestringThe item's title as the page shows it: a result's or a story's headline, the question, the suggested search, the place's or the panel's name; AI Overview for the AI answer; the recipe's name; the two teams of a game, <first> vs <second> in the page's order; for spelling, the query Google searched instead, or the one it suggests.
    urlstring or nullThe page the item leads to: an organic result, a top story, a recipe, the knowledge panel's description source. For an organic result it is null only when the address could not be read, and the run is then partial; for the other types it is null when the page gives none or it was not read in the run's time.
    displayed_urlstring or nullOrganic results: the address as Google shows it above the title, e.g. https://example.com › docs.
    snippetstring or nullThe text of the item: under an organic result's title (without the date), the knowledge panel's description, or the whole text of the AI answer; for spelling, the line's own words: These are results for (Google searched the corrected query) or Did you mean: (it searched the query as asked and suggests the corrected one).
    datestring or nullThe date or age Google shows with a result or a story, or the day of a game, as it is written there, e.g. Mar 17, 2026, 2 hours ago, Sun, Nov 15.
    sourcestring or nullTop stories: the publisher. Recipes: the site, e.g. Allrecipes. Knowledge panel: where the description comes from, e.g. Wikipedia.
    ratingnumber or nullLocal places and recipes: the average rating, 1 to 5.
    review_countinteger or nullLocal places: the number of reviews.
    categorystring or nullLocal places: the kind of place, e.g. Dentist. Knowledge panel: the line under the name, e.g. American singer-songwriter.
    addressstring or nullLocal places: the address line as the page shows it: a street address, or a district or town.
    attributesobject of string values or nullKnowledge panel: its facts, label to value as shown, e.g. {"Born": "December 13, 1989"}. Recipe: reviews (the count as shown, e.g. 15K), total_time, ingredients. Sports game: team_1, team_1_score, team_2, team_2_score, status (e.g. Final, FT, Starts at 11:00 PM), and competition or stage where shown. Spelling: searched_instead_of, the query as asked.
    sourcesarray of object or nullAI answer: the pages it cites.
    title (in sources[])stringThe cited page's title or publisher, as the answer shows it.
    url (in sources[])string or nullThe cited page's address; null when it could not be read in the run's time.
    fetched_atstring (date-time)When the page was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/google.search/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"query":"best espresso machine"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("google.search", {"query": "best espresso machine"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("google.search", { query: "best espresso machine" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "google.search", map[string]any{"query": "best espresso machine"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("google.search", Map.of("query", "best espresso machine"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run google.search --input 'query=best espresso machine'

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "query": "best espresso machine"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "google.search",
      "scraper_version": 2,
      "status": "ok",
      "reason": null,
      "input": {
        "query": "best espresso machine"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "type": "organic",
          "query": "best espresso machine",
          "position": 1,
          "page": 1,
          "title": "The Best Espresso Machines for Every Budget, Tested and ...",
          "url": "https://www.aol.com/articles/best-espresso-machines-every-budget-191700000.html",
          "displayed_url": "https://www.aol.com › articles › best-espresso-machines...",
          "snippet": "Best Overall: Breville Barista Express Impress Espresso Machine ; Best Entry-Level: Breville Barista Express Espresso Machine ; Most Versatile: De ... Read more",
          "date": "Oct 26, 2026",
          "source": null,
          "rating": null,
          "review_count": null,
          "category": null,
          "address": null,
          "attributes": null,
          "sources": null,
          "fetched_at": "2026-11-19T16:33:36.140541Z"
        }
      ],
      "next_cursor": null
    }

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Google Search scrapers are in their own section there.