Multi Search API

Multimodal Search API: given an input text and/or input image finds all the products matching the inputs.

The request must be made with Content-Type: multipart/form-data if the query is provided via image parameter.

  • For optimal results, we recommend images around 1024x1024 pixels. Low resolution images may result in unsatisfying search results.
  • If the image is larger, we recommended to resize the image to 1024x1024 pixels before sending to API. Large images may result in server upload timeout and slow latency.
  • The maximum file size of an image is 10MB.

Response Properties

NameDescription
reqidQuery ID.
statusThe request status, either “OK" or "fail”.
methodThe API method, "product/multisearch".
im_idFor each uploaded image, Product Search service will return an unique im_id which can be used to do further search without downloading the image again.
pageThe result page number.
limitThe number of results per page.
totalTotal number of search results.
errorError message and code if the request was not successful i.e. when status is “fail”.
product_typesDetected product types and their bounding box in (x1,y1,x2,y2) format.
resultThe list of products retrieved. If attrs_to_get is specified, we are displaying the customer's catalog values in the “data” field.
catalog_fields_mappingReturn catalog’s fields mapping.
facetsList of facet fields value and response for filtering.
qAutocomplete suggestion or spelling correction for the text query q. Returned if sayt=true or spell_correction=true and there is a suggestion/correction for the text query q.

Response size can be compressed to save bandwidth by setting Accept-Encodingheader to gzip.

Responses

Language
Credentials
Query
Loading…
Response
Choose an example:
application/json