# Expand keywords from autocomplete (v1)

Looks up `query` plus one variation per `modifier` word (27 lookups for `alphabet`) and returns every suggestion, deduplicated in `keywords` and per lookup in `groups`. Takes about 2 seconds. An unknown query returns an empty `keywords` array.

- Platform: Autocomplete
- Request: `GET https://api.toolzerhub.com/v1/autocomplete/expand`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/autocomplete/expand-autocomplete-keywords

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `query` | query | yes | string | What a person has typed so far. |
| `source` | query | no | enum: google, youtube, google-shopping, google-news, bing, duckduckgo, amazon | Whose suggestions: Google web search, YouTube, Google Shopping, Google News, Bing, DuckDuckGo or Amazon. Default: google. |
| `language` | query | no | string | Language as a two-letter code, such as en, de or ja. Default: en. |
| `country` | query | no | string | Country as a two-letter code. For amazon it picks the store and must be one with an Amazon store. Default: US. |
| `modifier` | query | no | enum: alphabet, questions, prepositions | alphabet looks up the query followed by each letter a to z, questions puts how, what, why and 10 more in front, prepositions adds for, with, vs and 7 more after. Default: alphabet. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/autocomplete/expand?query=<query>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
