Get search suggestions
Returns up to three collections of search suggestions all based on the passed in search term: Autosuggestions - suggestions based on similar search terms popular with the Trade Me community Recent searches - suggestions based on previous searches the logged in member has performed Category suggestions - suggestions based on categories similar to the passed in search term.
URL: | https://api.trademe.co.nz/v1/Search/Suggestions.{file_format} |
---|---|
HTTP Method: | GET |
Requires Authentication? | Yes |
Permission Required: | None |
Supported Formats: | XML, JSON |
Rate Limited? | Yes |
URL parameters
file_format | Enumeration (required) | The format of the response. | ||||
---|---|---|---|---|---|---|
|
Query String parameters
category_id | Integer (optional) |
The identifier of the category to be used when generating suggestions, use 0 for all categories. Defaults to 0. |
---|---|---|
max_auto_suggestions | Integer (optional) |
The maximum number of autosuggest suggestions to be returned. Defaults to 12. |
max_category_suggestions | Integer (optional) |
The maximum number of category suggestions to be returned. Defaults to 12. |
max_recent_searches | Integer (optional) |
The maximum number of recent searches to be returned. Defaults to 12. |
max_total_suggestions | Integer (optional) |
The maximum number of suggestions of all types to be returned. Defaults to 12. |
search_string | String (optional) |
The partial keyword that the suggestions will be based on. |
Returns
<SearchSuggestions>
RecentSearches | Collection of String or null |
List of search terms the logged in member has recently searched for ordered by most recent first. |
|||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AutoSuggestions | Collection of <AutoSuggestion> or null |
List of suggested search terms based on terms popular with Trade Me members ordered by their popularity. |
|||||||||||||||||
|
|||||||||||||||||||
CategorySuggestions | Collection of <CategorySuggestion> or null |
List of category suggestions that that are relevant to the given search term. |
|||||||||||||||||
|
|||||||||||||||||||
StoreSuggestions | Collection of <StoreSuggestion> or null |
List of store suggestions that are relevant to the given search term. |
|||||||||||||||||
|