Color filtering is currently in Beta. The API surface may change.
colors filter on POST /v1/search accepts one or more hex color values and returns products whose dominant colors match the palette. This is useful for building color-matched shopping experiences — for example, finding furniture or clothing that complements a specific color scheme.
Basic color filter
Pass an array of{ hex, percentage? } objects. The percentage field is optional and indicates the desired proportion of that color in the product image.
Multiple colors
Provide a palette of colors to find products that match the combination.With percentage hints
Usepercentage to signal how dominant each color should be in the product. Values are relative weights, not strict percentages.
TypeScript