Retrieve autocomplete suggestions from Google Search for a given query. This endpoint returns the same suggestions that appear in the Google search bar as users type, useful for keyword research, search UX enhancements, and understanding search intent.
HTTP Request
| |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
q | string | Yes | — | The query string to get suggestions for |
hl | string | No | "en" | Language code for suggestions (e.g., en, es, fr) |
pq | string | No | — | Previous query, used by Google to provide context-aware suggestions |
Response
The response returns a JSON array of suggestion strings.
| |
Code Examples
| |
| |
| |
Related Endpoints
- Search — Perform a full Google web search