Retrieve place autocomplete suggestions from Google Maps for a given query. Returns suggestions for places, addresses, and businesses as users type, useful for building location search interfaces. Supports geographic biasing and filtering by place type.
HTTP Request
| |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | The search query to get suggestions for |
language | string | No | "en" | Language code for the response |
country | string | No | "us" | Country code for regional bias |
lat | number | No | — | Latitude to bias results toward a specific area |
lng | number | No | — | Longitude to bias results toward a specific area |
filter_types | string | No | — | Comma-separated list of place types to filter results (e.g., restaurant,cafe) |
Response
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique identifier for this request |
data | array | List of autocomplete suggestions |
data[].title | string | The suggested search text, lowercased |
data[].description | string/null | Secondary line, when the suggestion resolves to a place |
data[].google_id | string/null | Business identifier, when the suggestion resolves to a place |
data[].place_id | string/null | Google place ID, when available |
data[].latitude | number/null | Latitude, when the suggestion resolves to a place |
data[].longitude | number/null | Longitude, when the suggestion resolves to a place |
data[].country | string/null | Country code, when available |
data[].type | string | Suggestion type, e.g. "other" or "general search" |
Notes
- This endpoint returns search-term suggestions, the same list Google shows as you type. It is not a place lookup.
- In practice most suggestions come back with
google_id,place_id, and the coordinate fields set tonull, because the suggestion is a query string rather than a specific business. To turn a name into a business identifier, use Locate and Search and readgoogle_idfrom the first result.
Code Examples
| |
| |
| |
Related Endpoints
- Search Nearby — Search for businesses near a location
- Business Details — Get full details for a suggested business
- Query Locate — Geocode a location to coordinates