best-buy-api


How can I list which stores have an item in stock?


I'm searching for a particular item that is listed as available for in-store pickup only, but not in my area.
I'd like to use the API to find out which stores do have that item in stock so I can phone a friend that lives in one of those areas and get them to pick it up.
So... How can I list the stores that have a particular item in stock?
Answer
The geographic center of the United States is 39°50' (39.8333), -98°35' (-98.5833)
The width United States is approximately 3,000 miles.
So if we search a radius of 2000 miles in any direction from that point we get:
http://api.remix.bestbuy.com
/v1/stores(area(39.8333,-98.5833,2000mi))
+products(sku=YOUR_SKU_ID)
?format=json
&pageSize=100
&page=1
&show=storeId,storeType,city,region,name,products.name,products.sku,products
&apiKey=YOUR_API_KEY
http://api.remix.bestbuy.com/v1/stores(area(39.8333,-98.5833,2000mi))+products(sku=6461052)?format=json&pageSize=100&page=1&show=storeId,storeType,city,region,name,products.name,products.sku,products&apiKey=YOUR_API_KEY
And you'll be surprised that while 1419 stores have Black Ink'd Skullcandy Earbuds in stock the day before Christmas, 0 of them have the Marth Amiibo, and 67 have the Star Fox Amiibo... who knew?
The API does provide a way to check for product availability in specific stores. Here is an example query (you need to substitute in your own apiKey) that uses coordinates and a radius within which to search:
http://api.remix.bestbuy.com/v1/stores(area(44.882942,-93.2775,10mi))+products(sku=6461052)?apiKey=yourApiKey&format=json&show=storeId,storeType,city,region,name,products.name,products.sku,products
There is documentation about this feature here:
https://developer.bestbuy.com/documentation/stores-api#documentation/stores-api-in-store-availability
You will find in the documentation that you can also search for availability at a specific store, or use a postal code. But I think using the coordinates may fit the case described in your question best.

Related Links

Best Buy API call limits
Search by UPC in BestBuy
Best Buy API tradeInValue is blank
Bestbuy Products Api show measures and weight of products?
Best Buy Reviews API does not return results newer than 2 days old
Get BestBuy seller's orders using Commerce API
Best Buy - Products API problems
Can I access exact stock count, open box, etc.?
How can I list which stores have an item in stock?
Searching by weight , length , depth etc using the Best Buy API
Searching products using details.name and details.value using the Best Buy API
Api is returning unexpected data in bestbuy

Categories

HOME
mc
keyboard
bots
operating-system
risk-management
adobe
autocomplete
jersey-2.0
elisp
openflow
tfs2015
drag-and-drop
stored-procedures
mutation-testing
swarm
graphdb
bootstrap-switch
webstore
coroutine
angular2-highcharts
jstree
plyr
cellular-network
toad
phpstorm-2016.1
progid
windows2012
wampsharp
fotorama
autoencoder
variable-variables
unification
tidal-scheduler
google-prediction
asihttprequest
code-push
linq-to-excel
gcal
rightnow-crm
qvtkwidget
swift2.3
android-webservice
watir-webdriver
pen
sesame
zend-server
boost-compute
cocoa-bindings
mathml
wolfram-language
static-methods
android-syncadapter
timestamping
sharepoint-apps
django-redis
persistent-object-store
gulp-uglify
as3-api
ui4j
decidable
astropy
ambiguity
uitest
ampersand
whitespace-language
incron
mod-auth-openidc
dos2unix
mobile-country-code
visual-c++-2012
squeezebox
siena
communicate
nachos
xmi
code39
frontbase
grails-2.3
quickgraph
postgres-xc
unicoins
ofstream
tridion-2011
ip-geolocation
spark-view-engine
wndproc
sfinae
voice-recording
coordinate
telerik-ajax
acpi
filelock
mediacontroller
facebook-fbml
tso
activex-exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App