v1
latestOpenAPI 3.0.02026-07-24182211348.4 KBAutocomplete
Deprecated. This endpoint has been replaced by Suggestions. For all new implementations we strongly recommend using the Suggestions endpoints to receive the latest updates, get category suggestions and more. Please review the Suggestions documentation at https://docs.tweakwise.com/reference/suggestions for integration details. Service that returns product results and search suggestions based on a search term. This service can be called as soon as the user begins to type a search term.
Path parameters
Instance specific key.
Query parameters
Search term entered by the user.
Maximum length: 100
The category that should contain the filtered results. If you want to provide the entire path, you should include the categories divided by a hyphen (-).
Example: ?tn_cid=100-150
Display product suggestions.
Default value: true
Display keyword suggestions.
Default value: true
Use instant search.
Default value: false
The number of results that will be returned per component.
Default value: 6
Maximum value: 20
Specify the language to use for the search algorithms.
All available languages can be retrieved with the catalog call: /catalog/languages/{instancekey}
Example: ?tn_lang=nl
Specify the keyboard to use for the search algorithms.
All available options are: 'qwerty', 'azerty' or 'qwertz'
Example: ?tn_keyboard=azerty
Hidden parameters can be added to the URL by using the parameter 'tn_parameters'. The key is the facet URL-name. The value is the facet value that should be applied.
Important: double URL-encoding is required.
-
Build the parameter string — combining keys and values:
- encode special characters inside values (spaces, +, &, =, etc.)
- concatenate multiple values using a pipe (|) example: brand=Coca%20Cola%7CPepsi&volume=1L%7C1.5L
-
URL-encode the entire filter string — because the whole string is passed as a single query parameter value, encode it a second time: brand%3DCoca%2520Cola%257CPepsi%26volume%3D1L%257C1.5L
-
Append to the URL: ?tn_parameters=brand%3DCoca%2520Cola%257CPepsi%26volume%3D1L%257C1.5L
Hidden exclusion parameters can be added to the URL by using the parameter 'tn_parameters_except'. This is used to exclude certain parameters from the results (show everything except specified parameters). The key is the facet URL-name. The value is the facet value that should be applied.
Important: double URL-encoding is required.
-
Build the parameter string — combining keys and values:
- encode special characters inside values (spaces, +, &, =, etc.)
- concatenate multiple values using a pipe (|) example: brand=Coca%20Cola%7CPepsi&volume=1L%7C1.5L
-
URL-encode the entire filter string — because the whole string is passed as a single query parameter value, encode it a second time: brand%3DCoca%2520Cola%257CPepsi%26volume%3D1L%257C1.5L
-
Append to the URL: ?tn_parameters_except=brand%3DCoca%2520Cola%257CPepsi%26volume%3D1L%257C1.5L
A comma-separated list of toggles.
- NoBuilder: Prevents the configured builder from being applied; handles the request as if no builder were configured.", "?tn_options=NoBuilder
- NoEDC: Prevents calls to External Data Components configured in builders; handles the request as if no External Data Components were configured.", "?tn_options=NoEDC
Headers
The source of the request. See the article on the request source for more information.
Response
Collection of autocomplete results