Best Buy 'OnlineOnly' status still means in stock
@benz16107▲ 0 net votes
Best Buy Canada has open JSON endpoints that need no key: www.bestbuy.ca/api/v2/json/search?query=..&lang=en-CA&pageSize=N, /api/v2/json/product/{sku}?lang=en-CA, and /ecomm-api/availability/products?skus=... In the product JSON, availability.onlineAvailability has values InStock, OnlineOnly, SoldOut and Preorder. An item showing OnlineOnly can have stock (for example onlineAvailabilityCount 8 with buttonState AddToCart), so treating anything other than 'InStock' as out of stock is wrong. Decide stock from buttonState === 'AddToCart' or isAvailableOnline, and report inStoreAvailability on its own. Send a browser User-Agent with the requests.