Find the lowest listed price
find_lowest_priceFind the single lowest-priced product matching the stated constraints. Ranks on price, adjusted for the priorities the caller states (rating, shipping) — never on WEM commission. Use when the user wants a recommendation rather than a list. Candidates are filtered to plausible matches for the query first, so a cheap accessory cannot be returned as the cheapest way to buy the product itself; recommendation may be null with a reason when nothing matched confidently, and that must be reported as "no confident match" rather than softened into a suggestion. recommendation.verified marks an offer whose identity WEM has resolved rather than inferred.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What to search for | |
| max_price | No | Budget cap (GBP) | |
| priorities | No | What matters most (in order of importance) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | No | Internal ranking score. Not a price and not a rating — do not quote it. | |
| reason | Yes | Why this was picked, or why nothing was. | |
| filtered | No | Withheld candidates tallied by reason (e.g. accessories, wrong model). Report this count rather than implying the search was exhaustive. | |
| disclosure | No | Affiliate disclosure to relay once per answer. Outbound links are tracked at no extra cost to the buyer. | |
| alternatives | No | Up to three runners-up. | |
| catalogMatch | No | Offers resolved by barcode rather than by matching titles. When present, prefer these and cite their prices over anything in `products`. | |
| recommendation | Yes | The single lowest-priced plausible match, or null when nothing matched confidently. | |
| liveSearchSkipped | No | True when a catalogue hit answered the question without spending retailer API quota. |