GET /v1/autocomplete
Primary ranked search endpoint.
Important query params
queryrequired, minimum 1 characterindexlogical index ID, defaults todefaultlimitfrom 1 to 50modeone offts_only,vector_only,hybrid,fts_rerankbypass_cacheorX-Bypass-Cacheto skip cached responsesfiltersas a JSON string for exact and range filteringuser_idfor personalization-aware ranking
Response shape
The response includes:
- normalized and optionally corrected query values
- the effective mode used
suggestionswith titles, subtitles, descriptions, URLs, images, price, currency, score, and extra metadata
Example
curl "https://api.suggestapi.com/v1/autocomplete?index=products&query=diaphragm%20pump&limit=8&mode=hybrid" \
-H "x-api-key: <public-key>"
GET /v1/typeahead
Fast prefix suggestion endpoint for search-as-you-type experiences.
Important query params
queryrequiredindexlogical index IDlimitfrom 1 to 50bypass_cacheorX-Bypass-Cache
Notes
- optimized for low-latency suggestion UIs
- supports spell correction and typo-tolerant fuzzy matching
- returns simpler suggestion payloads than
/autocomplete