Search by image
Converts a photo into a search that can be executed to find listings that are similar to the given photo.
URL: | https://api.trademe.co.nz/v1/Photos/ImageSearch.{file_format} |
---|---|
HTTP Method: | POST |
Requires Authentication? | Yes |
Permission Required: | None |
Supported Formats: | XML, JSON |
Rate Limited? | Yes |
URL parameters
file_format | Enumeration (required) | The format of the response. | ||||
---|---|---|---|---|---|---|
|
POST Data
<ImageSearchRequest>
PhotoData | String (required) |
The actual image data which is base64 encoded. |
---|---|---|
PreviousVersion | Boolean (optional) |
Indicates whether to use the previous version of image search (for comparative purposes). If this is specified, it overrides the server's preference. |
Returns
<ImageSearchResponse>
SearchApi | Enumeration |
The search API endpoint that should be used in conjunction with the SearchString property to build up a search URL. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
SearchString | String or null |
A string containing the search parameters. This is formatted like a HTTP query string (but without a leading question mark) and can include any of the parameters accepted by the search APIs. |