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.
| Field | Type | Description |
|---|---|---|
queryrequired | string | What to look for, e.g. coffee shops or emergency plumber.Limit: at least 1 characters, at most 200 characters. |
location | string | Where: a city, a neighbourhood, a postcode, e.g. Austin, TX. Left out, the query itself must say where.Limit: at most 200 characters. |
language | string | Language of the page (Google's hl).Limit: matches ^[a-z]{2,3}(-[A-Za-z]{2,4})?$. Default: "en". |
max_results | integer | Return 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:
querysays what to look for,locationwhere. Withoutlocationthe 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_resultsplaces (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,websiteandopening_hoursare filled where Google Maps has them for the place;nullor an empty list means it shows none.addressis the street address without the city, andfull_addressthe whole of it;city,region,postal_codeandcountry_codeare its parts. A business that serves an area and shows no address hasnullin all of them.latitudeandlongitudeare the place's pin;place_idis Google's id for the place (ChIJ…),feature_idthe id Maps itself uses,cidthe number in amaps?cid=address. Any of the three names the place togoogle.maps_place.category,categories,hoursanddescriptionare in the words of the page, in thelanguageasked for.hoursis the state at the moment of the run (Open · Closes 7 PM);opening_hoursis the week.- A search that names one place (
Eiffel Tower) is answered with that place instead of a list: the run endsunsupportedwithsingle_place, and costs nothing.diagnostics.facts.place_idis the place's id. - A search Maps finds nothing for ends
okwith zero records. Advertisements are not returned. - When Google refuses the request the run ends
failedwithcaptchaorblocked, 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.
| Field | Type | Notes |
|---|---|---|
query | string | The search that was asked: the query and, after a comma, the location. |
position | integer | The rank in the list, from 1. Advertisements are not returned and take no position.Limit: at least 1. |
name | string | The place's name, as the list shows it. |
place_id | string or null | Google's place id (ChIJ…). |
feature_id | string or null | Google Maps' own id of the place (0x…:0x…). |
url | string | The place's page on Google Maps. |
category | string or null | The kind of place, as Google words it, e.g. Coffee shop. |
address | string or null | The address as the list shows it: usually the street address without the city. |
rating | number or null | The average rating, 1 to 5. |
review_count | integer or null | The number of reviews. |
price | string or null | The price level as shown, e.g. $$ or $10–20. |
phone | string or null | The phone number, when the list shows one. |
website | string or null | The place's own website, when the list links it. |
latitude | number or null | The latitude of the place's pin, in decimal degrees, read from its address on Google Maps; null when the address carries none. |
longitude | number or null | The longitude of the place's pin, in decimal degrees, read from the same address. |
description | string or null | The one-line description Google shows, when there is one. |
hours | string or null | The opening state as shown at the time, e.g. Open · Closes 7 PM. |
categories | array of string | Every kind Google Maps files the place under, the main one first. |
full_address | string or null | The whole address on one line, city, postcode and (outside the United States) country included. |
neighborhood | string or null | The neighbourhood or district, when Google Maps names one. |
city | string or null | The city or town of the address. |
region | string or null | The state, province or region of the address, when Google Maps gives one. |
postal_code | string or null | The postcode of the address. |
country_code | string or null | The country as two letters, e.g. US. |
timezone | string or null | The place's time zone, e.g. America/Chicago. |
phone_international | string or null | The phone number in international form without spaces, e.g. +17732196071. |
cid | string or null | The number Google Maps addresses the place by (https://www.google.com/maps?cid=…). |
opening_hours | array of object | The opening times of each day of the week, Monday first; empty when Google Maps lists none. |
day (in opening_hours[]) | string | The day's name in the language of the page, e.g. Monday. |
day_of_week (in opening_hours[]) | integer | The day as a number: 1 is Monday, 7 is Sunday.Limit: 1 to 7. |
hours (in opening_hours[]) | array of string | The 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. |
image | string or null | The address of the place's main photo, when it has one. |
permanently_closed | boolean | True when Google Maps marks the place as permanently closed.Default: false. |
fetched_at | string (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:
{
"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.
{
"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.
{
"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.