Python Wrapper over Best Buy's REST API
Project description
Python Best Buy API Wrapper
This is a small python wrapper implementation for BestBuy API. This implementation does not cover all the APIs from BestBuy yet. As of now, it only supports the calls to the Products, Categories, bulk and Cover APIs. Locations and Reviews API are in the making.
The wrapper doesn't assume any design requirements on the user end. Queries to the API endpoints are done similar to what you would put in the browser with the convenience of having python prepare for you the query, url, and interpret the response.
NOTICE: This project is only supported by python 3.6, 3.7, 3.8. If you need support for an older version of python3, please reach out to me.
Features
- Query Bulk BestBuy API
- Query Stores BestBuy API (by id, currently)
- Query Products BestBuy API
- Query Categories BestBuy API
- Obtain queries result in JSON or XML
For details on how to use the Best Buy API go to: https://developer.bestbuy.com/documentation
Install
$ pip install BestBuyAPI
How to use Product, Category, Store and Bulk APIs
>>> from bestbuy import BestBuyAPI
>>> bb = BestBuyAPI("YourSecretAPIKey")
>>>
>>> a_prod = bb.products.search(query="sku=9776457", format="json")
>>> a_cat = bb.category.search_by_id(category_id="abcat0011001", format="json")
>>> all_categories = bb.bulk.archive("categories", "json")}
FAQ
-
Is there any difference between /api.bestbuy.com/ and api.remix.bestbuy.com?
A:// This is the response from BestBuy Dev department: "There is no difference, they serve the same data - we just consolidated domains. The official url to use is api.bestbuy.com though."
Any questions please feel free to email me at: luis@lv10.me
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bestbuyapi-2.0.0.tar.gz
.
File metadata
- Download URL: bestbuyapi-2.0.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.6.9 Linux/5.8.0-40-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad80cda193ca1fd9d1e33be1484544a79d1f88abb3bdf76ba3f749a07677d222 |
|
MD5 | 53b71f1eaee06465af087c519dae9ff9 |
|
BLAKE2b-256 | b1c1cf126c704daaacb8e2c6144a4c1a4729d391c2b686cf17c4e48d5d60245a |
File details
Details for the file bestbuyapi-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: bestbuyapi-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.6.9 Linux/5.8.0-40-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53324f6e451344dbbbf1ae7f83971068bdfd8d47fc62070418fa64fbbcf5d2e |
|
MD5 | 09900512564d466953038d629c36d4a6 |
|
BLAKE2b-256 | 89c602716fc44811dfd07cbe64f4af5f6133322dd7cb00a45f306922af28a26b |