Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIGoogle Maps

    google.maps_search

    The places Google Maps lists for a search, up to a few hundred: name, categories, address, phone, website, rating, hours, coordinates and ids.

    Id
    google.maps_search
    Version
    1
    Billed per
    page — 1 unit for each result page a charged run read, at most the pages its input asks for
    Runs
    within one request

    Start it with POST /v1/scrapers/google.maps_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.maps_search
    FieldTypeDescription
    queryrequiredstringWhat to look for, e.g. coffee shops or emergency plumber.Limit: at least 1 characters, at most 200 characters.
    locationstringWhere: a city, a neighbourhood, a postcode, e.g. Austin, TX. Left out, the query itself must say where.Limit: at most 200 characters.
    languagestringLanguage of the page (Google's hl).Limit: matches ^[a-z]{2,3}(-[A-Za-z]{2,4})?$. Default: "en".
    max_resultsintegerReturn at most this many places. A list on Google Maps ends by itself, usually before two hundred. The run is charged for each page of 20 places it reads, at most this divided by 20, rounded up.Limit: 1 to 300. Default: 20.
    • One run is one search: query says what to look for, location where. Without location the query itself must say where (sushi restaurants in San Francisco); a search that names no place at all is not tied to any area, and its results are of little use.
    • The list is read twenty places at a time until the run has max_results places (20 by default, 300 at most) or the list ends. Google Maps ends a list by itself, usually before two hundred places. For more, search smaller areas.
    • phone, website and opening_hours are filled where Google Maps has them for the place; null or an empty list means it shows none.
    • address is the street address without the city, and full_address the whole of it; city, region, postal_code and country_code are its parts. A business that serves an area and shows no address has null in all of them.
    • latitude and longitude are the place's pin; place_id is Google's id for the place (ChIJ…), feature_id the id Maps itself uses, cid the number in a maps?cid= address. Any of the three names the place to google.maps_place.
    • category, categories, hours and description are in the words of the page, in the language asked for. hours is the state at the moment of the run (Open · Closes 7 PM); opening_hours is the week.
    • A search that names one place (Eiffel Tower) is answered with that place instead of a list: the run ends unsupported with single_place, and costs nothing. diagnostics.facts.place_id is the place's id.
    • A search Maps finds nothing for ends ok with zero records. Advertisements are not returned.
    • When Google refuses the request the run ends failed with captcha or blocked, and costs nothing — see the reasons of this family.

    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.maps_search
    FieldTypeNotes
    querystringThe search that was asked: the query and, after a comma, the location.
    positionintegerThe rank in the list, from 1. Advertisements are not returned and take no position.Limit: at least 1.
    namestringThe place's name, as the list shows it.
    place_idstring or nullGoogle's place id (ChIJ…).
    feature_idstring or nullGoogle Maps' own id of the place (0x…:0x…).
    urlstringThe place's page on Google Maps.
    categorystring or nullThe kind of place, as Google words it, e.g. Coffee shop.
    addressstring or nullThe address as the list shows it: usually the street address without the city.
    ratingnumber or nullThe average rating, 1 to 5.
    review_countinteger or nullThe number of reviews.
    pricestring or nullThe price level as shown, e.g. $$ or $10–20.
    phonestring or nullThe phone number, when the list shows one.
    websitestring or nullThe place's own website, when the list links it.
    latitudenumber or nullThe latitude of the place's pin, in decimal degrees, read from its address on Google Maps; null when the address carries none.
    longitudenumber or nullThe longitude of the place's pin, in decimal degrees, read from the same address.
    descriptionstring or nullThe one-line description Google shows, when there is one.
    hoursstring or nullThe opening state as shown at the time, e.g. Open · Closes 7 PM.
    categoriesarray of stringEvery kind Google Maps files the place under, the main one first.
    full_addressstring or nullThe whole address on one line, city, postcode and (outside the United States) country included.
    neighborhoodstring or nullThe neighbourhood or district, when Google Maps names one.
    citystring or nullThe city or town of the address.
    regionstring or nullThe state, province or region of the address, when Google Maps gives one.
    postal_codestring or nullThe postcode of the address.
    country_codestring or nullThe country as two letters, e.g. US.
    timezonestring or nullThe place's time zone, e.g. America/Chicago.
    phone_internationalstring or nullThe phone number in international form without spaces, e.g. +17732196071.
    cidstring or nullThe number Google Maps addresses the place by (https://www.google.com/maps?cid=…).
    opening_hoursarray of objectThe opening times of each day of the week, Monday first; empty when Google Maps lists none.
    day (in opening_hours[])stringThe day's name in the language of the page, e.g. Monday.
    day_of_week (in opening_hours[])integerThe day as a number: 1 is Monday, 7 is Sunday.Limit: 1 to 7.
    hours (in opening_hours[])array of stringThe opening times as written, one entry per opening, e.g. 10 AM–12 PM and 1–5 PM; Closed or Open 24 hours where the day has no times.
    imagestring or nullThe address of the place's main photo, when it has one.
    permanently_closedbooleanTrue when Google Maps marks the place as permanently closed.Default: false.
    fetched_atstring (date-time)When the list 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.maps_search/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"query":"emergency plumber","location":"Chicago, IL"}}'
    
    # 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.maps_search", {
        "query": "emergency plumber",
        "location": "Chicago, IL",
    })
    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.maps_search", {
      query: "emergency plumber",
      location: "Chicago, IL",
    });
    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.maps_search", map[string]any{"query": "emergency plumber", "location": "Chicago, IL"})
    	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.maps_search", Map.of("query", "emergency plumber", "location", "Chicago, IL"));
            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.maps_search --input-json '{"query":"emergency plumber","location":"Chicago, IL"}'

    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": "emergency plumber",
        "location": "Chicago, IL"
      }
    }

    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.maps_search",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "query": "emergency plumber",
        "location": "Chicago, IL"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": null,
      "units_per_record": null,
      "units_per_page": 1,
      "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": [
        {
          "query": "emergency plumber, Chicago, IL",
          "position": 1,
          "name": "Rescue Plumbing",
          "place_id": "ChIJkaUn1JPTD4gR7ZWpE9cCuow",
          "feature_id": "0x880fd393d427a591:0x8cba02d713a995ed",
          "url": "https://www.google.com/maps/place/?q=place_id:ChIJkaUn1JPTD4gR7ZWpE9cCuow",
          "category": "Plumber",
          "address": "1137 W Webster Ave",
          "rating": 4.8,
          "review_count": 1556,
          "price": null,
          "phone": "(773) 219-6071",
          "website": "https://www.myrescueplumbing.com/",
          "latitude": 41.9214708,
          "longitude": -87.6573983,
          "description": null,
          "hours": "Open 24 hours",
          "categories": [
            "Plumber",
            "Drainage service"
          ],
          "full_address": "1137 W Webster Ave, Chicago, IL 60614",
          "neighborhood": "Sheffield Neighbors",
          "city": "Chicago",
          "region": "Illinois",
          "postal_code": "60614",
          "country_code": "US",
          "timezone": "America/Chicago",
          "phone_international": "+17732196071",
          "cid": "10140420633749198317",
          "opening_hours": [
            {
              "day": "Monday",
              "day_of_week": 1,
              "hours": [
                "Open 24 hours"
              ]
            },
            {
              "day": "Tuesday",
              "day_of_week": 2,
              "hours": [
                "Open 24 hours"
              ]
            }
          ],
          "image": "https://lh3.googleusercontent.com/grass-cs/AABkmLcg3PzlfTtL_cFgHJYGWtZNC-jcQt5qtoelnK2TzLe2mbEUHFa1_0nPg6VOw3YFUGev64fE6V8NuSPwMNAZubrvB2fQPmp7jkluU3T3EAIC1kIrkrkSHYr7MJP9rTqB4XzUMJre4A=w114-h86-k-no",
          "permanently_closed": false,
          "fetched_at": "2026-11-19T18:07:40.570264Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: opening_hours: 7 items, the first 2 shown.

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