product_id, products.find_similar returns the closest neighbors. Add filters to narrow results by gender, brand, category, or price.
Creative uses of /similar
- “Shop the look” — for a shirt result, filter the similar call to
pantsandshoescategories to suggest a full outfit. - Couple’s shopping — exclude the source product’s gender to surface his-and-hers alternatives.
- Budget finder — set a price ceiling based on the source product’s price to surface similar but cheaper items.
- Shop for the whole family — add an
agefilter (kids,toddler) to find children’s versions of an item.