# 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.

Google Maps search, one of the Google Maps scrapers.

| | |
| --- | --- |
| 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](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | What to look for, e.g. `coffee shops` or `emergency plumber`. Limit: at least 1 characters, at most 200 characters. |
| `location` | string | no | 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 | no | Language of the page (Google's `hl`). Limit: matches ^[a-z]{2,3}(-[A-Za-z]{2,4})?$. Default: `"en"`. |
| `max_results` | integer | no | 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: `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](https://docs.enrichednow.com/results-and-statuses.md#google-maps).

## 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. |
| `opening_hours[].day` | string | The day's name in the language of the page, e.g. `Monday`. |
| `opening_hours[].day_of_week` | integer | The day as a number: 1 is Monday, 7 is Sunday. Limit: 1 to 7. |
| `opening_hours[].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

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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"}}'
```

## 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](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Google Maps scrapers](https://docs.enrichednow.com/results-and-statuses.md#google-maps) are in their own section there.
