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 | string | Request status |
data | array | List of autocomplete suggestions |
data[].name | string | Place or business name |
data[].address | string | Full address |
data[].business_id | string | Unique business identifier (use with detail endpoints) |
data[].type | string | Place type or category |
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