Search Autocomplete
Search
Search Autocomplete
Get search suggestions for autocomplete
GET
Search Autocomplete
Documentation Index
Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt
Use this file to discover all available pages before exploring further.
Search Autocomplete
Returns search suggestions for autocomplete functionality. Provides fast, lightweight results for real-time search interfaces.Request
Parameters
Partial search query (minimum 2 characters)
Maximum suggestions to return (max 20)
Comma-separated list of result types:
product, collection, page, article, queryResponse
Whether the request succeeded
Suggestion results grouped by type
Example Response
Lightweight Product Response
Autocomplete returns minimal product data for fast responses:| Field | Description |
|---|---|
id | Product ID |
title | Product title |
handle | URL handle |
price | Lowest variant price |
image | First product image (small) |
available | Availability status |
Performance Tips
- Use debouncing (300ms) in your UI before making requests
- Start searching at 2+ characters for relevant results
- Cache frequent queries on the client
- Use the
typesparameter to limit result types for faster responses
Example Implementation
Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
VALIDATION_ERROR | Query too short (minimum 2 characters) |