Links
Link a person to the Product page to compare, or to the BestPriceLink to buy.
A Product carries two links. Give a person the one that matches what they are about to do.
| Link | Field | For a person who is |
|---|---|---|
| Product page | url | still comparing, or checking the price history |
| BestPriceLink | best_price_url | ready to buy |
url: the Product page
url is the canonical page for the Product on drophawk.net.
It lists each Retailer's price and stock, the Listing-level detail this API deliberately leaves out.
best_price_url: buy at the best price
best_price_url is a BestPriceLink: a link to the Product, not to a Retailer, that is resolved when someone follows it.
Every Product has one, and you use it unmodified.
- If the Product has a BestPrice at that moment, it sends them to the Retailer offering it, which may not be the one that was cheapest when you fetched the Product.
So
pricing.best_price.retaileris the Retailer as ofobserved_at, and the link always goes to the current BestPrice: when you name the Retailer next to the link, say it was the cheapest at last check. If two Retailers share the BestPrice, the same one wins every time until its Listing goes out of stock, is disabled or is removed, and it is the onepricing.best_price.retailernames. - If it has no BestPrice - nothing is in stock, or the in-stock Listings are priced in more than one currency - it sends them to the Product page instead.
When it sends someone to a Retailer, DropHawk records the visit as a Click, and where the Retailer runs an affiliate program the redirect carries DropHawk's affiliate tag.
A BestPriceLink that falls back to the Product page records no Click.
The commission is how DropHawk is paid for, and it does not change the price the person pays.
Because a follow can count, only follow a best_price_url when a person chooses to: do not prefetch, unfurl or link-check it.
