Search Google Maps (SerpAPI)
google_maps_searchSearch Google Maps via SerpAPI. type=search (default) returns a list of places for a query q — paginate with start (+20 per page). type=place returns the full details of a single place identified by place_id or data_cid (both obtainable from a prior search result). Center the map with ll ('@lat,lon,zoomz') or lat/lon/z. The place_id / data_cid in results feed google_maps_reviews.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| m | No | Alternative map scale parameter, 1-15028132 (an alternative to the zoom level). | |
| q | No | Search query, e.g. 'Coffee' or 'Restaurants'. Required for a search (type=search) unless place_id/data_cid is given. | |
| z | No | Map zoom level, 3-30 (higher = more zoomed in). Used with lat/lon or location; defaults to 14 when either is given without z or m. | |
| gl | No | Country code for the search, e.g. 'us', 'uk', 'de'. | |
| hl | No | Language code, e.g. 'en', 'es', 'fr', 'pt-br'. | |
| ll | No | Map center as '@lat,lon,zoomz' (latitude, longitude, zoom), e.g. '@40.7455096,-74.0083012,14z'. Zoom recommended 3z-15z. | |
| lat | No | Latitude of the map center (used with lon; alternative to ll). | |
| lon | No | Longitude of the map center (used with lat; alternative to ll). | |
| type | No | 'search' (default) returns a list of places for q; 'place' returns details for a single place (requires place_id or data_cid). | |
| start | No | Result offset for pagination (0-based); 20 results per page, so use 20, 40, …. | |
| nearby | No | Search nearby the given coordinates. Default false. | |
| data_cid | No | Google Maps CID (data_cid) of a specific place (from a prior search result). Use with type=place; also feeds google_maps_reviews. | |
| location | No | Geographic origin of the search — a SerpAPI canonical city-level name, e.g. 'Warsaw,Masovian Voivodeship,Poland'. For a small town or a district, put the place in q instead. SerpAPI requires z or m alongside it — z defaults to 14 when neither is given. | |
| no_cache | No | Force a fresh SerpAPI fetch and bypass this server's result cache. Default false. | |
| place_id | No | Google Maps place_id of a specific place — an opaque string like 'ChIJ…' from a google_maps_search result. A digit-only id is a Google CID (what google_local_search calls place_id) and is sent as data_cid automatically. Use with type=place; also feeds google_maps_reviews. | |
| max_price | No | Maximum price-level filter for places. | |
| min_price | No | Minimum price-level filter for places. | |
| min_rating | No | Minimum star-rating filter. Must be a string like '4.0' (a number such as 4.0 stringifies to '4' and breaks the filter). | |
| open_state | No | Open-state filter: 'now' = open now, '24h' = open 24 hours. Mutually exclusive with open_on_day/open_at_hour. | |
| zero_trace | No | Enterprise-only ZeroTrace mode: don't store search params/metadata on SerpAPI. Default false. | |
| open_on_day | No | Filter to places open on a given day (mon-sun). Combine with open_at_hour. Mutually exclusive with open_state. | |
| open_at_hour | No | Filter to places open at a given hour, 0-23. Use with open_on_day. Mutually exclusive with open_state. | |
| google_domain | No | Google domain to use, e.g. 'google.com'. |