Ranking
The three sorts of search_offers and the formula behind best_value.
search_offers ranks offers by the sort argument: cheapest, fastest or best_value. Comps, diagnostics and offers with delivery: no are not ranked.
In every sort, an offer whose moq is larger than qty goes to the end of the list.
cheapest#
Sorts by landed_aud, lowest first. Between two offers with the same cost, one with a known delivery status comes before one with unknown.
A grocery offer sorts by unit_price_aud. A 2 L bottle at 4.50 AUD (2.25 per litre) then comes before a 1 L bottle at 3.10 AUD.
An offer with no price goes last.
fastest#
Sorts by the later bound of shipping.eta_days, then by price_aud. An offer with no ETA counts as 99 days.
The ETA windows are fixed per marketplace. Delivery and ETA lists them.
best_value#
Sorts by a score from 0 to 1, highest first:
score = 0.5 * price + 0.25 * speed + 0.25 * trust
score = score - 0.05 when delivery is unknown| Part | Value |
|---|---|
price | 1 - min(1, unit cost / 200). Unit cost is landed_aud / qty, or price_aud when there is no landed cost. An offer with neither counts as 50 AUD. |
speed | 1 - min(1, latest ETA day / 30). An offer with no ETA counts as 14 days. |
trust | The first of the four rules below that applies. |
| Trust rule | Value |
|---|---|
| The offer has deal-site votes | 0.5 + net votes / 20, held between 0 and 1 |
| The seller has a rating | rating / 5 |
source_reliability is authoritative | 0.85 |
source_reliability is aggregator | 0.7 |
| None of these | 0.5 |
An item that costs 200 AUD or more per unit scores 0 for price. Above that cost, only speed and trust separate offers.
Currency#
price_cny converts with CNY_TO_AUD (default 0.215) and Cheapies prices with NZD_TO_AUD (default 0.92). Both are fixed settings. The server fetches no live rates.