For more complete information, see the Query Primer.
http://api.remix.bestbuy.com/v1/stores(area(zipcode,distance in miles))+products(attribute=value)?apiKey=APIKeyHere
returns stores that have products by your specific attribute value.
Required parameters are shown in italics and optional parameters are in bold.
GET stores within a 10 mile radius of zip code 94103, that have the products specified
Get stores within a 10 mile radius of the latitude, longitude coordinates specified, with the specified products.
- As you can see from the examples above, you can define your store location by zip code or by latitude,longitude.
- The store availability queries will return only those stores that have the product available, any stores not returned by implication, do not have that product in stock.
- Filtering using the attribute inStoreAvailability only tells you if the product is one that is sold in stores, not if it's available now at a particular store.
- Product availability in stores is calculated using forecast files using inventory counts and previous days sales to determine if the product is likely to be available, might be available or likely to not be available. The algorithm errs on the side of caution, and anything that is not available or a maybe available, defaults to "not available".
- The order of the references to stores or products in the query doesn't matter. It does affect the order in which the results are returned. If you have 'stores' first in the query, it'll be first in the results; and vice-versa.
- Pay attention to the header messages in the returns as you are structuring your availability related calls.