Knuspr Autocomplete API returns public typeahead product ids, categories and recipes for a search term, or the default suggestion set.
Send query for typeahead or suggestion=true for the default set. limit caps the typeahead size. Costs 1 credit per request; empty results and failed requests are free.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
This endpoint has no required query parameters.
3 optional filters available.
string
Optional
Search text, 1 to 120 characters, for example milch.
coffee shops
boolean
Optional
true for the default suggestion set, default false.
true
integer
Optional
Maximum suggestions, 1 to 50, default 20.
10
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"mode": "typeahead",
"query": "milch",
"autocomplete": {
"total_hits": 12,
"product_ids": [
"1470"
]
}
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "autocomplete"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A query is required unless suggestion is true. This response is not billable.
{
"errors": {
"query": [
"A search query is required unless suggestion=true."
]
},
"message": "The request validation failed"
}Upstream Unavailable
The source could not be reached. This response is not billable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "autocomplete"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "Knuspr could not be reached. Please retry shortly."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.