autocompletePRO
Type: 'autocomplete'
Query suggestions as the user types. Pass
type: 'autocomplete' to search:const { results } = await microlink.search('javascript debounce', { type: 'autocomplete' })
results.map(({ value }) => value)
// [
// 'javascript debounce',
// 'javascript debounce function',
// 'javascript debounce vs throttle',
// …
// ]| Field | Type | Description |
|---|---|---|
value | string | Suggested query string |
Lightweight enough to run before a heavier surface. Use it to discover what people are actually searching for, then route those expanded queries to search, news, or scholar.
See the autocomplete guide for query-expansion workflows.