Authorization
Token-based authentication header in the form of
<YOUR_LAYERS_TOKEN>
.Headers
Body
Base64 Encoded PNG or JPEG Image Data. Required if
image_id
is not provided.UUID identifier returned from the Image Upload API. Required if
image_data
is not provided. Using image_id
is recommended for better performance and support for larger images.Product attributes to include in the Response. By default all attributes are included in the response.
Parameters to fine-tune the search results.
Refer to our dedicated Filter Expressions guide to learn more about filter expressions.
Facets to be included.
If the count of each facet value should be calculated
If you want a min/max range for numeric facets such as price.
Information used to current identify the customer/session.
Anonymous contextual information of the session/customer.
Response
The total number of results.
The current page number.
The total number of pages.
If
includeFacetRanges
is true
then an object with keys of the facet attribute code and value is an object with min/max.If
retrieveFacetCount
is true
then an object with keys and values of the specified attributes.The attribution token.
Usage Examples
Using Image ID (Recommended)
First, upload an image to get animage_id
:
image_id
for searching: