Retrieve the recent searches for the logged in member
Retrieve the recent searches for the logged in member.
| URL: | https://api.trademe.co.nz/v1/Search/RecentSearches.{file_format} |
|---|---|
| HTTP Method: | GET |
| Requires Authentication? | Yes |
| Permission Required: | MyTradeMeRead: Read your membership & listing data. |
| Supported Formats: | XML, JSON |
| Rate Limited? | Yes |
URL parameters
| file_format | Enumeration (required) | The format of the response. | ||||
|---|---|---|---|---|---|---|
|
||||||
Query String parameters
| category_ids | String (optional) |
Comma separated list of category Ids. Default value is null and all recent searches will be returned. |
|---|---|---|
| return_favourite_id | Boolean (optional) |
true to populate the FavouriteId field. The default is false. |
Returns
Collection of <RecentSearch>
A list of recent searches performed by the member.
| Id | String or null |
A unique ID for the search. Used to identify the search when deleting. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SearchApi | Enumeration |
Indicates which search API should be used to run the search. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| SearchString | String or null |
The parameters to pass to the search API to reproduce the search. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Keywords | String or null |
If a keyword filter exists, contains the keywords. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Seller | <Member> or null |
If a seller filter exists, contains the details of that seller. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| CategoryName | String or null |
If a category filter exists, contains the full name of the category. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| CanonicalPath | String or null |
If a category filter exists, contains the canonical URL. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Breadcrumbs | Collection of <Breadcrumb> or null |
If a category filter exists, contains the breadcrumbs for the category. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| AreaOfBusiness | Enumeration |
If a category filter exists, contains the associated business line. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| Refinements | Collection of <RefinementDescriptor> or null |
A list of search filters, excluding keywords, category and seller information. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| FavouriteId | Integer or null |
The ID of a favourite search that corresponds to this recent search, if there is a favourite search that matches. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| Title | String or null |
A generated Title based on the keywords, categories, and location of the search. |
|||||||||||||||||||||||||||||||||||||||||||||||||||