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
opengl
android-espresso
knockout.js
haproxy
theano
celery
yql
malware
cypher
openflow
supercollider
javafx-8
graphql-js
angular2-template
selection
xamarin-zebble
fbloginview
documentum
vimeo
multi-step
distributed-computing
google-cloud-logging
cloudsim
xsl-fo
jitsi
pe
data-type-conversion
android-permissions
function-points
plyr
cube
unmarshalling
matlab-app-designer
opnet
mongodb-3.4
reporting
xcrun
spring-rabbitmq
keyboard-layout
iscroll
raytracing
contactless-smartcard
spooler
permission-denied
asihttprequest
nuclio
ipp-protocol
dredd
knockout-2.0
spring.net
htmlspecialchars
asp.net-web-api-routing
word-2007
test-data
email-forwarding
gmaps.js
msxml
zend-server
wildfly-9
researchkit
java-2d
xcode6.4
meld
wicked-pdf
codecharge
node-glob
verisign
json-spirit
self
highest
vdm-sl
relational-model
jcheckbox
jolie
configurable-product
cout
nesper
nachos
senchatouch-2.4
incognito-mode
boolean-algebra
application-blocks
strcmp
compiler-flags
progress-db
frontbase
postgres-xc
android-authenticator
jquery-cycle
clearinterval
quartz-core
page-curl
airprint
dip
regression-testing
hungarian-notation
ccnet-config
eventaggregator
browser-based
tacit-programming
synthesizer

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