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_rerankdebugto include debug metadatabypass_cacheorX-Bypass-Cacheto skip cached responsesfiltersas a JSON string for exact and range filteringuser_idfor personalization-aware rankingvector_backendcurrentlytursoorzvecbenchmarkto compare vector backend timing
Response shape
The response includes:
- normalized and optionally corrected query values
- the effective mode used
degradedwhen fallback behavior was neededsuggestionswith titles, subtitles, descriptions, URLs, images, price, currency, score, and extra metadata- optional debug data
Example
curl "https://api.suggestapi.com/v1/autocomplete?index=products&query=diaphragm%20pump&limit=8&mode=hybrid&debug=true" \
-H "x-api-key: <public-key>"
GET /v1/typeahead
Fast prefix suggestion endpoint backed by the suggestions table.
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